Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 10:06:30 -0700
From:      Joshua Oreman <oremanj@webserver.get-linux.org>
To:        "W. Sierke" <ws@senet.com.au>
Cc:        questions@freebsd.org
Subject:   Re: Anyone able to run e2fsck
Message-ID:  <20030710170630.GF3656@webserver.get-linux.org>
In-Reply-To: <01d901c346ab$56694f80$0264a8c0@ovirt.dyndns.ws>
References:  <01d901c346ab$56694f80$0264a8c0@ovirt.dyndns.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
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<y>? 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030710170630.GF3656>