Other Help Topics :: swap gone?coul



Well, /dev/hda1 was and still is a linux swap partition (at least according to cfdisk), so I am still amazed by this unknown 'behaviour'.
I put
/dev/hda1   swap   swap   defaults   0 0
in /etc/fstab
but that didn't work: Swap Ussed: 0/0 -- 0%

I think you need to use mkswap to format it first... did you already do that though?
A swat partition is faster and requires formating first with mkswap,
It is loaded with the same binary "swapon" bu instead of pointing to the file, you point to the partition.

Swap Partitions cant be mounted, it is considerably faster then a swap file because the kernel access the data directly rather then first checking file location in the partition table plus fragmentations are rarer since the swap partition table is quite more flexible...

If you have a choice, go with swap partition, an their is an added benefit is if the swap partition in on another HD.

Thanks to all contributors!

I put:
/dev/hda1   swap   swap   defaults   0 0
in /etc/fstab
and mkswap/dev/hda1
in /etc/init.d/checkroot.sh. between the lines containing
echo "Activating swap..."
and
swapon -a 2> /dev/null

Sounds right, Good luck !
Next Page...
original here.