[Wylug-help] Mounting a USB digital camera

James Holden wylug at jamesholden.net
Fri Oct 29 16:38:41 BST 2004


--
Felix,

Mount can give silly and misleading error messages sometimes.

Have you tried to mount it read-only?

# mount -o ro -t vfat /dev/sda1 /mnt/camera

The FAT16 that fdisk reports is just the partition type from the
partition table. It doesn't examine the filesystem. Try this (as root):

# file -sL /dev/sda1

You should get something like this:

/dev/sda1: x86 boot sector

Can you mount a MS-DOS formatted floppy?

# mount -t vfat /dev/fd0 /mnt/floppy (assuming /mnt/floppy exists, and
you have a floppy A: drive)

I'm assuming the device is readable because fdisk is able to read the
partition table and that it's reading it correctly. It shows a 512MB
device. Correct?

Can you mount it as filesystem type 'msdos' instead? Maybe some
corruption or non-standardness is confusing the vfat driver.

James



On Fri, 2004-10-29 at 13:18, Felix Ulrich-Oltean wrote:
> Hi
>
> I'm trying to mount my digital camera, without joy.  I'm running
> Debian unstable with kernel 2.6.8 that I compiled myself.  The camera
> is a Pentax Optio S40.  My colleagues with SuSe and Fedora can mount
> it with no troubleand grab the files.
>
> My system recognises the camera, sets up the /dev/sda1 device, but
> then I can't mount.  Here's some more info:
>
> # lsmod
> Module                  Size  Used by
> sr_mod                 14820  0
> sd_mod                 16064  0
> usb_storage            27072  0
> scsi_mod              102028  3 sr_mod,sd_mod,usb_storage
> ohci_hcd               15236  0
> usbcore                99620  4 usb_storage,ohci_hcd
> ntfs                  131828  0
> msdos                   7296  0
> vfat                   11264  0
> fat                    38784  2 msdos,vfat
> snd_intel8x0           28808  1
> snd_ac97_codec         64516  1 snd_intel8x0
> snd_pcm                78920  1 snd_intel8x0
> snd_timer              20036  1 snd_pcm
> snd_page_alloc          8968  2 snd_intel8x0,snd_pcm
> snd_mpu401_uart         5824  1 snd_intel8x0
> snd_rawmidi            19172  1 snd_mpu401_uart
> nvidia               4817652  12
> smbfs                  61368  4
>
> # more /etc/mtab
> /dev/hda5 / reiserfs rw 0 0
> proc /proc proc rw 0 0
> sysfs /sys sysfs rw 0 0
> devpts /dev/pts devpts rw,gid=5,mode=620 0 0
> tmpfs /dev/shm tmpfs rw 0 0
> /dev/hda4 /home reiserfs rw 0 0
> /dev/hda1 /boot ext3 rw 0 0
> usbdevfs /proc/bus/usb usbdevfs rw 0 0
> /dev/sda1 /mnt/camera vfat noauto,ro 0 0
>
> # more /proc/bus/usb/devices
> T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.8oct19 ohci_hcd
> S:  Product=nVidia Corporation nForce USB Controller (#2)
> S:  SerialNumber=0000:00:03.0
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
>
> T:  Bus=02 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
> D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0a17 ProdID=0015 Rev= 0.00
> S:  Manufacturer=PENTAX
> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=05 Prot=50 Driver=usb-storage
> E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
>
> T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.8oct19 ohci_hcd
> S:  Product=nVidia Corporation nForce USB Controller
> S:  SerialNumber=0000:00:02.0
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
>
> # fdisk -l /dev/sda
>
> Disk /dev/sda: 512 MB, 512229376 bytes
> 9 heads, 8 sectors/track, 13895 cylinders
> Units = cylinders of 72 * 512 = 36864 bytes
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               4       13896      500107+   6  FAT16
>
> #### END OF QUOTE ####
>
> When I try to mount it, either manually, or using the /etc/fstab or
> /etc/mtab entry, I get:
>
> # mount -t vfat /dev/sda1 /mnt/camera
> mount: wrong fs type, bad option, bad superblock on /dev/sda1,
>        or too many mounted file systems
>
>
> I'd be grateful for any suggestions.
>
> Thanks,
>
> Felix.
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> http://list.wylug.org.uk/mailman/listinfo/wylug-help
--
Content-Description: This is a digitally signed message part

[ signature.asc of type application/pgp-signature deleted ]
--




More information about the Wylug-help mailing list