PrintLogo

Mounting USB Filesystems




We have a Sony Cyber-shot model DSC-U20 camera. We had to add USB filesystem support and generic SCSI support to our kernel, but besides that, using the camera with GNU/Linux was quite easy. After your kernel is happy, just plug in your USB device and run dmesg:

root@srv-1 u-1 # dmesg
.
.
.
hub.c: new USB device 00:1f.4-2, assigned address 2
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Sony      Model: Sony DSC          Rev: 4.30
Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 253696 512-byte hdwr sectors (130 MB)
sdb: Write Protect is off
/dev/scsi/host1/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
.
.
.

This will tell you what SCSI device you need to mount. We need to mount partition 1 on sdb:

root@srv-1 u-1 # mount -t vfat /dev/sdb1 /mnt/camera
root@srv-1 u-1 # cd /mnt/camera/dcim/100msdcf
root@srv-1 100msdcf # ls
dsc00021.jpg  dsc00022.jpg  dsc00023.jpg  dsc00024.jpg  dsc00025.jpg
root@srv-1 100msdcf #





This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art319.html

Copyright 1997-2007 NetAdminTools.com. Read our Terms of Use.