LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mounting external hd under gentoo (fails) - works on debian - needs sr0 device (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-external-hd-under-gentoo-fails-works-on-debian-needs-sr0-device-869547/)

Dweeb2010 03-18-2011 11:17 PM

mounting external hd under gentoo (fails) - works on debian - needs sr0 device
 
Hi. I recently picked up an external HD which I partitioned, formatted, and can mount just fine under Debian. When I plug in the device, I can see an appropriate sda1 entry for my partition in /dev.

However, when I attempt to use the device in Gentoo (the system I bought the drive to back up) it seems to not be recognized. I still get some new entries under /dev when I plug it in, but no specific partition number is recognized.

On Debian (where it works) here is the output of dmesg after plugging in the device:
Code:

[ 9179.847274] usb-storage: device found at 8
[ 9179.847277] usb-storage: waiting for device to settle before scanning
[ 9179.848514] usb 5-5: New USB device found, idVendor=059b, idProduct=0070
[ 9179.848520] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9179.848523] usb 5-5: Product: eGo USB
[ 9179.848526] usb 5-5: Manufacturer: Iomega
[ 9179.848528] usb 5-5: SerialNumber: 090000000000D517
[ 9184.844890] usb-storage: device scan complete
[ 9184.855388] scsi 7:0:0:0: Direct-Access    OEM      Ext Hard Disk    0000 PQ: 0 ANSI: 5
[ 9184.874249] scsi 7:0:0:1: CD-ROM            Virtual  CDROM                PQ: 0 ANSI: 0
[ 9184.912724] sd 7:0:0:0: [sda] 975339568 512-byte hardware sectors (499374 MB)
[ 9184.937024] sd 7:0:0:0: [sda] Write Protect is off
[ 9184.937031] sd 7:0:0:0: [sda] Mode Sense: 10 00 00 00
[ 9184.937035] sd 7:0:0:0: [sda] Assuming drive cache: write through
[ 9185.240710] sd 7:0:0:0: [sda] 975339568 512-byte hardware sectors (499374 MB)
[ 9185.256012] sd 7:0:0:0: [sda] Write Protect is off
[ 9185.256012] sd 7:0:0:0: [sda] Mode Sense: 10 00 00 00
[ 9185.256012] sd 7:0:0:0: [sda] Assuming drive cache: write through
[ 9185.256012]  sda: sda1
[ 9185.701237] sd 7:0:0:0: [sda] Attached SCSI disk
[ 9185.701305] sd 7:0:0:0: Attached scsi generic sg0 type 0
[ 9185.765424] sr0: scsi-1 drive
[ 9185.765579] sr 7:0:0:1: Attached scsi CD-ROM sr0
[ 9185.765649] sr 7:0:0:1: Attached scsi generic sg1 type 5

Here is the tail output when I run the command on the Gentoo system:
Code:

sd 5:0:0:0: [sde] READ CAPACITY failed
sd 5:0:0:0: [sde] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 5:0:0:0: [sde] Sense Key : Not Ready [current]
sd 5:0:0:0: [sde] Add. Sense: Logical unit not ready, cause not reportable
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE (6 bytes)
usb-storage:  1a 00 3f 00 c0 00
usb-storage: Bulk Command S 0x43425355 T 0x22c L 192 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 192 bytes, 1 entries
usb-storage: Status code -32; transferred 0/192
usb-storage: clearing endpoint halt for pipe 0xc0008680
usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=81 len=0
usb-storage: usb_stor_clear_halt: result = 0
usb-storage: Bulk data transfer result 0x2
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x22c R 192 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk Command S 0x43425355 T 0x22d L 96 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 96 bytes, 1 entries
usb-storage: Status code 0; transferred 96/96
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x22d R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x2, ASC: 0x4, ASCQ: 0x0
usb-storage: Not Ready: Logical unit not ready, cause not reportable
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
sd 5:0:0:0: [sde] Test WP failed, assume Write Enabled
sd 5:0:0:0: [sde] Assuming drive cache: write through
sd 5:0:0:0: [sde] Attached SCSI disk

I have to admit that I'm kind of baffled by what is going on here. It would seem that in Debian the drive is initially treated as a cdrom device and then my partition is seen, but the same is not occurring in Gentoo. Does anyone know how I can make the sr0 device work in Gentoo? Am I missing a module? I could really use some help. Thanks.

EDDY1 03-18-2011 11:42 PM

You think it yu might be missing usbmount(for mass usb storage) &/or pmount?
http://www.linuxquestions.org/questi...device-387461/

Dweeb2010 03-19-2011 08:19 AM

Hi EDDY1. Thanks for the response. I don't see how usbmount or pmount would help me in this situation, because I am attempting to manually mount the device as root.

I think I know what my problem is, but I don't know how to fix it. If I boot up Windows (bleh) the drive appears as a 500 GB partition and an additional CD drive, containing a preloaded encryption exe that came on the drive.

On my Debian install, it would seem to recognize this so called "CD drive" and thus the mention of SCSI device sr0 in the dmesg. I can then mount /dev/sda1 (ext3 partition) and work with the drive normally.

On the Gentoo system, it simply does not seem to recognize the "SCSI cd" portion of the hard drive (which I think contains something important in mapping the rest of the drive). After plugging it into that computer, I get several new device files, sda, sdb, sdc, sg0, sg1, etc, but I cannot mount any of them at all. The kernel on the Gentoo computer is actually newer than the one on the Debian sys, and I installed a generic kernel, so I'm kind of surprised it's not working. However, due to the DIY nature of Gentoo, it's possible that there is something I just haven't set up or configured - I just don't know what! But I don't need the drive mounted automatically, I just need it to show my ext3 partition under /dev so that I can mount it manually - but it would seem without the "SCSI cd" being identified, it's not working.

Dweeb2010 03-24-2011 12:13 PM

It turns out that the USB port on the system in question was just not working, or maybe not providing enough power. After getting the drive to work on yet another linux install, I just gave up and figured it was the hardware. The only advice I can really offer for this type of situation is to try your malfunctioning hardware on multiple systems before panicking! Marking solved. Thanks.


All times are GMT -5. The time now is 12:44 AM.