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?

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to