Baho Utot wrote: > 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?
The swap init script is run before mountfs. The root fs is remounted rw in mountfs. Try moving the symlink /etc/rc.d/rcS.d/S20swap to S41swap, but I don't know it S30checkfs will cause a probllem or not. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
