Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I wanted to use my pendrive under my RH9. But I can't. When I tried to mount it as sda i get: "mount: /dev/sda is not a valid block device". I am mounting it like this:
mount -t vfat /dev/sda /mnt/usb
So, i wrote simple script, that tried to mount ALL of my /dev/sd* devices. But it didn't mount anything. I found some solutions in the internet, but none of them worked. I think the best way to describe my problem will be pasting all messages that I know.
Module Size Used by
sd_mod 12936 -
via82cxxx_audio 26672 -
ac97_codec 16680 -
usb_storage 32552 -
So, the proper usb and scsi modules are loaded.
Then I tried fdisk -l /dev/sda*, but there was not foud disks.
I also did lsusb and it found the device:
Bus 001 Device 003: ID 0ea0:2168
bDeviceClass 0 Interface
iManufacturer 1 USB
iProduct 2 Flash Disk
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
bEndpointAddress 0x81 EP 1 IN
Transfer Type Bulk
Synch Type none
bEndpointAddress 0x02 EP 2 OUT
Transfer Type Bulk
Synch Type none
bEndpointAddress 0x83 EP 3 IN
Transfer Type Interrupt
Synch Type none
Language IDs: (length=4)
In /var/log/messages is:
Jan 14 16:11:17 localhost kernel: usb 1-2: USB disconnect, address 2
Jan 14 16:11:23 localhost kernel: usb 1-1: new full speed USB device using address 3
So system does see the device.
tail -n 100 /var/log/dmesg | grep usb
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usb 1-2: new full speed USB device using address 2
usbcore: registered new driver usb-storage
But when I do:
I get just:
And that's all i know. I can't mount any of /dev/sda* devices Anyone suspects what's happening?
"Like I said I wrote a script that tries to mount ALL /dev/sd* devices and it is unable to mount anything. Also fdisk -l /dev/sd* does not print anything. So, the problem lies deeper I think "
What do you mean when you state "/dev/sd*", do you mean you wrote a script that mounts /dev/sda, /dev/sdb, /dev/ etc. I don't think you are going to mount a device named "/dev/sd*", as that device doesn't exist. Try 'fdisk /dev/sda' without the tic marks and tell us what happens.
fdisk /dev/sda prints "Unable to open /dev/sda"
fdisk -l /dev/sd* means "list all disks that names begins with sd". Of course the device /dev/sd* (tic mark) does not exist. My script tries to mount ALL of sd* devices (sda, sda1, sda2, ..., sdb etc.), because I'm not sure, which letter it really has. But no device was mounted.
Well, i thought you were close, but after seeing the output of fdisk -l, not really. I'm pretty sure that your usb drive is being recognized by the usb system as per your lsusb output. But it is not being picked up by the scsi stuff. I would say that at this moment there is a missing scsi module, one that hasn't been installed yet, but since I don't use RH9...
However, look at the results of 'lsmod' and look for your scsi stuff.
If your scsi stuff is not loading, I'd probably do, 'modprobe scsi_mod' and 'modprobe sd_mod'
reinsert your usb stick
then fdisk -l and you should now see the /dev/sda or something similar.
You need usb modules (uhci, usb-uhci, ohci, or usb-ohci), sd_mod, scsi modules, usb-storage.
You can not mount /dev/sda because it is a raw partition. You have to mount /dev/sda1. For now revert back to the orginal setup because your script is probably has a bug. Also it could be hotplug not telling devfsd or udev to make the major device node for /dev/sda and its minor device node /dev/sda1.....10.
Sometimes running cdrecord -scanbus may help Linux look at it some more.
You can post what /sbin/lsusb and /sbin/lsmod after you connect the usb flash disk.
OK...I just resolved this IDENTICAL issue this weekend.
What I found out was this...I was using the stock kernel that shipped with RH9.0. Some research I did indicated that this kernel had issues handling USB correctly...which made sense, because I was also trying to get my PDA to sync and no joy.
What I did was upgrade to FC3, then run up2date and pull down the 2.6.10-1.741_FC3. Issue resolved with the flash drive, stay tuned for the PDA.
Gee, I wish I came up with that. Sounds like the MS answer, "you got a problem, reinstall". That works sometimes, but that is not the case here. Up to this point, it looks like the scsi modules are not loading. Don't know why yet, but we'll see soon. Let's stay focused on the problem at hand. The OP has given us all the clues we need to fix this problem as far as I can tell.
Well, I had scsi modules compiled into kernel. But I recompiled the kernel to have both usb and scsi as modules, and the situation hasn't changed.
The modules usb_storage, usbcore, uhci_hcd, scsi_mod and sd_mod are loaded now (by modprobe) and the outputs of "fdisk -l" and "lsusb" are identical. What more can I try?