View previous topic :: View next topic |
Author |
Message |
Codo Apprentice
Joined: 17 May 2004 Posts: 271
|
Posted: Mon Mar 07, 2005 8:52 am Post subject: Unable to find swap-space signature |
|
|
Hello everybody:
Every now and then I am having problems with my swap partition. I get this:
Code: | $ dmesg
Unable to find swap-space signature | and I cannot swap here. I have to then do a Code: | $ mkswap /dev/hda3
$ swapon /dev/hda3 | to be able to enable swap again, as if the swap partition gets somehow corrupted...
Any ideas? |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Mon Mar 07, 2005 9:03 am Post subject: |
|
|
Perhaps you're dual-booting and the other OS writes to the swap partition clobbering the SWAPSPACE2 signature? _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
Codo Apprentice
Joined: 17 May 2004 Posts: 271
|
Posted: Mon Mar 07, 2005 9:32 am Post subject: |
|
|
Well, I doubt it. I dual boot with WinXP sometimes.
If this is what is happening, it would be very disturbing... Would that mean that it may overwrite my reiser partition? |
|
Back to top |
|
|
quickshiftin Guru
Joined: 27 Jul 2004 Posts: 345 Location: Denver, CO
|
Posted: Wed Nov 23, 2005 4:07 am Post subject: |
|
|
just stumbled in to the problem as well. i wonder if vmware with a windows guest had anything to do with it... im going to keep an eye on it in the future. |
|
Back to top |
|
|
ueymir Tux's lil' helper
Joined: 23 Jan 2005 Posts: 91 Location: I am your neighbor, and yours, and yours ...
|
Posted: Wed Nov 23, 2005 5:02 am Post subject: |
|
|
Are you booting different kernels? I had the problem once that some kernels had the right name for the swap device, some did not. Probably not really a solution, but worth checking I guess ... |
|
Back to top |
|
|
quickshiftin Guru
Joined: 27 Jul 2004 Posts: 345 Location: Denver, CO
|
Posted: Fri Nov 25, 2005 2:01 am Post subject: |
|
|
the whole thing started when trying to compile eclipse and was getting some error (cant remember what it was). but when i checked dmesg i found a request was made to the kernel for more memory than the system could alocate, and that included swap! this is not verified, but i think the swap somehow got brought offline or something whenever this happened, because i had to
$mkswap /dev/hda2 afterwards to see it in action with a call to
$swapon -s
i had to shut down kde and a lot of services to get eclipse to compile, but its compiled and i cant wait to get into it |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Fri Nov 25, 2005 2:18 am Post subject: |
|
|
Can't answer the question directly, but you are all aware that you can have multiple swaps mounted ???.
If you think you are subject to "running out", just add more. Once you have formatted it, add them to fstab.
"swapon -s" will tell you what you have mounted.
As for me, I never run emerges in X - give it all the machine it needs, and go do something else. Mind you, I only ever sync/update every couple of weeks, so it usually has a bit to do. |
|
Back to top |
|
|
quickshiftin Guru
Joined: 27 Jul 2004 Posts: 345 Location: Denver, CO
|
Posted: Fri Nov 25, 2005 7:28 am Post subject: |
|
|
syg00 wrote: | Can't answer the question directly, but you are all aware that you can have multiple swaps mounted ???.
If you think you are subject to "running out", just add more. Once you have formatted it, add them to fstab.
"swapon -s" will tell you what you have mounted.
|
thats really cool. if i knew that i wouldnt have had to shut down my gui and what not to get eclipse compiled. thanks for the tip |
|
Back to top |
|
|
mingotta n00b
Joined: 11 Oct 2003 Posts: 52 Location: Roma, Italy
|
Posted: Sun Jan 29, 2006 1:11 am Post subject: |
|
|
Hello. I have the same problem.
I get "Unable to find swap-space signature" in my dmesg output.
It might be because I'm testing my newly installed RAID1 Gentoo Linux and seeing if it boots correctly from both hard drives.
It does boot correctly from both HD's but perhaps this so-called swap-space signature gets changed at every swapon so the next time it tries to mount it, somehow it doesn't match what it expects it to be.
I don't know, I'll dig further and hopefully find a way to have the swap space mounted automatically!
To mount it manually, since this is a RAID1 system, I need to
# mdadm --assemble /dev/md1 /dev/hda2 /dev/hdc2
# swapon /dev/md1
As a reminder, to check what partitions are mounted as swap, launch
# swapon -s
or
# top
or
# free -m |
|
Back to top |
|
|
mingotta n00b
Joined: 11 Oct 2003 Posts: 52 Location: Roma, Italy
|
Posted: Sun Jan 29, 2006 1:44 am Post subject: |
|
|
I adopted a workaround: I modified /etc/fstab so that now it swaps on the two swap partitions on the two disks separately, not as a RAID1.
The problem must lie in the RAID1, but I'm too tired to investigate further! |
|
Back to top |
|
|
DamianHole n00b
Joined: 09 Nov 2003 Posts: 17 Location: Melbourne, Australia
|
Posted: Thu Jun 15, 2006 10:43 pm Post subject: |
|
|
Hi mingotta,
I had the same probem, using raid1 with swap.
The fix for me was, to set the the partition type to 'fd' (Linux raid autodetect), not to '82' (Linux swap / Solaris).
Damian. |
|
Back to top |
|
|
|