From owner-freebsd-questions@FreeBSD.ORG Thu Jul 5 01:45:52 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C212B16A400; Thu, 5 Jul 2007 01:45:52 +0000 (UTC) (envelope-from ccowart@hal.rescomp.berkeley.edu) Received: from rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id AB33113C448; Thu, 5 Jul 2007 01:45:52 +0000 (UTC) (envelope-from ccowart@hal.rescomp.berkeley.edu) Received: by rescomp.berkeley.edu (Postfix, from userid 1225) id F04115B772; Wed, 4 Jul 2007 18:16:33 -0700 (PDT) Date: Wed, 4 Jul 2007 18:16:33 -0700 From: Christopher Cowart To: Joe Holden Message-ID: <20070705011633.GC17271@rescomp.berkeley.edu> Mail-Followup-To: Joe Holden , Alfred Perlstein , questions@freebsd.org, phk@freebsd.org References: <20070705002457.GZ45894@elvis.mu.org> <468C402B.90709@joeholden.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XVon4esBxRD1rZiP" Content-Disposition: inline In-Reply-To: <468C402B.90709@joeholden.co.uk> Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.9i Cc: Alfred Perlstein , questions@freebsd.org, phk@freebsd.org Subject: Re: fsck on a read only partition? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2007 01:45:52 -0000 --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--