I am trying to increase the swapfile size on my WUBI install.
I followed the answer here:
sudo su swapoff -a cd /host/ubuntu/disks/ mv swap.disk swap.disk.bak dd if=/dev/zero of=swap.disk bs=1024 count=2097152 mkswap swap.disk swapon -a free -m
until I reached:
mv swap.disk swap.disk.bak
At which point I have got got the following:
root@ubuntu:/host/ubuntu/disks# mv swap.disk swap.disk.bak mv: cannot move `swap.disk' to `swap.disk.bak': Operation not permitted
My 256 M swap space is all used up. I would like to install a total of twice that. Is there a method of setting it which would not include guesswork on my part?
I followed BCBC below and now I get an error:
swapon -a swapon: /host/ubuntu/disks/swap.disk: read swap header failed: Invalid argument –
/etc/fstab looks like:
UNCONFIGURED FSTAB FOR BASE SYSTEM
/host/ubuntu/disks/swap.disk none swap sw 0 0
(Have to be sure to allow all processes to finish; this takes several minutes.)