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 > > _______________________________________________ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"