LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-18-2011, 11:17 PM   #1
Dweeb2010
Member
 
Registered: May 2010
Posts: 33

Rep: Reputation: 1
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.
 
Old 03-18-2011, 11:42 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You think it yu might be missing usbmount(for mass usb storage) &/or pmount?
http://www.linuxquestions.org/questi...device-387461/
 
Old 03-19-2011, 08:19 AM   #3
Dweeb2010
Member
 
Registered: May 2010
Posts: 33

Original Poster
Rep: Reputation: 1
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.
 
Old 03-24-2011, 12:13 PM   #4
Dweeb2010
Member
 
Registered: May 2010
Posts: 33

Original Poster
Rep: Reputation: 1
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does a buffer I/O error on device sr0 mean? SuperDude123 Linux - Newbie 12 08-20-2019 02:27 AM
DNS on local machine works, external it fails temecal Linux - Server 3 12-14-2009 02:55 PM
Second firewire external hdd enclosure fails to appear as a scsi device; iota Linux - Newbie 4 04-05-2007 09:07 PM
Repeat mounting a VFAT device fails iscurrah Linux - Hardware 0 02-05-2005 06:45 AM
Mounting CDRW external device on RH 8.0 chinacat Linux - General 1 10-24-2003 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration