external usb disk

Matthieu Bollot mattboll at gmail.com
Sun Nov 25 06:48:52 PST 2007


Le dimanche 25 novembre 2007 à 14:09 +0100, Marten Vijn a écrit :
> On Sun, 2007-11-25 at 00:37 +0100, Matthieu Bollot wrote:
> > Hi, I've got a 250GB ide disk, that I put in an external usb box.
> <snip>
> You might try the handbook
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html
> 
> kind regards,
> Marten

Thanks for answering me, but I've read it again and again. And there are
two things. the first one, I don't want to add a new disk in this way
because there are already 3 partitions. So, I should just have to
mount...

And the second thing, 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.




More information about the freebsd-stable mailing list