From owner-freebsd-usb@FreeBSD.ORG Sun Nov 25 15:40:24 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A793E16A420 for ; Sun, 25 Nov 2007 15:40:24 +0000 (UTC) (envelope-from mattboll@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 2D0E413C458 for ; Sun, 25 Nov 2007 15:40:23 +0000 (UTC) (envelope-from mattboll@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so375943nfb for ; Sun, 25 Nov 2007 07:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=YNhsfEzfqfkjEX4Te66Lp5iSPO/bgw6ee3sBQloYoy0=; b=A260qCyp5A+kDyGz+9emCL6xeJ8zyz+85SrpD9pifPK4QmWYGQwUFyqadpZlpSPYx3Dd6a52nAuXBq0+Jn6bm6t/c1c3KXSEoumlL15aTtlCJ6uL6MO9WnAnxx1klImkRdvmdxBmTqLjfUeEm2pCa2j33QYGEy5NEXdbW1xKj6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=tOR5KThwXeQ1f6QHA4s0jWwcxvEY93355GjYUEXpWhNPQ3lsR1yDYu6jDtzNR6U4I+n+YIZ/IbW9M33ujqAIBwjVB7RXsfPAb2kKdtWlcw3MVKgY5nCmdVDbDJbbaxF+RNBwaHjU9JlkBiZL2XB0p5IOjq6PcZGhw0G+9TIeEcs= Received: by 10.82.118.2 with SMTP id q2mr4513514buc.1196003710902; Sun, 25 Nov 2007 07:15:10 -0800 (PST) Received: from ?192.168.0.3? ( [82.228.156.113]) by mx.google.com with ESMTPS id j12sm1099941fkf.2007.11.25.07.15.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Nov 2007 07:15:10 -0800 (PST) From: Matthieu Bollot To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 25 Nov 2007 16:15:53 +0100 Message-Id: <1196003753.8387.37.camel@sarah.bob.selfip.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 8bit Subject: external usb disk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2007 15:40:24 -0000 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: 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.