User Feedback :: swapon



(Back to Linux after a multi-year hiatus...
DSL works GREAT on ancient hardware - thanks!!!)

I marked /dev/hda1 as a Linux swap partition. Then I issued:
swapon /dev/hda1
and was told "invalid argument". Surely I remembered to try as root. What may be going wrong? Thanks.

When you say marked/dev/hda1, does fdisk -l /dev/hda show partition 1 as type 82?

Do you get an error message about partition table of numerical order. I have seen this issue when using cfdisk, which allows you to start the partitions at the bottom instead of the top. fdisk does not seem to allow that and thus not an issue.

Normall, you would not have to manually issue the swapon command as during boot if the system sees an type 82 it will be detected and used as swap.

You may also have to run mkswap /dev/hda1 before swapon (and you only have to do this once).
Report to the DSL bootcamp now recruit!!!

Move it...Move it!!!!!!!!!!!
http://damnsmalllinux.org/cgi-bin....ry15102

Brian
AwPhuch


original here.