[blfs-support] Filesystem recovery messages at every boot

Pierre M.R. prousselet at sfr.fr
Thu May 9 18:49:09 PDT 2013

Markku Pesonen wrote:
> Arthur Radley wrote:
> umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null
> Despite using the -r option, umount does not remount the root filesystem
> in read-only mode during shutdown like it used to. Adding this command
> after that line fixed things for me:
> mount -n -o remount,ro /
slackware does that (from /etc/rc.d/rc.6):
# Turn off swap:
echo "Turning off swap."
/sbin/swapoff -a

echo "Unmounting local file systems."
/bin/umount -v -a -t no,proc,sysfs

echo "Remounting root filesystem read-only."
/bin/mount -v -n -o remount,ro /

# This never hurts:


More information about the blfs-support mailing list