[opensuse] How to mount USB mass storage device
I'm running S11 without kde or gnome. When I insert a dos-formatted flash drive in my 14-in-one reader, there is no indication that the device is now accessible or what the device name is that I would use in a mount command. I examined dmesg but found nothing that seemed helpful. How do I determine the name of the newly plugged-in usb device? Thanks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dave Feustel wrote:
I'm running S11 without kde or gnome. When I insert a dos-formatted flash drive in my 14-in-one reader, there is no indication that the device is now accessible or what the device name is that I would use in a mount command.
I examined dmesg but found nothing that seemed helpful.
How do I determine the name of the newly plugged-in usb device?
Thanks.
fdisk -l to get the device name or sudo hwinfo --usb will give useful info if fdisk fails and then mount to see if its mounted or to mount it. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 12 Mar 2009 17:52:38 +0100, Dave Feustel wrote:
I'm running S11 without kde or gnome. When I insert a dos-formatted flash drive in my 14-in-one reader, there is no indication that the device is now accessible or what the device name is that I would use in a mount command.
I examined dmesg but found nothing that seemed helpful.
How do I determine the name of the newly plugged-in usb device?
Thanks.
lsusb and lsscsi are the commands I typically use to find this information out. Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave Feustel wrote:
I'm running S11
Is that SLES 11? It has not been released yet. And there is no openSUSE 11. Please clarify.
without kde or gnome. When I insert a dos-formatted flash drive in my 14-in-one reader, there is no indication that the device is now accessible or what the device name is that I would use in a mount command.
I examined dmesg but found nothing that seemed helpful.
How do I determine the name of the newly plugged-in usb device?
Well, if there is no desktop, they are not automounted. However, if they have a label, you can use this command to find out: ls -l /dev/disk/by-label/ | grep -i sd If you look at /var/log/messages, you can see something like this when you connect a USB disk: Mar 8 18:07:07 nimrodel kernel: usb 1-4: new high speed USB device using ehci_hcd and address 11 kernel: usb 1-4: configuration #1 chosen from 1 choice kernel: scsi9 : SCSI emulation for USB Mass Storage devices kernel: usb 1-4: New USB device found, idVendor=13fd, idProduct=1240 kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 kernel: usb 1-4: Product: External kernel: usb 1-4: Manufacturer: Generic kernel: usb 1-4: SerialNumber: 53********** kernel: usb-storage: device found at 11 kernel: usb-storage: waiting for device to settle before scanning kernel: scsi 9:0:0:0: Direct-Access Generic External 2.02 PQ: 0 ANSI: 4 kernel: sd 9:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB) kernel: sd 9:0:0:0: [sdb] Write Protect is off kernel: sd 9:0:0:0: [sdb] Mode Sense: 21 00 00 00 kernel: sd 9:0:0:0: [sdb] Assuming drive cache: write through kernel: sd 9:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB) kernel: sd 9:0:0:0: [sdb] Write Protect is off kernel: sd 9:0:0:0: [sdb] Mode Sense: 21 00 00 00 kernel: sd 9:0:0:0: [sdb] Assuming drive cache: write through kernel: sdb: sdb1 kernel: sd 9:0:0:0: [sdb] Attached SCSI disk kernel: sd 9:0:0:0: Attached scsi generic sg1 type 0 kernel: usb-storage: device scan complete You can search for "usb-storage:" and then look around. Maybe someone with knowledge of how hal and udev works, could write a script or daemon that reports somewhere when a new device has been plugged in and what partitions it has. - -- Cheers / Saludos, Carlos E. R. (from 11.1-ex-factory) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkm5nd8ACgkQU92UU+smfQXcmACfbCrVkGUb0s1mJ8Su6z4EXC2r k1EAnijsarunJtkXMLMmWl4Jicmzwrde =QVV5 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Mar 13, 2009 at 12:42:24AM +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dave Feustel wrote:
I'm running S11
Is that SLES 11? It has not been released yet. And there is no openSUSE 11. Please clarify.
I'm running the Novell release of 64-bit Suse 11 updated through this morning..
without kde or gnome. When I insert a dos-formatted flash drive in my 14-in-one reader, there is no indication that the device is now accessible or what the device name is that I would use in a mount command.
I examined dmesg but found nothing that seemed helpful.
How do I determine the name of the newly plugged-in usb device?
Well, if there is no desktop, they are not automounted. However, if they have a label, you can use this command to find out:
ls -l /dev/disk/by-label/ | grep -i sd
If you look at /var/log/messages, you can see something like this when you connect a USB disk:
Mar 8 18:07:07 nimrodel kernel: usb 1-4: new high speed USB device using ehci_hcd and address 11 kernel: usb 1-4: configuration #1 chosen from 1 choice kernel: scsi9 : SCSI emulation for USB Mass Storage devices kernel: usb 1-4: New USB device found, idVendor=13fd, idProduct=1240 kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 kernel: usb 1-4: Product: External kernel: usb 1-4: Manufacturer: Generic kernel: usb 1-4: SerialNumber: 53********** kernel: usb-storage: device found at 11 kernel: usb-storage: waiting for device to settle before scanning kernel: scsi 9:0:0:0: Direct-Access Generic External 2.02 PQ: 0 ANSI: 4 kernel: sd 9:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB) kernel: sd 9:0:0:0: [sdb] Write Protect is off kernel: sd 9:0:0:0: [sdb] Mode Sense: 21 00 00 00 kernel: sd 9:0:0:0: [sdb] Assuming drive cache: write through kernel: sd 9:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB) kernel: sd 9:0:0:0: [sdb] Write Protect is off kernel: sd 9:0:0:0: [sdb] Mode Sense: 21 00 00 00 kernel: sd 9:0:0:0: [sdb] Assuming drive cache: write through kernel: sdb: sdb1 kernel: sd 9:0:0:0: [sdb] Attached SCSI disk kernel: sd 9:0:0:0: Attached scsi generic sg1 type 0 kernel: usb-storage: device scan complete
I got most of the above by dmesg.
You can search for "usb-storage:" and then look around.
Maybe someone with knowledge of how hal and udev works, could write a script or daemon that reports somewhere when a new device has been plugged in and what partitions it has.
That would be handy. My problem turns out to be that the flash drive reports a read error during insertion and is not mounted. Fedora 9 mounts the flash with no problem. I used a different flash with Suse and everything worked ok. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave Feustel wrote:
On Fri, Mar 13, 2009 at 12:42:24AM +0100, Carlos E. R. wrote:
I'm running S11 Is that SLES 11? It has not been released yet. And there is no openSUSE 11. Please clarify.
I'm running the Novell release of 64-bit Suse 11 updated through this morning..
Ok, the SLES, the enterprise version. But version 11 has not been released, so you must be using a beta. ...
My problem turns out to be that the flash drive reports a read error during insertion and is not mounted. Fedora 9 mounts the flash with no problem. I used a different flash with Suse and everything worked ok.
Well, maybe that device is bad. But you should report that problem to the adequate channel for the SLES - this list is dedicated to openSUSE, not the SLES/SLED version - so I don't know where you can report that problem. You should have a maintenance contract and a contact address, ask them. - -- Cheers / Saludos, Carlos E. R. (from 11.1-ex-factory) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkm5tn0ACgkQU92UU+smfQU8AwCcC/5DmngDZIv1ioIlWHO+J3KX lCwAn0vuGLNXf4ZxZvLQgPZuSHhDMxX2 =73MK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
Dave Feustel
-
Dave Plater
-
Jim Henderson