I'm running out of ideas here. I can't mount any of my USB filesystem devices via /dev/sda1 or /dev/sdb1. I have USB support enabled in the kernel, I have my controller drivers enabled and working, and I have usb mass storage devices enabled. My USB mouse works just fine.
I have /proc/bus/usb mounted properly. When I connect my USB drive, I can see the device listed in /proc/bus/usb/devices:
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1006 ProdID=3003 Rev= 1.00
S: Manufacturer=iRiver
S: Product=iRiver H300 Series
S: SerialNumber=0123456789AB
Plus, I have enabled USB debugging. When I connect the device, it seems to be detected properly:
Jan 13 11:54:51 localhost kernel: usb 1-3: new high speed USB device using ehci_hcd and address 4
Jan 13 11:54:51 localhost kernel: usb 1-3: Product: iRiver H300 Series
Jan 13 11:54:51 localhost kernel: usb 1-3: Manufacturer: iRiver
Jan 13 11:54:51 localhost kernel: usb 1-3: SerialNumber: 0123456789AB
Jan 13 11:54:51 localhost kernel: ub: sizeof ub_scsi_cmd 64 ub_dev 2488
Jan 13 11:54:54 localhost kernel: uba: tag orig 0x1 reply 0x0
Jan 13 11:54:54 localhost kernel: uba: device 4 capacity nsec 0 bsize 512
Jan 13 11:54:54 localhost kernel: usbcore: registered new driver ub
Jan 13 11:54:54 localhost devlabel: devlabel service started/restarted
But when I try to mount:
sudo mount -t vfat /dev/sda1 /mnt/memstick
I get:
mount: /dev/sda1 is not a valid block device
I've read the linux usb guide at www.linux-usb.org and don't see anything that I'm missing. This works just fine when I boot into my 2.4 kernel. Memory stick devices don't work either. I also made sure that I have SCSI and SCSI Disk support enabled.
What am I missing here?
Try sudo mount -t vfat /d
Try
sudo mount -t vfat /dev/uba1 /mnt/memstick
need device numbers
It looks like the new "ub" driver which has replaced the scsi usb stuff didn't create a /dev/uba1 device when I installed it. The trouble is, I can't find out what the major and minor device numbers for the ub drivers are! I've looked in Documentation/usb/*, I've searched google. I'm finding this info very hard to locate.
Could someone that's successfully using the ub drivers please just do an ls -a /dev/uba1 and tell me what the Major and Minor device numbers are?
Also, I'm very curious of where this information is available. Shouldn't this be in the /Documentation/usb dir? If I'm a moron and just didn't look in the right place for this info, please let me know. Thanks.
Hello, I am using devfs, so
Hello,
I am using devfs, so the entry in /dev when I plug a pendrive appears automatically. The numbers I get are:
To mount the pendrive, i just mount /dev/ub/a/part1
Hope it helps
Thank you!
Thank you so much! Those were the device numbers I needed. I'm not familiar enough with linux kernel politics to know where to submit such a request, but if the right person is watching, can we PLEASE get the device numbers for the new ub drivers documented and put in the kernel documentation directory that is distributed with the kernel source. I would be surprised if I am the only person who has had a difficult time with this.
Drivers do seem to be working well so far. Much thanks.
Thank you!
wah ! cheers man - you saved me time !!
Thanks
I just want to thanks you !
The minor/major numbers saved me a lot of time :)
Sorry, This is Wrong!
The UB driver is a driver for low speed USB devices, it does not replace usb-storage (scsi), but it does disrupt it's operation.
If you get a bigger/faster pendrive it will stop working. Dont use the UB driver, unless you do actually need what it provides.
The following warning was added to the documentation, after numerous bug reports were reported on lkml. Probably after you started using the driver ;-)
CONFIG_BLK_DEV_UB:
This driver supports certain USB attached storage devices
such as flash keys.
Warning: Enabling this cripples the usb-storage driver.
If unsure, say N.
Symbol: BLK_DEV_UB [=n]
Prompt: Low Performance USB Block driver
Defined at drivers/block/Kconfig:354
Depends on: USB
Location:
-> Device Drivers
-> Block devices