external usb disk

Matthieu Bollot mattboll at gmail.com
Sat Nov 24 16:04:27 PST 2007

Hi, I've got a 250GB ide disk, that I put in an external usb box.
I've made 3 partitions under linux, ext2, all works fine.

in dmesg I've got no error :
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SAMSUNG SP2514N \\0000\\0000> Fixed Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C)
and in /dev I've got da0 da0s1 da0s2 da0s3.

but let's see that :
# mount_ext2fs /dev/da0s1 /mnt/clean
# ls -a
.       ..      clean
# cd clean
# ls -a
# mkdir qsd
mkdir: qsd: File exists
# cd qsd/wxc
# ls -a
# echo "aze">aze && cat aze
# vim aze ##note that here i can see the word aze
# cat aze

btw, I also wasn't able to create slice/label under freebsd (that's why I've ext2ed it) 
I don't remember the errors but somethings like read/write to block 0 failed was common.

an other thing is fsck :
#fsck.ext2 /dev/da0s1
e2fsck 1.40.2 (12-Jul-2007)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/da0s1
Could this be a zero-length partition?

whereas under linux it just says something like partition is clean.

As you can imagine, I've got absolutely no idea what I should search for.

thanks a lot,

More information about the freebsd-stable mailing list