From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 04:43:35 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 810D916A4CE for ; Tue, 27 Apr 2004 04:43:35 -0700 (PDT) Received: from mtaw6.prodigy.net (mtaw6.prodigy.net [64.164.98.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60D3343D67 for ; Tue, 27 Apr 2004 04:43:35 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (fea7775cb350c9cd7f0d9a9807db3997@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128]) by mtaw6.prodigy.net (8.12.10/8.12.10) with ESMTP id i3RBgL33005492; Tue, 27 Apr 2004 04:42:21 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 31E7A52BE3; Tue, 27 Apr 2004 04:43:34 -0700 (PDT) Date: Tue, 27 Apr 2004 04:43:34 -0700 From: Kris Kennaway To: andy_park@nospammail.net Message-ID: <20040427114333.GA36953@xor.obsecurity.org> References: <1083064442.29080.185185414@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <1083064442.29080.185185414@webmail.messagingengine.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org cc: kris@obsecurity.org Subject: Re: Auto-mounting ext2 slices X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 11:43:35 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 27, 2004 at 04:14:02AM -0700, andy_park@nospammail.net wrote: > -- Original message -- > No, there's also a fsck_ext2fs. This is necessary for fsck to have > any hope of being able to clean the filesystem automatically (it > doesn't know about weirdly named binaries like e2fsck :-), although > you may need to copy it into /sbin since /usr isn't mounted by the > time fsck runs. >=20 > Kris > -- End of original message -- >=20 > Right, so I copied fsck_ext2fs (which I had already, in /usr/local/sbin) > to /sbin, and hard-reset the system, but the boot still halts at the > point it tries to mount the ext2 slice. I get a warning that says the > slice is not clean, followed by a 'no permissions' error. The other > oddity is that simply trying 'fsck /dev/ad1s5' doesn't work (it complains > about the magic number being incorrect), although the man page for > fsck_ext2fs suggests that fsck should be able to invoke fsck_ext2fs. Does > this mean the slice has a corrupt superblock? > > I also have a follow-up question. Is there a way to mark a slice 'dirty' > without crashing or hard-resetting the OS? It would considerably ease my > testing. You can just use fsck -f. Kris --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAjkdlWry0BWjoQKURAonMAJ4963BaAy96jnzPEvxH24b16YkMOgCg49jM 8QzIgz4U56Kd5+LF2FafqgY= =TOTk -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--