Date: Tue, 7 Nov 2006 21:02:55 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-geom@FreeBSD.ORG, rick-freebsd@kiwi-computer.com Subject: Re: FSCKing a RO partition Message-ID: <200611072002.kA7K2tcx072210@lurza.secnetix.de> In-Reply-To: <20061107184720.GA10865@keira.kiwi-computer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Rick C. Petty wrote: > 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, If the file systems are clean (which should be the case under normal circumstances), no checks are done, and it takes zero time. If one or more file systems are not clean, of course, it will take some time (probably a long time on TByte systems with many inodes). But you'll have to fsck them anyway, sooner or later... > although moving it to the background is a possibility... True. > 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". That works fine. I just tried it, just to be sure. > 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. That's the default if you don't specify any file systems at all, i.e. "fsck -y" will check them all. > fsck > used to be an easier program before background checks were added... Well, if you ignore the background stuff, the rest of fsck behaves pretty much like it did 10 years ago. (Personally I always disable background fsck via rc.conf because of stability issues.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. We're sysadmins. To us, data is a protocol-overhead.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611072002.kA7K2tcx072210>