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: 11,868

Re: Problems enabling swap

Harddrive failure ?

Do you have smart on in the bios ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

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: 287

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