You are not logged in.

#1 2006-02-10 22:10:08

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Problems enabling swap

I just booted and noticed swap failed on bootup.

Opened a console, changed to root and tried:

[root@myhost ~]# swapon -a
swapon: /dev/hda2: Invalid argument
[root@myhost ~]#

dmesg tells me:

Unable to find swap-space signature

I've never had anything like this in my time with linux.

Absolutely nothing has changed since last boot, and it was cleanly shut down.

Any ideas?

Offline

#2 2006-02-10 22:16:40

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Re: Problems enabling swap

After a bit of googling, I've re-prepared it with mkswap, but I'm curious as to why it suddenly wasn't recognised.

Any reason(s) this might happen that anybody knows about?

Thanks
Daren

Offline

#3 2006-02-10 22:54:00

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,210

Re: Problems enabling swap

Harddrive failure ?

Do you have smart on in the bios ?


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#4 2006-02-10 23:04:47

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Re: Problems enabling swap

I'd have to check that.

There doesn't appear to be other issues with any other partitions though.  I'll do a manual fsck to see if that shows anything up.

Offline

#5 2006-02-10 23:09:16

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 286

Re: Problems enabling swap

Well, it happens a lot if you experiment with software suspend etc.
Another unqualified guess is that the swap partition could have been uncleanly "unmounted".

Offline

#6 2006-02-10 23:16:53

Daren
Member
From: Notts, UK
Registered: 2006-01-02
Posts: 73

Re: Problems enabling swap

Ah!

I did try the 'lock & suspend' on the KDE applet (it's a laptop).  It did come back (seemingly) ok though   :?

When I had Ubuntu on this (Gnome) the suspend worked perfectly.

Offline

Board footer

Powered by FluxBB