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.
I really really hope I'm missing something very easy to fix. Just plugged a LaCie 250 GB external USB drive into a long-running Mandrake 10.0 machine - and nothing happens, nothing except for
Code:
usb 1-1: new full speed USB device using address 2
No "SCSI emulation for USB mass storage device" as I have seen it dozens of times googling this problem. Consequently, I have no device to mount in /dev. I know it is feasible for linux since knoppix mounts this drive right off the bat. Just this Mandrake 10.0 doesn't .. am I missing the "USB mass storage driver"? Seems nobody else is missing it since nobody seems to have this problem.
My kernel is 2.6.3-7mdksecure.
And should I be worried that lspcidrake gives me
Code:
via-agp : VIA Technologies|VT82C691 [Apollo PRO] [BRIDGE_HOST]
unknown : VIA Technologies|VT82C598 [Apollo MVP3 AGP] [BRIDGE_PCI]
unknown : VIA Technologies|VT82C686 [Apollo Super] [BRIDGE_ISA]
unknown : VIA Technologies|VT82C586 IDE [Apollo] [STORAGE_IDE]
usb-uhci : VIA Technologies|VT82C586B USB [SERIAL_USB]
usb-uhci : VIA Technologies|VT82C586B USB [SERIAL_USB]
unknown : VIA Technologies|VT82C686 [Apollo Super ACPI] [BRIDGE_HOST]
es1371 : Creative Labs|Sound Blaster AudioPCI64V/AudioPCI128 [MULTIMEDIA_AUDIO]
8139too : Realtek|RTL-8139 [NETWORK_ETHERNET]
8139too : Realtek|RTL-8139 [NETWORK_ETHERNET]
Card:NVIDIA GeForce2 DDR (generic): nVidia Corporation|NV11 Geforce2 MX/MX 400 [DISPLAY_VGA]
unknown : Linux 2.6.3-7mdksecure uhci_hcd|UHCI Host Controller [Hub]
unknown : Linux 2.6.3-7mdksecure uhci_hcd|UHCI Host Controller [Hub]
unknown : LaCie|LaCie HardDrive USB [Mass Storage|SCSI|Bulk (Zip)]
?
lsusb gives
Code:
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 059f:0641 LaCie, Ltd
Bus 001 Device 001: ID 0000:0000
and the corresponding entry in /proc/bus/usb/devices is
Did you check to see if the appropriate module is loaded with "lsmod"?
Have you tried the "mount" command alone to see what devices are mounted? Are you relying on an automount daemon that may not recognize your USB drive, or that may not be activated? I am a Fedora 5 user, but I presume you will have an /etc/fstab file. Take a look at it and see whether or not your device has been added. If not, try editing the file and add the device yourself. I may be wrong, but I believe it is going to be either sda or sdb so you may have to try both.
Create a "/mnt/usbdrive" or "/media/usbdrive" directory depending upon which you have in your distro.
Add lines to your "/etc/fstab" file:
"/dev/sda" /mnt/usbdrive auto defaults 0 0
or,
"/dev/sdb" /mnt/usbdrive auto defaults 0 0
alternatively, you may need to enter:
"/dev/sda1" or "sdb1" instead of "/dev/sda" or "sdb"
Save your "fstab" file making sure there is a carriage return at the end. At root prompt try mounting the drive, "mount /mnt/usbdrive" or "mount /media/usbdrive" whichever is appropriate. You may also try "mount /dev/sda1 or /dev/sdb1"
I have tried to mount sda1, sdb1, sdc1, sdd1, sda, sdb, sdc, sdd, hdc and even everything looking suspicious I could find in /dev/usb. They do exist but "do not contain a valid block device".
@svarmido:
Yes, first reflex was to look at fdisk -l and mount. The drive is certainly not mounted. I have no automount that I am aware of and since the drive is not listed on fdisk -l I assume there's not much to mount yet without a driver anyway. Thank you for the info on fstab, but I assume there's no use adding a line in there if I cannot get it to work manually with the mount command anyway.
If the device is not listed in your /etc/fstab file your mount command will not find any such device. If the drivers are loaded, and it appears they are, I believe editing your /etc/fstab file will do the trick. Nothing you have tried regarding usage of the mount command would work without editing your fstab file...
Also, review your dmesg output again and see if there is any clue as to which device your drive has been assigned...
If the device is not listed in your /etc/fstab file your mount command will not find any such device.
Is that really true?
Code:
mount -t vfat /dev/sda1 /mnt/usbdrive
doesn't work unless there's an fstab entry?
But you see my problem with that fstab entry is that I don't know which device to mount. Since as for your other question, I assure you there is *no other output* in dmesg or /var/log/messages than
Code:
usb 1-1: new full speed USB device using address 3
Really!
From any search in google I can see what should follow connecting the device.
Code:
usb 1-2: new full speed USB device using address 2
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Model: Rev:
Type: Direct-Access ANSI SCSI revision: 02
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0:
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
And if I had anything like that I would know what to mount. From this I also deduct that apparently, in linux, USB drives are mounted with SCSI emulation. Since there is no reference to SCSI in my kernel messages, I assume I don't have the driver that emulates SCSI for USB or it doesn't automatically start when the drive is connected. I firmly believe that is what I actually need the remedy for.
The thing that makes the /dev/sda1 "file" out of the physical USB device. That's what I don't know how to do.
Problem solved .. ungratifyingly though I don't know what exactly I did. What I do know is that I attached keyboard and screen to the linux machine and went into kde, then started one of those system configuration gizmos. And sure enough, a few moments later there was an sda that could be mounted. So I unplugged the peripherals and could mount the drive normally.
And when I plug the drive in now, the "usual"
Code:
SCSI subsystem initialized
Initializing USB Mass Storage driver...
appears in /var/log/messages finally.
The GUI gizmo did something that installed or invoked that driver. Almost feels like windows. *shiver*.
If the device is not listed in your /etc/fstab file your mount command will not find any such device. If the drivers are loaded, and it appears they are, I believe editing your /etc/fstab file will do the trick. Nothing you have tried regarding usage of the mount command would work without editing your fstab file...
This is incorrect information.
Icarus24 -
I'm glad you solved your problem! Great information attached to your posts by the way! I like when people give the info that others need to help them.
Icarus, the modules "usb_storage" and "sd_mod" (maybe "scsi_mod") do not seem to be loaded. Maybe that config program you ran loaded them. Try lsmod now that you've gotten it working, and see if there's a difference. If this is the case, then all you need to do is load them with modprobe next time. The configuration program may not have done anything permanent, so the issue may come up again next time you restart.
Aborted Fetus, despite your curious nickname you are absolutely correct! usb-storage and scsi_mod are in the list now and even though I'm obviously not linux-savvy at all, it makes sense to me that this could easily be what was missing before. When (if ever, this is *nix after all) I reboot, I will keep this in mind.
Scott, I can imagine how it is to be on the receiving end of these queries and I'm happy some of the info was useful. There's another thread around quite the same topic high in the board right now that started differently . About the fstab issue, I believe svarmido is referring to usage of "mount" with just the device or mount point as in "mount /mnt/usbdrive" which, of course, indeed only works with a proper fstab entry. Svarmido: this can actually be overcome by giving the mount command (almost) all the information you would usually give in the fstab file. You could even see fstab as a configuration file for mount if you will.
Icarus. Thanks for acknowledging that what I was saying is not "incorrect". What does your fstab file look like now after using the gui? The beauty of Linux is there are different ways to get things done. If one is comfortable using the "command line", they are usually ahead of most people new to Linux. Most people understand how to "edit" a document or file. By the way, "/lib/modules/kernel-version/modules.dep" list module dependencies between modules... Do the depended upon modules load only once a device becomes active? I don't know. But, I wonder if you had edited your fstab file as I suggested and then successfully mounted your usb device if the "other" modules would have loaded...
actually I had not edited it manually when it started working, the configuration gizmo did it for me. I just edited the options later back from the command line. This is why I cannot tell you whether it would have worked without the fstab entry for sure, but I'm very close to positive that
Code:
mount -t vfat /dev/sda1 /mnt/usbdrive
would have been successful as soon as the proper modules to implement the SCSI emulation were loaded.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.