HD Install :: swap partition
I made a swap partition /dev/hda2, 512 megs linux swap file system, but it won't let me type the command swapon /dev/hda2 as root, any ideas how to get this thing to work and autoload on boot from a hard drive install?
I ususally create the partitions including the swap partition and before doing the install enter the swapon command and then do the install. What is the error you are getting?
root@box:/home/dsl# swapon /dev/hda2
swapon: /dev/hda2: Invalid argument
is it because the partition is not mounted?
What would I do in that case to have it always mounted for boot and what location?
Not sure but you need to type mkswap /dev/hda2 and after that type swapon /dev/hda2
When you create your partitions you need to create the swap partition with a drive type of 82. As root execute the command
fdisk -l
You should see /dev/hda2 listed with Id 82 and the words Linux swap. If you do not see this then you have not created the partition correctly. And as Alg0rithm pointed out you need to execute mkswap /dev/hda2 and swapon /dev/hda2. I am not sure if the order is significate. I remember doing mkswap and then swapon.
Next Page...
original here.