[lfs-support] swapfile

Baho Utot baho-utot at columbus.rr.com
Thu Jan 10 15:05:30 PST 2013


LFS-7.2

I added a swapfile as follows
dd if=/dev/zero of=/swapfile bs=2048 count - 1G
mkswap /swapfile
chown root.root /swapfile
chmod 0600 /swapfile
swapon /swapfile

That worked.

I then added to /etc/fstab

/swapfile    swap    swap    defaults    0 0

rebooted
Boot error,
Activating <blah blah blah> swapon: /swapfile failed: Read-only file system

after login as root

mount -a

and swap is activated.

Any reason why it failed at boot?




More information about the lfs-support mailing list