[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why root fs "read-only" on shutdown?



On Fri, 10 Nov 2006 17:29:02 +0100, Douglas Tutty <dtutty@porchlight.ca> wrote:

In my S40unmountfs:


echo -n "Unmounting local filesystems..."
umount -tnoproc,noprocfs,nodevfs,nosysfs,nousbfs,nousbdevfs,nodevpts -d -a -r
echo "done."

# This is superfluous.
mount -n -o remount,ro /


The umount -r means that in case unmounting fails, remount ro,
which therefore makes the mount -o remount,ro superfluous.

If you disable both attempts to remount ro and either power off or fsck,
you risk corruption.

Ah, I missed the -r subtlety. All this makes sense. Thanks.

--Daniel



Reply to: