PDA

View Full Version : swapon swapfile problem



fitzov
05-22-2005, 09:16 PM
I'm trying to remaster according to

http://www.knoppix.net/wiki/Knoppix_Remastering_Howto

At the point where I type 'swapon swapfile' I get

swapon: cannot stat /dev/hda5/knx/swapfile: Not a directory

So did the person who wrote the wiki just put these instructions without actually checking to see if they work?[/url]

firnsy
05-28-2005, 11:25 AM
No the person did test it and it does work. Breaking down the commands did you do this?

# dd if=/dev/zero of=swapfile bs=1M count=750

You should have a file in the current working directory that is around 750Mb that is nothing but zeros

# mkswap swapfile

This turns the large file into the swap format

# swapon swapfile

And this allows you to setup the swap.