swap partition wont work
hi
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? Thanx, Martin |
Is it formated as swap? If not, try mkswap.
|
All times are GMT -5. The time now is 04:17 AM. |