Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I was trying to use my USB HD in my redhat 9 with kernel 2.4.20-20.9 by typing:
mount /dev/sda1 /mnt/usbdisk
with no luck, it replies with:
mount: /dev/sda1 is not a valid block device
then i typed gmesg | less and found out something like:
hub.c: new USB device 00:07.2-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x4ce/0x2) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
usb.c: USB disconnect on device 00:07.2-2 address 2
hub.c: new USB device 00:07.2-2, assigned address 3
usb-uhci.c: interrupt, status 3, frame# 499
scsi: device set offline - not ready or command retry failed after bus reset: host 1 channel 0 id 0 lun 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
scsi2 : SCSI emulation for USB Mass Storage devices
usb-uhci, ide-scsi, scsi-mod and usb-storage are loaded when checking lsmod
no only my external USB hard disk, but also my USB Flash disk dosen't work neither... they are all USB 1.1.
it seems that i need a 'driver' for such a device, but i have heard of people got it working without 'drvier'... anybody can please give me a hand?
Thanks
It's probably the wrong device file. My usb zip drive is sda4 and my usb external HD is sda5. Your dmseg output indicates the devices are found and loaded. Finding the correct device file for usb mass storage devices is a pain. I'm sure there's an elegant way to do it by I usually wind up doing the trial and error method with mount /dev/sdax. In my system, doing:
Lists all recognized scsi devices so you might want to try that. Note, I didn't have my zip drive connected when I ran the above. If you have the external HD partitioned with an extended/logical partition, I believe the first partition will be designated sda5 instead of sda1.
Edit: Here's how to find the right device file. Run:
# [root@localhost patrick]# fdisk -l /dev/sda
Disk /dev/sda: 122.9 GB, 122941341696 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda2 * 2 13090 105137392+ 5 Extended
/dev/sda5 2 13090 105137361 b Win95 FAT32
I think that should be /sbin/modprobe but you can check to see if the sd_mod is loaded with
# /sbin/lsmod
If you don't see sd_mod listed( the module for usb mass storage devices) do:
# /sbin/modprobe sd_mod
If that goes OK run the fdisk -l /dev/sda command listed above and see if you get a partition list for sda. Also check /proc/scsi and see if there is a subdirectory called "usb-storage-0" and if it's there look inside it. I have a file in mine simply named "1":
AFAIK sd_mod is the driver for usb mass storage devices. One thing you can try is moving the hard drive to a different usb port, especially if you have it connected to an external hub. Some devices are not recognized properly in either linux or windows when connected to a hub and insist on being connected to the usb port on the box. My usb scanner isn't recognized if connected to a hub but works fine when connected to the box. What distro are you running and what is the make and model of the hard drive?
Some devices are not recognized properly in either linux or windows when connected to a hub and insist on being connected to the usb port on the box.
Thanks kilgoretrout, your tip was very helpful. I also found that I had to reformat the usb hard drive as my system kept identifying the filesystem as ntfs rather than vfat ! But reformatting was a snap (# mkdosfs -vF 32 -I /dev/sda1).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.