swaponForum: User Feedback Topic: swapon started by: docdtv Posted by docdtv on Oct. 16 2004,04:05
(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. Posted by roberts on Oct. 16 2004,05:49
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. Posted by skaos on Oct. 16 2004,13:51
You may also have to run mkswap /dev/hda1 before swapon (and you only have to do this once).
Posted by AwPhuch on Oct. 18 2004,17:29
Report to the DSL bootcamp now recruit!!!Move it...Move it!!!!!!!!!!! < http://damnsmalllinux.org/cgi-bin....ry15102 > Brian AwPhuch |