Hello,
I am trying to create and use a swap file on my external USB hard drive that is NTFS formatted. I use udevil to automount the drive. I am able to create and use the swap file by these instructions. My drive is mounted at /media/Bear.
$this->bbcode_second_pass_code('', 'dd if=/dev/zero of=/media/Bear/swapfile.img bs=1M count=1024
mkswap /media/Bear swapfile.img')
I can turn it on with
$this->bbcode_second_pass_code('', 'swapon /media/Bear/swapfile.img')
I check it with the command
$this->bbcode_second_pass_code('', 'free')
and everything looks great.
However, I can't get it to automatically turn on after reboot. I added the following information to /etc/fstab
$this->bbcode_second_pass_code('', '/media/Bear/swapfile.img none swap sw 0 0')
Can anybody help me get this working automatically after reboot?
Thanks!