Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2011 16:15:19 GMT
From:      Roger Hammestein <cheeky.m@live.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/155199: ext3fs mounted as ext2 gives I/O errors
Message-ID:  <201103021615.p22GFJi4085203@red.freebsd.org>
Resent-Message-ID: <201103021620.p22GKBDu043212@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155199
>Category:       kern
>Synopsis:       ext3fs mounted as ext2 gives I/O errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 02 16:20:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Roger Hammestein
>Release:        9
>Organization:
>Environment:
butter 9.0-CURRENT FreeBSD 9.0-CURRENT #10: Wed Feb  9 12:14:02 EST
2011     root@butter:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:

Made an ext3fs instead of ext2fs on an Ubuntu live cd and rsynced
some data to it.   Mounted in FreeBSD and some files are unreadable.
Symlinks also do not work.  Newly-created symlinks while booted into
Freebsd do work.  I was expecting the ext3 to mount as ext2 and still work.


The system logs messages like this on the symlinks or problem files:

Feb 10 13:08:23 butter kernel: g_vfs_done():ada2s1[READ(offset=-963020587008, length=4096)]error = 5

Booting back into Ubuntu and the entire disk is readable.  It fscks clean
in Ubuntu and Freebsd.  


On a second disk, I redid the rsync copy to a newly-created ext2fs, instead
of ext3, and that one works just fine.




latest e2fsprogs:
e2fsprogs-1.41.14   Utilities & library to manipulate ext2/3/4 filesystems



2tb Seagate ST32000542AS

ada2 at siisch2 bus 0 scbus2 target 0 lun 0
ada2: <ST32000542AS CC34> ATA-8 SATA 2.x device
ada2: Serial Number XXXXXXXXX
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)


fdisk ada2
******* Working on device /dev/ada2 *******
parameters extracted from in-core disklabel are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
    start 63, size 2929709727 (1430522 Meg), flag 0
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 131 (0x83),(Linux native)
    start 2929709790, size 977314275 (477204 Meg), flag 0
        beg: cyl 1023/ head 254/ sector 63;
        end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


The disk was fdisked in Ubuntu.


mount:
/dev/ada2s1 on /a (ext2fs, local)


dumpe2fs /dev/ada2s1
dumpe2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          a6ac694e-33c1-4755-87c8-8d8ab7dacf27
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              91553792
Block count:              366213715
Reserved block count:     18310685
Free blocks:              146706194
Free inodes:              91353824
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      936
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Filesystem created:       Mon Feb  7 13:51:21 2011
Last mount time:          Tue Feb 22 02:44:43 2011
Last write time:          Wed Mar  2 10:57:46 2011
Mount count:              0
Maximum mount count:      22
Last checked:             Mon Feb 28 16:05:17 2011
Check interval:           15552000 (6 months)
Next check after:         Sat Aug 27 17:05:17 2011
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group wheel)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      db8ff0df-f7bb-4940-9a0f-8e9c8d50f450
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Journal size:             128M
Journal length:           32768
Journal sequence:         0x00004d18
Journal start:            0

>How-To-Repeat:
Make an ext3fs from an Ubuntu live cd and try to mount it under FreeBSD.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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