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>
next in thread | previous in thread | raw e-mail | index | archive | help
--XVon4esBxRD1rZiP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? > >=20 > > I have downgraded the mount to read-only, but still geom seems > > to disallow fsck access to it.=20 > >=20 > > Is there a way to tell the system to allow fsck to open it > > read/write? > >=20 > > 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?=20 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. --=20 Chris Cowart Lead Systems Administrator Network Infrastructure, RSSP-IT UC Berkeley --XVon4esBxRD1rZiP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFGjEZxV3SOqjnqPh0RAmG2AKC0wBoO1WKhEzYW4wlSsfzPEAfMZwCdFNnJ R0c8g+Y04AEa/3vl4GXTjXQ= =d+aN -----END PGP SIGNATURE----- --XVon4esBxRD1rZiP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070705011633.GC17271>