USB flash device (sda missing)
Hey,
My usb device is no longer correctly mounted. Dmesg is saying the following: Code:
usb 5-1: USB disconnect, address 7 Code:
$ ls /dev/sda* how do I fix this? |
If no such device exists, tru uba or something that makes sence. If you don't find anythig, cd to /dev and ./MAKEDEV sda1 or so.
|
have you plugged a usb device and it doesn't show you anything?
the usb devices like /dev/sda1 are created by hotplugging. Plug something in and then run as root lsusb and see if it's recognized |
What my dmesg is telling me when I plug in a USB stick is the following:
"Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0" Your dmesg is telling you this: "Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0" I guess trying /dev/sg0 (or something of that sort) may be the answer. |
The information from /var/log/messages may be more complete, such as:
Feb 5 22:51:33 delllap kernel: usb-storage: device scan complete Feb 5 22:51:33 delllap kernel: SCSI device sda: 320173056 512-byte hdwr sectors (163929 MB) Feb 5 22:51:33 delllap kernel: sda: assuming drive cache: write through Feb 5 22:51:33 delllap kernel: SCSI device sda: 320173056 512-byte hdwr sectors (163929 MB) Feb 5 22:51:33 delllap kernel: sda: assuming drive cache: write through Feb 5 22:51:33 delllap kernel: sda: sda1 Feb 5 22:51:33 delllap kernel: Attached scsi disk sda at scsi1, channel 0, id 0, lun 0 Feb 5 22:51:36 delllap hal-subfs-mount[1600]: SYMLINKS:: disk/by-id/usb-Maxtor_6_Y160L0_0F1007381A08 disk/by-path/usb-0F1007381A08:0:0:0 Feb 5 22:51:36 delllap hal-subfs-mount[1600]: MOUNT_POINT:: /media/usbdisk Feb 5 22:51:36 delllap hal-subfs-mount[1600]: MOUNTPOINT:: /media/usbdisk Feb 5 22:51:36 delllap hal-subfs-mount[1600]: Collected mount options and Called(0) /bin/mount -t subfs -o fs=floppyfss,sync,procuid,nosuid,nodev,exec,utf8=true /dev/sda1 "/media/usbdisk" Also, check the output of lsmod. I was having the same problem on my desktop, but when I tried "modprobe ehcd-hcd" my usb drive appeared on the desktop. I believe that the uhci or ohci module is used for USB 1.1 while the ehci module is used for USB 2.0 devices. (See /usr/src/linux-<kernel-version>/Documentation/usb/ for documentation on kernel usb devices if you have the kernel-docs package installed.) One last thing to check. I had a usb key drive that wouldn't show up. Manually mounting it, it showed up as empty. Somehow the partition type was changed to hidden fat32. Changing the partition type fixed the problem and my files were back. |
More info according to your posts:
Code:
$ sudo modprobe ehcd-hcd |
Suse 10.0 btw
|
Maybe a silly question, but have you tried reaching the stick as root?
edit: If you have HAL/hotplug/whatever, which you probably are, you may want to try "ls -lR /dev/|grep "hal"" (or grep for the time you are plugging it in). In debian, the device is created by root from group "hal" and at the time you're plugging it in. |
Sorry, I just checked in SUSE 10 and the group you are looking for is probably "disk".
|
Code:
$ ls -lR /dev/| grep "disk" |
How about checking lsmod output? lsscsi? Plugging in the device and running updatedb and locate sda? (Because the fun thing is, according to dmesg, it's putting it somewhere in sda.)
Did you read this: http://www.4p8.com/eric.brasseur/suse9.1_usb_stick.html ? |
Code:
$ lsscsi it seems that it is not combined with a device? |
Did you look into the link/your modules/lsmod?
|
If you are using SuSE, a USB disk will be mounted under /media. It may be mounted as /media/usbdisk or if the partition has a label, that name may be used instead. Or the Manufacturer's name may be used as in /media/SansDisk/. The sg device is a low level scsi device that other devices use. You wouldn't mount that device. You may need to start the hal service. I'm thinking this may be the case because it isn't producing any logs in /var/log/messages. Try "sudo /usr/sbin/rchal --status" If on your computer, the USB port is USB 1.1, then the ehci-hcd module won't be used. Also, make sure that this line exists in your /etc/fstab file: usbfs /proc/bus/usb usbfs noauto 0 0 One last thing to check. Are you talking about a USB drive, or USB keydrive that plugs into the USB port. If you have an SD Flash Memory device, that is a different animal. I don't know if it would be supported, because the devices are proprietory. On my other laptop, I got a SD to USB adapter that can be used to enable mounting a SD disk like a normal key drive. This adapter came with the laptop.
|
All times are GMT -5. The time now is 10:05 PM. |