h2-1 wrote:To see what happens internally in Linux with your drive, do this. Plug in drive. Wait 30 seconds.
Run this command: dmesg | tail -n 30
This shows the last 30 lines of dmesg, which will show what the system saw when you plugged it in.
This has been really useful. When I read this last night, I was in the middle of an experiment to see if Mint Debian in virtualbox would recognize the hard drive. I was able to load the LMDE live dvd and use GParted to format the drive using a GPT partition table. I decided to format three partitions with 50GB unallocated at the beginning in case I want to play with making it bootable, First partition of 160GB with NTFS file system, 350GB ext4 filesystem and about 2.25TB. So far everything works swimmingly inside the LMDE virtualbox. Since I formatted the drive, Disk Utility does not pick up the drive but lsusb still does. Since virtualbox's ability to see the hard drive seems to fail at some points, I haven't tested Windows ability to see the new format yet. I've been using
http://www.rodsbooks.com/gdisk/ as a guide to GPT partitions.
As a test to see if the success was due to virtualbox or to the operating system, I also loaded the Linux Mint 11 live dvd to the same virtual machine and it did NOT recognize the hard hard drive after the partition. Interestingly enough during this experiment, I also ran into an issue where I had to turn on virtualization in my bios to use 64bit guests. I was able to boot once into my host Linux Mint 11. After a reboot, I was able to use my wireless keyboard and mouse (which uses a usb dongle) in the bios but was not able to use them at the login screen. After checking the batteries, I turned off virtualization in the bios and used 32bit guests in the virtualbox. I suspect this is more evidence that there is something in Linux Mint 11 that interferes with the way I'm trying to use usb devices.
So it looks like my path forward is to switch to LMDE on my host system. Would you say we've gotten to the point where I should file a bug or feature request regarding Linux Mint 11? Is there anyway to get Linux Mint 11, e.g. recompile the existing kernel to add additional features to recognize the drive?
Google your drive plus the word linux and make sure it doesn't have some type of blocking firmware that works only in windows.
I think I'm safe. I checked Google. The fact that it worked with LMDE in virtualbox is a good sign. I wouldn't be surprised if there's a difference I'm not aware of between the virtualbox machine and my actual machine. I have a way to use it right now with virtualbox and file sharing within virtualbox, but that is such an ugly work around I'd like to come up with something simpler.
Code: Select all
inxi -o
Unmounted: ID: /dev/sde1 size: 0.26G label: N/A uuid: 4781-202F fs: FAT (16 bit)
-o will only show data if the device has a partition.
This is assuming the device is a standard type external drive, there are some that have some weird type of firmware that Linux can't deal with, but I don't remember the details there.
I wouldn't put it past the realm of possibility that I will run into that problem. I've been delightfully surprised with the ease that I've been able to use hardware that is not officially supported for linux.
Below are the dmesg logs that I captured in Linux Mint 11 after I formatted the drive.
LINUX MINT 11 HOST - DRIVE PLUGGED IN POST BOOT
Code: Select all
[ 128.160119] usb 1-1: new high speed USB device using ehci_hcd and address 4
[ 128.384431] scsi6 : uas
[ 128.384848] usbcore: registered new interface driver uas
[ 128.409540] Initializing USB Mass Storage driver...
[ 128.409657] usbcore: registered new interface driver usb-storage
[ 128.409662] USB Mass Storage support registered.
LINUX MINT 11 HOST - AFTER USING DRIVE IN VIRTUALBOX (PREVIOUS LOG INCLUDED TO SHOW NOTHING ELSE WAS HAPPENING ON SYSTEM)
Code: Select all
[ 128.160119] usb 1-1: new high speed USB device using ehci_hcd and address 4
[ 128.384431] scsi6 : uas
[ 128.384848] usbcore: registered new interface driver uas
[ 128.409540] Initializing USB Mass Storage driver...
[ 128.409657] usbcore: registered new interface driver usb-storage
[ 128.409662] USB Mass Storage support registered.
[ 807.616584] warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)
[ 1086.720104] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 1086.872169] scsi7 : uas
[ 1086.874294] scsi 7:0:0:0: Direct-Access Hitachi Hitachi HDS72303 A580 PQ: 0 ANSI: 4
[ 1093.060090] scsi 7:0:0:0: uas_eh_abort_handler tag 0
[ 1093.060106] scsi 7:0:0:0: uas_eh_device_reset_handler tag 0
[ 1093.060114] scsi 7:0:0:0: uas_eh_target_reset_handler tag 0
[ 1093.060121] scsi 7:0:0:0: uas_eh_bus_reset_handler tag 0
[ 1093.180075] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 1093.331768] scsi 7:0:0:0: Device offlined - not ready after error recovery
[ 1093.331850] scsi 7:0:0:0: rejecting I/O to offline device
[ 1093.331874] scsi 7:0:0:0: rejecting I/O to offline device
[ 1093.333411] scsi 7:0:0:1: Enclosure Hitachi SES A580 PQ: 0 ANSI: 4
[ 1093.334013] scsi 7:0:0:2: uas_eh_device_reset_handler tag -1
[ 1093.334022] scsi 7:0:0:2: uas_eh_target_reset_handler tag -1
[ 1093.334029] scsi 7:0:0:2: uas_eh_bus_reset_handler tag -1
[ 1093.460100] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 1093.611639] scsi 7:0:0:2: Device offlined - not ready after error recovery
[ 1093.612297] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 1093.612618] scsi 7:0:0:1: Attached scsi generic sg3 type 13
[ 1124.080075] sd 7:0:0:0: uas_eh_abort_handler tag 0
[ 1124.080093] sd 7:0:0:0: uas_eh_device_reset_handler tag 0
[ 1124.080102] sd 7:0:0:0: uas_eh_target_reset_handler tag 0
[ 1124.080109] sd 7:0:0:0: uas_eh_bus_reset_handler tag 0
[ 1124.200116] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 1124.351668] sd 7:0:0:0: Device offlined - not ready after error recovery
[ 1124.351734] sd 7:0:0:0: rejecting I/O to offline device
[ 1124.351745] sd 7:0:0:0: rejecting I/O to offline device
[ 1124.351750] sd 7:0:0:0: rejecting I/O to offline device
[ 1124.351753] sd 7:0:0:0: [sdb] READ CAPACITY failed
[ 1124.351755] sd 7:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 1124.351759] sd 7:0:0:0: [sdb] Sense not available.
[ 1124.351764] sd 7:0:0:0: rejecting I/O to offline device
[ 1124.351767] sd 7:0:0:0: [sdb] Write Protect is off
[ 1124.351770] sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1124.351773] sd 7:0:0:0: rejecting I/O to offline device
[ 1124.351776] sd 7:0:0:0: [sdb] Asking for cache data failed
[ 1124.351778] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 1124.351942] sd 7:0:0:0: [sdb] Attached SCSI disk
[ 1124.378265] ses 7:0:0:1: Attached Enclosure device
[ 1425.120639] usb 1-1: usbfs: usb_submit_urb returned -2
[ 1425.120645] usb 1-1: usbfs: usb_submit_urb returned -2
[ 1425.120648] usb 1-1: usbfs: usb_submit_urb returned -2
[ 1425.120654] usb 1-1: usbfs: usb_submit_urb returned -2
[ 1425.120657] usb 1-1: usbfs: usb_submit_urb returned -2
[ 1425.120659] usb 1-1: usbfs: usb_submit_urb returned -2
[ 1931.540079] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 1946.660105] usb 1-1: device descriptor read/64, error -110
[ 1961.890101] usb 1-1: device descriptor read/64, error -110
[ 1962.120154] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 1977.240142] usb 1-1: device descriptor read/64, error -110
[ 1992.470155] usb 1-1: device descriptor read/64, error -110
[ 1992.700164] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 1998.120082] usb 1-1: device not accepting address 4, error -71
[ 1998.240099] usb 1-1: reset high speed USB device using ehci_hcd and address 4
[ 2003.660066] usb 1-1: device not accepting address 4, error -71
[ 2003.660229] usb 1-1: USB disconnect, address 4
[ 2003.780155] usb 1-1: new high speed USB device using ehci_hcd and address 5
[ 2018.900173] usb 1-1: device descriptor read/64, error -110
[ 2034.130111] usb 1-1: device descriptor read/64, error -110
[ 2034.360103] usb 1-1: new high speed USB device using ehci_hcd and address 6
[ 2049.480088] usb 1-1: device descriptor read/64, error -110
[ 2064.710107] usb 1-1: device descriptor read/64, error -110
[ 2064.940085] usb 1-1: new high speed USB device using ehci_hcd and address 7
[ 2070.360075] usb 1-1: device not accepting address 7, error -71
[ 2070.480088] usb 1-1: new high speed USB device using ehci_hcd and address 8
[ 2075.900062] usb 1-1: device not accepting address 8, error -71
[ 2075.900094] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 2076.440092] usb 2-1: new full speed USB device using ohci_hcd and address 3
[ 2091.620103] usb 2-1: device descriptor read/64, error -110
LINUX MINT DEBIAN 32BIT LIVE DVD VIRTUALBOX (NO GUEST ADDITIONS) AUG 12 2011 6:12PM
Code: Select all
[ 43.308072] eth1: no IPv6 routers present
[ 96.460473] usb 1-1: new high speed USB device using ehci_hcd and address 2
[ 96.729616] usb 1-1: New USB device found, idVendor=4971, idProduct=1013
[ 96.729629] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 96.729638] usb 1-1: Product: Touro Desk Pro
[ 96.729644] usb 1-1: Manufacturer: Hitachi GST
[ 96.729649] usb 1-1: SerialNumber: 03100110610000001227
[ 96.736800] usb 1-1: configuration #1 chosen from 1 choice
[ 96.935582] Initializing USB Mass Storage driver...
[ 96.945734] scsi3 : SCSI emulation for USB Mass Storage devices
[ 96.949969] usbcore: registered new interface driver usb-storage
[ 96.952816] USB Mass Storage support registered.
[ 96.966750] usb-storage: device found at 2
[ 96.966758] usb-storage: waiting for device to settle before scanning
[ 101.987529] usb-storage: device scan complete
[ 102.026690] scsi 3:0:0:0: Direct-Access Hitachi Hitachi HDS72303 A580 PQ: 0 ANSI: 4
[ 102.050244] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 102.083367] sd 3:0:0:0: [sdb] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 102.098130] sd 3:0:0:0: [sdb] Write Protect is off
[ 102.098165] sd 3:0:0:0: [sdb] Mode Sense: 4b 00 10 08
[ 102.098189] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 102.118222] sd 3:0:0:0: [sdb] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 102.142000] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 102.142045] sdb: sdb1 sdb2 sdb3
[ 102.317972] sd 3:0:0:0: [sdb] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 102.331798] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 102.331811] sd 3:0:0:0: [sdb] Attached SCSI disk
[ 106.241162] EXT4-fs (sdb2): mounted filesystem with ordered data mode
[ 127.111711] EXT4-fs (sdb3): mounted filesystem with ordered data mode
[ 133.636412] gvfsd-metadata[2369]: segfault at 8 ip 0804d2da sp bff38fc0 error 4 in gvfsd-metadata[8048000+c000]
LINUX MINT 11 32 BIT LIVE DVD VIRTUALBOX (NO GUEST ADDITIIONS) AUG 12, 2011 8:15PM
Code: Select all
[ 168.161245] usb 1-1: new high speed USB device using ehci_hcd and address 2
[ 168.665776] scsi3 : uas
[ 168.719452] usbcore: registered new interface driver uas
[ 168.733559] scsi 3:0:0:0: Direct-Access Hitachi Hitachi HDS72303 A580 PQ: 0 ANSI: 4
[ 168.817954] Initializing USB Mass Storage driver...
[ 168.829326] usbcore: registered new interface driver usb-storage
[ 168.829342] USB Mass Storage support registered.
[ 174.832651] scsi 3:0:0:0: uas_eh_abort_handler tag 0
[ 174.832697] scsi 3:0:0:0: uas_eh_device_reset_handler tag 0
[ 174.832709] scsi 3:0:0:0: uas_eh_target_reset_handler tag 0
[ 174.832719] scsi 3:0:0:0: uas_eh_bus_reset_handler tag 0
[ 174.944539] usb 1-1: reset high speed USB device using ehci_hcd and address 2
[ 175.163132] scsi 3:0:0:0: Device offlined - not ready after error recovery
[ 175.163991] scsi 3:0:0:0: rejecting I/O to offline device
[ 175.172602] scsi 3:0:0:0: rejecting I/O to offline device
[ 195.872672] scsi 3:0:0:1: uas_eh_abort_handler tag -1
[ 195.872706] scsi 3:0:0:1: uas_eh_device_reset_handler tag -1
[ 195.872718] scsi 3:0:0:1: uas_eh_target_reset_handler tag -1
[ 195.872745] scsi 3:0:0:1: uas_eh_bus_reset_handler tag -1
[ 195.984286] usb 1-1: reset high speed USB device using ehci_hcd and address 2
[ 211.100737] usb 1-1: device descriptor read/64, error -110
[ 226.321101] usb 1-1: device descriptor read/64, error -110
[ 226.536810] usb 1-1: reset high speed USB device using ehci_hcd and address 2
[ 241.648900] usb 1-1: device descriptor read/64, error -110