bruce.dubbs at gmail.com
Thu Jan 10 15:50:08 PST 2013
Baho Utot wrote:
> 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
> 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
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.
More information about the lfs-support