Date: Wed, 4 Jul 2007 18:16:33 -0700 From: Christopher Cowart <ccowart@rescomp.berkeley.edu> To: Joe Holden <joe@joeholden.co.uk> Cc: Alfred Perlstein <alfred@freebsd.org>, questions@freebsd.org, phk@freebsd.org Subject: Re: fsck on a read only partition? Message-ID: <20070705011633.GC17271@rescomp.berkeley.edu> In-Reply-To: <468C402B.90709@joeholden.co.uk> References: <20070705002457.GZ45894@elvis.mu.org> <468C402B.90709@joeholden.co.uk>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Thu, Jul 05, 2007 at 01:49:47AM +0100, Joe Holden wrote: > Alfred Perlstein wrote: > > Hello, how do I fsck my disk if it's mounted? > > > > I have downgraded the mount to read-only, but still geom seems > > to disallow fsck access to it. > > > > Is there a way to tell the system to allow fsck to open it > > read/write? > > > > thanks, > If you unmount it first, you should be able to fsck it fine, /dev/blah > (ad0/1/2/whatever) I think that misses the point; what if it's the / filesystem? I have personally wanted to do this before myself. I had a situation where a deleted file was still being written to by a backgrounded tcpdump, resulting in a full filesystem but no file to rm. It would have been great to quick remount ro, fsck, then remount rw. Instead, I had to schedule downtime, reboot into single, and run fsck -- not fun. -- Chris Cowart Lead Systems Administrator Network Infrastructure, RSSP-IT UC Berkeley [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFGjEZxV3SOqjnqPh0RAmG2AKC0wBoO1WKhEzYW4wlSsfzPEAfMZwCdFNnJ R0c8g+Y04AEa/3vl4GXTjXQ= =d+aN -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070705011633.GC17271>
