[Techtalk] Re: mounting usb
Conor Daly
conor.daly at oceanfree.net
Sun Apr 20 08:46:24 EST 2003
On Sat, Apr 19, 2003 at 11:30:27PM +0100 or so it is rumoured hereabouts,
iriXx thought:
> Conor Daly wrote:
>
> > It should show up under one of the other /dev/sd? devices. Do
> >
> > fdisk -l
> >
> > which _should_ show you all partitions on all drives. There'll be a clue
> > in there somewhere. Also have a look around /proc/bus/usb and see if you
> > find anything in there...
> >
> > Conor (who only got his usb flash disk working on Saturday)
> >
>
> hmm.. i've only just had time to try this.... it doesnt seem to be
> working tho :-(... any ideas?...
>
> the chkconfig commands didnt work under mandrake 8.2 ... but `hotplug
> usb start' did work...
>
> i unplugged and replugged the little caddy drive but this is all i get
> from fdisk -l (my 4 scsi drives) :
>
> [root at wembly alsa-driver]# fdisk -l
>
> Disk /dev/scsi/host0/bus0/target0/lun0/disc: 255 heads, 63 sectors, 527
> cylinders
> Units = cylinders of 16065 * 512 bytes
[Lots of sosi stuff snipped]
I'm not familiar with the devfs filesystem so I can't really comment on
the above.
> ...and this is what is in /proc/bus/usb/devices : just my m-audio
> quattro usb audio interface...
>
> [root at wembly alsa-driver]# less /proc/bus/usb/devices
This is your USB hub.
> T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
> B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
> D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> P: Vendor=0000 ProdID=0000 Rev= 0.00
> S: Product=USB UHCI Root Hub
> S: SerialNumber=9000
> C:* #Ifs= 1 Cfg#= 1 Atr=40 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= 8 Ivl=255ms
And this is the m-audio
> T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
> D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> P: Vendor=0763 ProdID=2001 Rev= 1.05
> S: Manufacturer=M Audio
> S: Product=USB Audio Quattro
> C:* #Ifs=10 Cfg#= 1 Atr=40 MxPwr= 0mA
[various m-audio bits snipped]
My /proc/bus/usb/devices shows up the usb flash immediately on insertion
so this suggests your hotplug service is not picking up the device. The
only tweaking I had to do was to 'modprobe usb-storage' and that was with
a custom kernel. With the stock RH7.2 kernel, I just ran hotplug and
plugged in the device.
Watch /var/log/messages for hints of hotplug startup
'grep hotplug /var/log/messages'
If you don't see hotplug messages, the usb device won't show.
also look out for usb messages
'grep usb /var/log/messages'
You should usb "connect" messages
Apr 5 18:24:58 Valkerie kernel: hub.c: USB new device connect on bus1/1,
assigned device number 2
Apr 5 18:24:59 Valkerie kernel: usb.c: USB device 2 (vend/prod
0xd7d/0x150) is not claimed by any active driver.
This is all I see until I 'modprobe usb-storage'. Then I get this:
Apr 5 18:24:59 Valkerie kernel: SCSI subsystem driver Revision: 1.00
Apr 5 18:24:59 Valkerie kernel: Initializing USB Mass Storage driver...
Apr 5 18:24:59 Valkerie kernel: usb.c: registered new driver usb-storage
Apr 5 18:24:59 Valkerie kernel: scsi0 : SCSI emulation for USB Mass
Storage devices
Apr 5 18:24:59 Valkerie kernel: Vendor: Model: USB MP3
Rev: 1.06
Apr 5 19:42:27 Valkerie kernel: Type: Direct-Access
ANSI SCSI revision: 02
Apr 5 19:42:27 Valkerie kernel: Attached scsi removable disk sda at
scsi1, channel 0, id 0, lun 0
Apr 5 19:42:27 Valkerie kernel: SCSI device sda: 256000 512-byte hdwr
sectors (131 MB)
Apr 5 19:42:27 Valkerie kernel: sda: Write Protect is off
Apr 5 19:42:27 Valkerie kernel: sda: sda1
Apr 5 19:42:27 Valkerie kernel: USB Mass Storage support registered.
Note the line that says "Attached scsi removable disk sda". And lo, my
usb flash device is at /dev/sda.
Do you get any lights on the usb drive when you connect it? Do you see
any hotplug or usb messages in the log?
Conor
--
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
8:08am up 30 days, 13:45, 0 users, load average: 0.00, 0.00, 0.00
Hobbiton.cod.ie
8:08am up 30 days, 13:43, 1 user, load average: 0.08, 0.03, 0.01
More information about the Techtalk
mailing list