public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tarkan Erimer <tarkan.erimer@turknet.net.tr>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
	Matthew Wilcox <matthew@wil.cx>
Subject: Re: [BUG] Linux-2.6.31-rc1 Fails To Recognize Some USB Disks
Date: Mon, 29 Jun 2009 11:17:48 +0300	[thread overview]
Message-ID: <4A4878AC.3050208@turknet.net.tr> (raw)
In-Reply-To: <yq1zlbrn2rj.fsf@sermon.lab.mkp.net>

[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]

On 06/29/2009 06:21 AM, Martin K. Petersen wrote:
> Can you please mail us the output of...
>
> # sg_inq /dev/sdb
> # sg_readcap /dev/sdb
> # sg_readcap -l /dev/sdb
>
> ... for that WD drive?
>
> You may have to install the sg3_utils package.
>
>    

Here are the outputs of sg_* commands. But, I faced a strange behavior 
when I was trying these sg_* commands. Initially, it didn't recognize my 
usb WD disk as I mentioned in my BUG report. Then, after 8 mins, it 
recognized (you can see it on attached "usb.log" file.) it! so, I was 
able to get the outputs of sg_* commands ( Because; when it didn't 
recognize it, there was no "sdb" file under /dev ) and now it works fine!

root@tarkane:~# sg_inq /dev/sdb
standard INQUIRY:
   PQual=0  Device_type=0  RMB=0  version=0x00  [no conformance claimed]
   [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=0
   SCCS=0  ACC=0  TGPS=0  3PC=0  Protect=0  BQue=0
   EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
   [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=0
   [SPI: Clocking=0x0  QAS=0  IUS=0]
     length=74 (0x4a)   Peripheral device type: disk
  Vendor identification: WD
  Product identification: 2500JB External
  Product revision level: 0108

root@tarkane:~# sg_readcap /dev/sdb
Read Capacity results:
    Last logical block address=488397167 (0x1d1c596f), Number of 
blocks=488397168
    Logical block length=512 bytes
Hence:
    Device size: 250059350016 bytes, 238475.2 MiB, 250.06 GB


root@tarkane:~# sg_readcap -l /dev/sdb
READ CAPACITY (16) failed [res=-1], try with '-v'


Tarkan


[-- Attachment #2: usb.log --]
[-- Type: text/plain, Size: 3935 bytes --]

Jun 29 10:18:07 tarkane kernel: [160812.883025] usb 5-8: new high speed USB device using ehci_hcd and address 7                                                                                                           
Jun 29 10:18:07 tarkane kernel: [160813.005316] usb 5-8: configuration #1 chosen from 1 choice               
Jun 29 10:18:07 tarkane kernel: [160813.005704] scsi7 : SCSI emulation for USB Mass Storage devices          
Jun 29 10:18:12 tarkane kernel: [160818.046665] scsi 7:0:0:0: Direct-Access     WD       2500JB External  0108 PQ: 0 ANSI: 0                                                                                              
Jun 29 10:18:12 tarkane kernel: [160818.049086] sd 7:0:0:0: Attached scsi generic sg2 type 0                 
Jun 29 10:18:12 tarkane kernel: [160818.050136] sd 7:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)                                                                                                     
Jun 29 10:18:43 tarkane kernel: [160848.805027] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:19:14 tarkane kernel: [160879.805023] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:19:45 tarkane kernel: [160910.805027] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:20:16 tarkane kernel: [160941.805024] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:20:47 tarkane kernel: [160972.809028] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:21:18 tarkane kernel: [161003.809029] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:21:49 tarkane kernel: [161034.809024] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:22:20 tarkane kernel: [161065.810022] usb 5-8: reset high speed USB device using ehci_hcd and address 7                                                                                                         
Jun 29 10:22:20 tarkane kernel: [161065.932591] sd 7:0:0:0: [sdb] Write Protect is off                       
Jun 29 10:22:51 tarkane kernel: [161096.808032] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:23:22 tarkane kernel: [161127.809025] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:23:53 tarkane kernel: [161158.808037] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:24:24 tarkane kernel: [161189.809025] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:24:55 tarkane kernel: [161220.809056] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:25:26 tarkane kernel: [161251.809043] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:25:57 tarkane kernel: [161282.809033] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:26:28 tarkane kernel: [161313.809025] usb 5-8: reset high speed USB device using ehci_hcd and address 7
Jun 29 10:26:28 tarkane kernel: [161313.930904]  sdb: sdb1
Jun 29 10:26:59 tarkane kernel: [161344.809026] usb 5-8: reset high speed USB device using ehci_hcd and address 7


  reply	other threads:[~2009-06-29  8:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26  7:03 [BUG] Linux-2.6.31-rc1 Fails To Recognize Some USB Disks Tarkan Erimer
2009-06-29  3:21 ` Martin K. Petersen
2009-06-29  8:17   ` Tarkan Erimer [this message]
2009-06-29 14:30     ` Martin K. Petersen
2009-07-15  7:46       ` Tarkan Erimer
2009-07-20  2:25         ` Martin K. Petersen
2009-07-21  8:08           ` Tarkan Erimer
2009-07-24 10:55       ` [BISECTED] " Tarkan Erimer
2009-07-24 11:44         ` Tarkan Erimer
2009-07-24 14:02         ` Martin K. Petersen
2009-07-24 15:17           ` Tarkan Erimer
2009-07-27  1:28             ` Martin K. Petersen
2009-07-27  2:06               ` Matthew Wilcox
2009-07-27  2:43                 ` Martin K. Petersen
2009-07-27  8:27                   ` Boaz Harrosh
2009-07-27 14:29                     ` Martin K. Petersen
2009-07-27 14:50                       ` Matthew Wilcox
2009-07-27 15:10                         ` Martin K. Petersen
2009-07-27 14:51                       ` Boaz Harrosh
2009-07-27 15:19                         ` Martin K. Petersen
2009-07-27 15:40                           ` Boaz Harrosh
2009-07-27 15:47                             ` Boaz Harrosh
2009-07-27 15:55                             ` Martin K. Petersen
2009-07-27  7:31               ` Tarkan Erimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A4878AC.3050208@turknet.net.tr \
    --to=tarkan.erimer@turknet.net.tr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=matthew@wil.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox