From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 10:06:19 2003 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 4975837B401 for ; Thu, 10 Jul 2003 10:06:19 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8852543F85 for ; Thu, 10 Jul 2003 10:06:18 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 3986 invoked by uid 1001); 10 Jul 2003 17:06:30 -0000 Date: Thu, 10 Jul 2003 10:06:30 -0700 From: Joshua Oreman To: "W. Sierke" Message-ID: <20030710170630.GF3656@webserver.get-linux.org> References: <01d901c346ab$56694f80$0264a8c0@ovirt.dyndns.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01d901c346ab$56694f80$0264a8c0@ovirt.dyndns.ws> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: Anyone able to run e2fsck 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: Thu, 10 Jul 2003 17:06:19 -0000 On Thu, Jul 10, 2003 at 03:50:19PM +0930 or thereabouts, W. Sierke wrote: > I just can't get e2fsck to run on my 4.8 system. As mentioned in a previous > thread, after a crash I had to resort to booting with tomsrtbt and ran what > appears to be the same version of e2fsck. Now, with the box back up and > running, I still can't run e2fsck under BSD. > > I'm therefore interested to hear from anyone who is able to run it and/or > has any suggestions as to why I might be having problems. The ext2fs > partitions happen to be in a DOS extended partition, hence they appear on my > system as: > > /dev/ad0s5 and > /dev/ad0s6 > > # e2fsck /dev/ad0s5 > e2fsck 1.27 (8-Mar-2002) > The filesystem size (according to the superblock) is 1281175 blocks > The physical size of the device is 0 blocks > Either the superblock or the partition table is likely to be corrupt! > Abort? yes > > and similar result for ad0s6. Having run e2fsck from tomsrtbt, they are now > mounting fine and the system is running normally, but I'd prefer to not have > to resort to booting under linux to maintain these volumes if possible. There is a bug in the e2fsprogs port. The fact that they are getting 0 blocks implies that they are not getting good results from the disklabel. (Fact: There is none). I looked at the source code and it seems they don't even try to use the DIOCGMEDIASIZE ioctl; is there a reason for this? If you're a programmer, look into it. If you're not, bug me and I'll do it :-) -- Josh > > > Thanks, > > Wayne > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"