Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mounting usb drive

Status
Not open for further replies.

job357

Technical User
Sep 16, 2002
106
US
Hello-
Is there anyone who might be able to help mount a usb storage device? 'mount -t vfat /dev/sda1 /mnt/usbdrive' errors with, "mount: /dev/sda1 is not a valid block device"

There are no other scsi devices attached.

/var/log/messages:
linux /etc/hotplug/usb.agent[18809]: need a device for this command
linux kernel: usb 1-1: new full speed USB device using address 5
linux kernel: usb 1-1: Product: USB to IDE
linux kernel: usb 1-1: Manufacturer: USB to IDE

uname -r:
2.6.5-7.111-default

/proc/scsi/usb-storage/2:
Host scsi2: usb-storage
Vendor: USB to IDE
Product: USB to IDE
Serial Number: None
Protocol: 8070i
Transport: Bulk
Quirks:

/proc/bus/usb/devices:
T: Bus=02 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.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.5-7.111-default uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.3
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= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 93/900 us (10%), #Int= 1, #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.5-7.111-default uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.2
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= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 1.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04ce ProdID=0002 Rev= 0.23
C:* #Ifs= 1 Cfg#= 1 Atr=40 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=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c00e Rev=11.00
S: Manufacturer=Logitech
S: Product=USB-PS/2 Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=hid
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms
linux:/dev/usb # cat /proc/bus/usb/devices |grep -i usb
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=05 Prot=50 Driver=usb-storage
S: Product=USB-PS/2 Optical Mouse
linux:/dev/usb # cat /proc/bus/usb/devices

T: Bus=02 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.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.5-7.111-default uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.3
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= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 93/900 us (10%), #Int= 1, #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.5-7.111-default uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.2
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= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 1.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04ce ProdID=0002 Rev= 0.23
C:* #Ifs= 1 Cfg#= 1 Atr=40 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=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c00e Rev=11.00
S: Manufacturer=Logitech
S: Product=USB-PS/2 Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=hid
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms

Thanks!
 
plug the usb disk in the usb port, then:

modprobe usb-storage

take a look the dmesg to see where is your new device, it should be something like /dev/sdc0

mount /dev/sdc0 /mnt
 
Chacalinc-

usb-storage module is already loaded:

lsmod |grep -i usb
"usbcore 103644 6 usb_storage"

When i try and mount the device:

mount /dev/sdc0 /mnt
"mount: special device /dev/sdc0 does not exist"

I even tried:
mount /dev/sdc1 /mnt

dmesg output for 'usb':
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb usb1: Product: UHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.5-7.111-default uhci_hcd
usb usb1: SerialNumber: 0000:00:07.2
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.5-7.111-default uhci_hcd
usb usb2: SerialNumber: 0000:00:07.3
usb 1-1: new low speed USB device using address 2
usb 1-1: Product: USB Combi Keyboard
usb 1-2: new low speed USB device using address 3
usb 1-2: Product: USB-PS/2 Optical Mouse
usb 1-2: Manufacturer: Logitech
usbcore: registered new driver hiddev
input: USB HID v1.00 Keyboard [USB Combi Keyboard] on usb-0000:00:07.2-1
input,hiddev96: USB HID v1.00 Device [USB Combi Keyboard] on usb-0000:00:07.2-1
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:07.2


Thanks.
 
I don't see the disk drive in the list, did you boot the linux with the usb-storage connected?
 
No i did not, should I rebooted with drive connected?

Thanks
 
Here is dmesg after rebooting:
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb usb1: Product: UHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.5-7.111-default uhci_hcd
usb usb1: SerialNumber: 0000:00:07.2
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.5-7.111-default uhci_hcd
usb usb2: SerialNumber: 0000:00:07.3
usb 1-1: new full speed USB device using address 2
usb 1-1: Product: USB to IDE
usb 1-1: Manufacturer: USB to IDE
usb 1-2: new low speed USB device using address 3
usb 1-2: Product: USB-PS/2 Optical Mouse
usb 1-2: Manufacturer: Logitech
usbcore: registered new driver usb-storage
usbcore: registered new driver hiddev
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:07.2-2
usbcore: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
 
I don't see any disk device again... is your disk drive good? are you posting the whole dmesg(starting from the usb part of coure) or you made a grep? (dmesg | grep usb) ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top