Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-29-2006, 03:37 PM   #1
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Rep: Reputation: 15
swap partition wont work

i have on my system two swap partitions (my main memory is 2 gigs and ive read its advisable to have 2 swap partitions of 1 gig in this case):

cfdisk 2.12r

Disk Drive: /dev/hda
Size: 160041885696 bytes, 160.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 19457

Name Flags Part Type FS Type [Label] Size (MB)
hda1 Boot Primary NTFS [] 143004.72
hda5 Logical W95 FAT32 9500.20
hda6 Logical Linux ReiserFS 5379.34
hda7 Logical Linux swap / Solaris 1077.52
hda8 Logical Linux swap / Solaris 1077.52

[Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ]
[ Units ] [ Write ]

Toggle bootable flag of the current partition

My /etc/fstab looks like the following:

root@KanotixBox:/home/sancho# more /etc/fstab
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
/dev/hda6 / reiserfs defaults 0 1
/dev/hda1 /mnt/windows ntfs defaults 0 2
/dev/hda5 /mnt/fat vfat defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/hda8 none swap sw 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

When I bootup, I get some kind of an error message referring to a failed swap mount:

root@KanotixBox:/home/sancho# dmesg | grep swap
Unable to find swap-space signature
Adding 1052216k swap on /dev/hda8. Priority:-1 extents:1 across:1052216k
Unable to find swap-space signature
Adding 1052216k swap on /dev/hda8. Priority:-2 extents:1 across:1052216k
Unable to find swap-space signature
Unable to find swap-space signature
Adding 1052216k swap on /dev/hda8. Priority:-3 extents:1 across:1052216k
Unable to find swap-space signature

And truly, when I try to mount my swap partitions I get the following:

root@KanotixBox:/home/sancho# swapoff /dev/hda8
root@KanotixBox:/home/sancho# swapon /dev/hda8
root@KanotixBox:/home/sancho# swapoff /dev/hda7
swapoff: /dev/hda7: Invalid argument

Anybody able to see what's the problem here?


Old 09-29-2006, 03:57 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,671

Rep: Reputation: 218Reputation: 218Reputation: 218
Is it formated as swap? If not, try mkswap.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap Won't Work in New 2.6.6 Kernel, Partition Table Messed Up DvChWi Slackware 11 06-19-2004 12:51 AM
2.6.2 wont use my swap partitoin satanic_linux Slackware 6 02-12-2004 11:01 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
RH 7.3 wont install with a SWap daffy Linux - Newbie 1 09-14-2002 05:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration