ext2fs bug

Jeremy Chadwick jdc at koitsu.org
Sun Jun 23 09:35:50 UTC 2013


On Sun, Jun 23, 2013 at 11:15:44AM +0200, gabor at zahemszky.hu wrote:
> Hi!
> 
> I've got 2 disks (a 1TB and a 2TB), these disk were written under
> Linux 2.4.
> I can mount them under FreeBSD, and I can reach about half of the
> files, but
> on some files, I only get some FS errors. In dmesg, I can see the
> following
> errors:
> 
> g_vfs_done():ada2s1[READ(offset=-756558786560, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-899189821440, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-756558786560, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-899189821440, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-756558786560, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-899189821440, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-756558786560, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-899189821440, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-756558786560, length=4096)]error = 5
> g_vfs_done():ada2s1[READ(offset=-899189821440, length=4096)]error = 5
> 
> The disk is not bad: I can read the same files under the original
> Linux,
> and on a newer Linux-machine, and I can read it under FreeBSD with
> the e2fsprogs package's
> debugfs tool (I can copy the files with the dump and rdump commmand
> from debugfs.)
> 
> Itt looks, that there are some misinterpretation of some of the
> metainfo
> in the Ext2 fs-driver. (Or maybe some signed/unsigned bug in it.)
> 
> Can anybody help? Can I help to anybody with some more information?
> 
> Thanks,
> 
> Gabor < Gabor at Zahemszky dot HU >
> 
> PS: sometimes I can only see az empty directory. Sometimes, I can
> reach half of the files
> in a directry. But the kernel error message is the same.

What FreeBSD version are you using?

In the past 3-4 weeks there have been *tons* of ext2fs fixes in
stable/9, and I'm not exaggerating in the least.  You will not find
these fixes being backported to 9.1-RELEASE or earlier.

I strongly recommend you try a recent stable/9 (i.e. past few days)
with ext2fs.  You can try a stable/9 ("RELENG_9") ISO snapshot here:

https://pub.allbsd.org/FreeBSD-snapshots/

-- 
| Jeremy Chadwick                                   jdc at koitsu.org |
| UNIX Systems Administrator                http://jdc.koitsu.org/ |
| Making life hard for others since 1977.             PGP 4BD6C0CB |



More information about the freebsd-fs mailing list