[opensuse] Re: Where is the USB hd?
Carlos E. R. wrote:
On Thursday, 2009-10-08 at 23:52 -0400, Bob S wrote:
Have a usb external hard drive which I've been using to back up stuff in my various distros. Decided I wanted to back up my entire 11.0 os. To get everything I needed to be "outside" the distro, so I popped in the DVD and booted to the rescue system.
I can't find the external hard drive. Does the rescue system not mount/recognize/whatever the usb drive?
If you didn't apply a label, then use "by-id", for example, but it is much harder to identify. of by-path.
Other commands: for example, "fdisk -l".
Or, "dmesg | tail", after you plugged in the USB disk and waited for 10 secs. It gives an output like puma:~/log # dmesg |tail usb 8-2: reset high speed USB device using ehci_hcd and address 11 usb 8-2: reset high speed USB device using ehci_hcd and address 11 usb 8-2: reset high speed USB device using ehci_hcd and address 11 sd 14:0:0:0: [sdc] Write Protect is off sd 14:0:0:0: [sdc] Mode Sense: 00 00 00 00 sd 14:0:0:0: [sdc] Assuming drive cache: write through sdc: sdc1 sd 14:0:0:0: [sdc] Attached SCSI removable disk sd 14:0:0:0: Attached scsi generic sg3 type 0 usb-storage: device scan complete That means that one can "mount /dev/sdc1 /mnt" Cheers, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 10 October 2009 10:29:46 am Adam Tauno Williams wrote:
Or, "dmesg | tail", after you plugged in the USB disk and waited
Yuck. Use the correct tools.
lsusb -t
OK, cat /proc/partitions (after you plug it in -- of course) Then, look at the /dev/........ for the usb device that wasn't there a minute ago, and as root: mkdir /mnt/usb && mount /dev/....... /mnt/usb -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-10-10 at 19:54 -0500, David C. Rankin wrote:
OK,
cat /proc/partitions
(after you plug it in -- of course)
cat /proc/partitions | grep sd or: nimrodel:~ # cat /proc/partitions | grep -e "sd\?" major minor #blocks name 8 0 1993728 sda 8 1 1993608 sda1 nimrodel:~ # Now, I wonder why the header line got through the grep... useful, but I don't know why :-? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkrRvaAACgkQtTMYHG2NR9UhCQCbBTdAH385c89Vmv+J/4Fe+RnJ gQQAnjartfEi0i161E/5nI0StZOjTlKn =ZT5b -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
nimrodel:~ # cat /proc/partitions | grep -e "sd\?" major minor #blocks name 8 0 1993728 sda 8 1 1993608 sda1 nimrodel:~ # Now, I wonder why the header line got through the grep... useful, but I don't know why :-?
The question mark matches *zero* or one of the *preceding* element. Hence the "s" in "blocks" matches the provided regular expression: "s" followed by *zero* or one "d". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-10-11 at 08:38 -0400, Adam Tauno Williams wrote:
nimrodel:~ # cat /proc/partitions | grep -e "sd\?" major minor #blocks name 8 0 1993728 sda 8 1 1993608 sda1 nimrodel:~ # Now, I wonder why the header line got through the grep... useful, but I don't know why :-?
The question mark matches *zero* or one of the *preceding* element.
Hence the "s" in "blocks" matches the provided regular expression: "s" followed by *zero* or one "d".
Ah! I see. I need to use a dot instead: nimrodel:~ # cat /proc/partitions | grep -e "sd." 8 0 1993728 sda 8 1 1993608 sda1 or, perhaps, this: nimrodel:~ # cat /proc/partitions | grep -e "sd.\|#blocks" major minor #blocks name 8 0 1993728 sda 8 1 1993608 sda1 - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkrR22MACgkQtTMYHG2NR9VZLQCeOS6C0Mnw62mz5nxU9CN7m3p8 My4An0O6XE83UZXuK9waw0ZarFziv9vt =A+1J -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-10-10 at 11:29 -0400, Adam Tauno Williams wrote:
Or, "dmesg | tail", after you plugged in the USB disk and waited
Yuck. Use the correct tools.
lsusb -t
I don't see there anything helpful for mounting a disk: nimrodel:~ # lsusb -t Bus# 5 `-Dev# 1 Vendor 0x1d6b Product 0x0001 Bus# 4 `-Dev# 1 Vendor 0x1d6b Product 0x0001 Bus# 3 `-Dev# 1 Vendor 0x1d6b Product 0x0001 Bus# 2 `-Dev# 1 Vendor 0x1d6b Product 0x0002 |-Dev# 6 Vendor 0x05e3 Product 0x0608 `-Dev# 24 Vendor 0x0951 Product 0x1603 Bus# 1 `-Dev# 1 Vendor 0x1d6b Product 0x0001 `-Dev# 53 Vendor 0x0665 Product 0x5161 No mention there of my just plugged /dev/sda. But "dmesg | tail" does show it. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkrRvAMACgkQtTMYHG2NR9UjIQCeOdjaw5im58sIjBuhiDDouqpC YnUAn1b869kVD4uyYpXmeIic7AmOlNvl =Omz5 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Adam Tauno Williams
-
Carlos E. R.
-
David C. Rankin
-
Joachim Schrod