Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Nov 2006 12:47:20 -0600
From:      "Rick C. Petty" <rick-freebsd@kiwi-computer.com>
To:        freebsd-geom@FreeBSD.ORG
Subject:   Re: FSCKing a RO partition
Message-ID:  <20061107184720.GA10865@keira.kiwi-computer.com>
In-Reply-To: <200611071201.kA7C1jST044243@lurza.secnetix.de>
References:  <20061106212307.GA75478@keira.kiwi-computer.com> <200611071201.kA7C1jST044243@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 07, 2006 at 01:01:45PM +0100, Oliver Fromme wrote:
> 
> Personally, when I enter single-user mode and need to
> mount any partition for writing, "fsck -p" is always the
> first thing I type.  It's hardcoded into my fingers (and
> should be for every admin), so there's nothing to remember
> either.  :-)

Not sure I agree 100%.  This has bitten me a few times on a fileserver with
terabytes of disk space.  I don't want to wait for the preen to finish,
although moving it to the background is a possibility...  often I just want
to fix /etc/fstab using vi, so it requires me to "preen" /, /usr, and /var
(to prevent the annoying messages).  I don't get into a habit of starting
a long-running process when I'm in a hurry to get a fileserver back up.

Aside from fixing the "mount -u -r /" bug, I guess I would be happy if you
could preen a particular file system, e.g. "fsck -p /usr".  I'm surprised
no one's added this before.  Also what would be nice if there was an "-a"
option to specify all auto-mounted filesystems, so I could do:  "fsck -ya"
if I wanted.  Maybe I'll look into adding these when I have time.  fsck
used to be an easier program before background checks were added...

-- Rick C. Petty



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061107184720.GA10865>