[nas-2000] Re: usb storage on dual nas

  • From: philipp Wehrheim <flipstar@xxxxxxx>
  • To: nas-2000@xxxxxxxxxxxxx
  • Date: Mon, 27 Aug 2007 19:31:50 +0200

Hey Rob,

Rob wrote:
> On 26/08/07, philipp Wehrheim <flipstar@xxxxxxx> wrote:
>> Hi Rob,
>>
> Hi Flip!
> 
>> what si the output of:
>>
>> cat /proc/bus/usb/devices
> 
> nas> cat /proc/bus/usb/devices
> cat: /proc/bus/usb/devices: No such file or directory
> nas> cd /proc/bus/usb
> nas> ls
> nas> ls -al
> dr-xr-xr-x    5 root     root            0 May  6  2000 ..
> drwxr-xr-x    2 root     root            0 May  6  2000 .
> nas> cat /proc/devices
> Character devices:
>   1 mem
>   2 pty
>   3 ttyp
>   4 /dev/vc/0
>   4 tty
>   5 /dev/tty
>   5 /dev/console
>   5 /dev/ptmx
>   7 vcs
>  10 misc
>  13 input
>  36 netlink
>  90 mtd
> 128 ptm
> 136 pts
> 180 usb
> 204 ttySL
> 
> Block devices:
>   1 ramdisk
>   3 ide0
>   7 loop
>   8 sd
>   9 md
>  22 ide1
>  65 sd
>  66 sd
>  67 sd
>  68 sd
>  69 sd
>  70 sd
>  71 sd
> 128 sd
> 129 sd
> 130 sd
> 131 sd
> 132 sd
> 133 sd
> 134 sd
> 135 sd
> 254 mdp
> nas>
> 
> 
>> ??? Do you "see" you usb-disk?
> 
> not anywhere i can find..
> 
>> Do you have devices? Like /dev/sda?
> 
> loads.. /dev/sda through to /dev/sdz4
> 
>> What dos dmesg say right after you pluged the usb-disk in?
> 
> I don't seem to have a dmesg command, nor a /var/log/dmesg :-(
> 
>>> Is there any way I can get hold of this file pre-compiled, so it will
>>> be of use to me?? (Or instructions on cross-compiling it on an x86
>>> FreeBSD system....!!)
>>>
>>> I think once i get this sorted, the rest of the system may "just work"
>>> - various /etc/rc.* files definitely test  for USB based FAT32 drives,
>>> quota files, etc, but don't work because none of  /dev/sd* have been
>>> linked to drives..
>> Linked to what?
>> As you have a (dual?) sata nas you hd's will be sda, sdb so the usb-disk
>> should be sdc?!

Do you have ide or sata disks?
If you have ide disk you may want to try "the usb kernel" -> see the
wiki. But if you try you'll do at your own risk aka dont blame me if it
is not working ... :-)

>>
> 
> I'm not sure...  /proc/partitions  shows hda*, hdc*, md0 and md1.  and 
> pinching
> the dd line from rc.usb prooves I can read from hda/hdc but not  any sd*..
> 
> nas> dd if=/dev/sda1 of=/tmp/out.fat32 count=1
> dd: /dev/sda1: No such device or address
> nas> dd if=/dev/hda1 of=/tmp/out.fat32 count=1
> 1+0 records in
> 1+0 records out
> nas> dd if=/dev/hdc1 of=/tmp/out.fat32 count=1
> 1+0 records in
> 1+0 records out
> 
>> What is you kernel version?
>> run: uname -a
> 
> Linux nas.internal.irrelevant.com 2.6.10_dev-versatile926ejs #7 Mon
> Feb 26 08:40:19 CST 2007 armv4tl unknown

It is the same kernel the raidsonic nas -> the tinky firmware is using

uname -a gives me:
Linux nas-2000 2.6.10_dev-versatile926ejs #1 Thu Jan 11 14:27:43 CST
2007 armv4tl unknown

> 
> 
> There are lots of references to /dev/sd* devicexs in rc. files in
> /etc, eg rc.usb does that dd to find out if to mount as fat32 or
> ext2/3.

yes the rc scripts are really generic and even test for 2.4
kernel/modules etc ...

--
flip

> 
> I have tried with a usb mp3/flash stick, and a "proper" hard disc via
> a usb-ide adapter.
> 
> Thanks for the help ....
> 
> Rob.
> 

Other related posts: