ext2fs can't read symlinks
Roger Hammerstein
cheeky.m at live.com
Mon Feb 14 01:33:39 UTC 2011
Hello.
I have a 2tb Seagate ST32000542AS (4k sectors)
with ext2fs that can't seem to read symlinks
from a linux-created ext2fs.
I was rsync migrating files from a linux machine to this freebsd, and booted
an Ubuntu livecd to partition the disk and make the filesystem. I partitioned
it into a 1.5tb partition and a 500 gig partition.
I am getting read errors on some symlinks on an ext2 filesystem, but they
read fine when I boot an Ubuntu live cd. Smartctl shows no errors for the disk.
The filesystem also checks fine with fsck.ext2fs on both freebsd and Ubuntu live cd.
I rebuilt the kernel earlier this week.
FreeBSD
butter 9.0-CURRENT FreeBSD 9.0-CURRENT #10: Wed Feb 9 12:14:02 EST
2011 root at butter:/usr/obj/usr/src/sys/GENERIC amd64
Here's the error:
Feb 10 13:08:23 butter kernel: g_vfs_done():ada2s1[READ(offset=-963020587008, length=4096)]error = 5
The negative offset looks wrong, and the length is always 4k multiples.
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)
mount:
/dev/ada2s1 on /a (ext2fs, local)
ls -la in the problem directory shows:
drwxrwxrwx 2 2006 113 4096 May 18 2008 ABC
drwxrwxrwx 2 2006 113 4096 May 18 2008 DEF
drwxrwxrwx 4 2006 113 4096 May 18 2008 GHI
ls: ./JKL: Input/output error
lrwxrwxrwx 1 2006 2006 83 Jul 13 2005 JKL
drwxrwxrwx 4 2006 113 4096 May 18 2008 JKL [123456]
drwxrwxrwx 2 2006 113 4096 May 18 2008 MNO
There's a symlink named JKL pointing into the 'JKL [123456]' directory.
a 'stat *' in the directory shows the link::
100
75431952 lrwxrwxrwx 1 (1008) (1008) 301758464 83 "Feb 10 12:35:36 2011"
"Jul 13 22:35:44 2005" "Feb 7 18:49:02 2011" "Dec 31 18:59:59 1969"
4096 8 0 JKL
100 62201925 drwxrwxrwx 4 (1008) (503) 248838206 4096
"Feb 10 13:10:22 2011" "May 18 04:06:20 2008" "Feb 7 18:58:26 2011"
"Dec 31 18:59:59 1969" 4096 8 0 JKL [123456]
You can see that the symlink doesn't display the usual "-> " and the target of the symlink in the ls or stat output.
What other commands could I run to provide more information on this?
Other symlinks on this filesystem also generate the g_vfs_done errors.
Thanks.
More information about the freebsd-fs
mailing list