Date: Sun, 25 Nov 2007 16:15:53 +0100 From: Matthieu Bollot <mattboll@gmail.com> To: freebsd-usb@freebsd.org Subject: external usb disk Message-ID: <1196003753.8387.37.camel@sarah.bob.selfip.org>
next in thread | raw e-mail | index | archive | help
Hi, I've posted a mail on the stable mailing list, but may be it is better to post here. So, here is my problem : 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 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. here is what I've got when i try the handbook way : #dd if=/dev/zero of=/dev/da0 bs=1k count=1 dd: /dev/da0: end of device 1+0 records in 0+0 records out 0 bytes transferred in 0.001107 secs (0 bytes/sec) #fdisk -BI da0 ******* Working on device /dev/da0 ******* fdisk: invalid fdisk partition table found fdisk: Geom not found fdisk: Failed to write sector zero I've found some other strange things : linux : sarah:/home/mattboll# mount /dev/sdb1 /mnt/sth sarah:/home/mattboll# cd /mnt/sth sarah:/mnt/sth# ls lost+found sarah:/mnt/sth# mkdir music sarah:/mnt/sth# echo hello >aze sarah:/mnt/sth# ls aze lost+found music sarah:/mnt/sth# cat aze hello sarah:/mnt/sth# stat aze File: `aze' Size: 6 Blocks: 8 IO Block: 4096 fichier régulier Device: 811h/2065d Inode: 12 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2007-11-25 15:35:43.000000000 +0100 Modify: 2007-11-25 15:35:41.000000000 +0100 Change: 2007-11-25 15:35:41.000000000 +0100 sarah:/mnt/sth# stat music File: `music' Size: 4096 Blocks: 8 IO Block: 4096 répertoire Device: 811h/2065d Inode: 8503297 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2007-11-25 15:34:53.000000000 +0100 Modify: 2007-11-25 15:34:53.000000000 +0100 Change: 2007-11-25 15:34:53.000000000 +0100 sarah:/mnt/sth# freebsd : lisa# mount -t ext2fs /dev/da0s1 /home/lisa/partage/clean/ lisa# cd /home/lisa/partage/clean lisa# ls lisa# stat music 93 8503297 drwxr-xr-x 2 root wheel 17008640 4096 "Nov 25 15:34:53 2007" "Nov 25 15:34:53 2007" "Nov 25 15:34:53 2007" "Jan 6 05:21:28 1947" 4096 8 0 music lisa# stat aze 93 12 -rw-r--r-- 1 root wheel 18432 6 "Nov 25 15:35:43 2007" "Nov 25 15:35:41 2007" "Nov 25 15:35:41 2007" "Dec 29 22:08:24 1946" 4096 8 0 aze lisa# cat aze lisa# You can notice that there are no problems with inode, neither with the size, just with the date (what's this "Dec 29 22:08:24 1946" doing here ?!!) any suggestion ? cheers, matthieu.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1196003753.8387.37.camel>