Date: Fri, 02 Dec 2005 08:55:02 -0800 From: othermark <atkin901@yahoo.com> To: freebsd-current@freebsd.org Subject: Re: After crash, / comes up mounted read-only, but in multiuser; mfs /tmp? Message-ID: <dmpu98$8qb$1@sea.gmane.org> References: <20051202103751.T83839@fledge.watson.org> <43904D18.5050503@freebsd.org> <200512020840.58395.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote: > On Friday 02 December 2005 08:33 am, David Xu wrote: >> Robert Watson wrote: > I've seen reports that mount -u -w / works whereas mount -u -o rw / > doesn't, so you might be able to mount -u -w / in single user mode after > running fsck > as a way to recover. Either that or boot single user, run fsck, and then > reboot before going into multiuser. Yep, that's what I found. mount -o rw no longer works only -w. Interestingly '-o rw' is not in the manpage, which is how I originally discovered that '-w' was working. One script in rc.d appears to use it. However I think it would be better to fix the mount options they way they were. I noticed also that if you go multi-user after a crash, you'll get the mfs mounts noted above and in addition the only way to mount / is to reboot. Dropping to single user and attempting to mount -w after the fsck completes complains about invalid argument or invalid device /dev/ad0s1a. --- etc/rc.d/root.org Fri Dec 2 08:48:15 2005 +++ etc/rc.d/root Fri Dec 2 08:48:29 2005 @@ -23,7 +23,7 @@ [Nn][Oo] | '') ;; *) - if ! mount -u -o rw /; then + if ! mount -u -w /; then echo 'Mounting root filesystem rw failed, startup aborted' /bin/kill -QUIT $$ --- othermark atkin901 at nospam dot yahoo dot com (!wired)?(coffee++):(wired);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dmpu98$8qb$1>