Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to find swap-space signature
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Mon Mar 07, 2005 8:52 am    Post subject: Unable to find swap-space signature Reply with quote

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
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Mar 07, 2005 9:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Mon Mar 07, 2005 9:32 am    Post subject: Reply with quote

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?8O 8O 8O
Back to top
View user's profile Send private message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Wed Nov 23, 2005 4:07 am    Post subject: Reply with quote

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
View user's profile Send private message
ueymir
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 91
Location: I am your neighbor, and yours, and yours ...

PostPosted: Wed Nov 23, 2005 5:02 am    Post subject: Reply with quote

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 ... :wink:
Back to top
View user's profile Send private message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Fri Nov 25, 2005 2:01 am    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Fri Nov 25, 2005 2:18 am    Post subject: Reply with quote

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
View user's profile Send private message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Fri Nov 25, 2005 7:28 am    Post subject: Reply with quote

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
View user's profile Send private message
mingotta
n00b
n00b


Joined: 11 Oct 2003
Posts: 52
Location: Roma, Italy

PostPosted: Sun Jan 29, 2006 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message
mingotta
n00b
n00b


Joined: 11 Oct 2003
Posts: 52
Location: Roma, Italy

PostPosted: Sun Jan 29, 2006 1:44 am    Post subject: Reply with quote

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
View user's profile Send private message
DamianHole
n00b
n00b


Joined: 09 Nov 2003
Posts: 17
Location: Melbourne, Australia

PostPosted: Thu Jun 15, 2006 10:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum