Click to See Complete Forum and Search --> : Problems mounting usb mass storage device =-(


servo888
03-06-2004, 10:54 PM
Hello,

I'm having some problems mounting my digital camera (via usb cable).

I'm running 2.6.3 kernel, with usb and scsi emulation support:


bash-2.05b$ lsmod
Module Size Used by
vfat 12032 0
fat 40384 1 vfat
usb_storage 26368 0
btaudio 15376 0
uhci_hcd 28176 0
ohci_hcd 16516 0
ehci_hcd 22276 0
snd_seq_midi 6688 0
snd_seq_midi_event 6144 1 snd_seq_midi
snd_seq 50576 2 snd_seq_midi,snd_seq_midi_event
snd_cs46xx 87208 0
snd_rawmidi 20128 2 snd_seq_midi,snd_cs46xx
snd_seq_device 6920 3 snd_seq_midi,snd_seq,snd_rawmidi
snd_ac97_codec 60676 1 snd_cs46xx
snd_pcm 84900 1 snd_cs46xx
snd_timer 20868 2 snd_seq,snd_pcm
snd 47076 9 snd_seq_midi,snd_seq_midi_event,snd_seq,snd_cs46xx ,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm ,snd_timer
gameport 3712 1 snd_cs46xx
snd_page_alloc 9604 2 snd_cs46xx,snd_pcm
tuner 16768 0
tvaudio 20352 0
msp3400 22528 0
bttv 137324 0
video_buf 17280 1 bttv
v4l2_common 4864 0
btcx_risc 3840 1 bttv
soundcore 7264 3 btaudio,snd,bttv
hid 30400 0
usbcore 89436 7 usb_storage,uhci_hcd,ohci_hcd,ehci_hcd,hid
nvidia 2071048 12
3c59x 34600 0
bash-2.05b$


When I plug in the camera dmesg shows:


usb 1-2.4: new full speed USB device using address 9
scsi4 : SCSI emulation for USB Mass Storage devices
Vendor: MAT****A Model: DMC-LC33 Rev: 0100
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 250881 512-byte hdwr sectors (128 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
/dev/scsi/host4/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi4, channel 0, id 0, lun 0, type 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 9


But when I mount it, it tells me that no media was found:


bash-2.05b# mount -t vfat /dev/sda /mnt/usb
mount: No medium found


Can anybody help me?

saithan
03-07-2004, 12:01 AM
Try indicating which device as such:
mount -t vfat /dev/sda1 /mnt/usb

in order to mount many of my mass storage devices I must use sda#

I also use a script that makes mounting mass storage devices seemless. I just right click/mount after connecting the device much as i would mounting a cdrom via desktop.
https://listman.redhat.com/archives/rhl-devel-list/2003-August/msg00115.html

servo888
03-07-2004, 10:54 AM
Same problem

Hayl
03-07-2004, 10:56 AM
post the results of :

ls /dev | grep sda

pezplaya
03-07-2004, 11:07 AM
What do you do if ls /dev |grep sda comes up with nothing? Can I somehow create this device? I have one box that doesn't return anything.

Hayl
03-07-2004, 11:28 AM
you have to load the appropriate modules to make it create the device, usb-storage, sd_mod, and the other usb stuff if you have it modularized.

the reason i asked you to post the results is that it might create sda1 and sda2... sometimes sda1 is a "partition table" or even firmware, and sda2 is the actual data.

servo888
03-07-2004, 01:23 PM
bash-2.05b# ls /dev | grep sda
sda
sda1

servo888
03-07-2004, 01:25 PM
Originally posted by pezplaya
What do you do if ls /dev |grep sda comes up with nothing? Can I somehow create this device? I have one box that doesn't return anything.

You must have the usb mass storage device plugged in before /dev/sda1 comes up.

Hmm... this is very strange =-\

Hayl
03-07-2004, 01:46 PM
Originally posted by servo888
You must have the usb mass storage device plugged in before /dev/sda1 comes up.

that is normal, the device is created when you plug it in and removed when you remove the device.

you should be able to mount it if you have the correct file system in your kernel, which should be vfat - usually.

servo888
03-07-2004, 02:18 PM
Originally posted by Hayl
that is normal, the device is created when you plug it in and removed when you remove the device.

you should be able to mount it if you have the correct file system in your kernel, which should be vfat - usually.

well it wont...

pezplaya
03-08-2004, 04:45 PM
Servo, I think im getting somewhere.

Do you have hotplug emerged? If not:

emerge hotplug
/etc/init.d/hotplug start

then rc-update add hotplug default

It created the USB devices on one of my boxes that was having problems and it can now see the usb device.

Problem I'm still having is that I have to mount /dev/sda before I can tell it to mount /dev/sda1