mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Thomas Dodd <ted@cypress.com>
Cc: Rogier Wolff <R.E.Wolff@bitwizard.nl>,
	linux-kernel@vger.kernel.org,
	linux-usb-users@lists.sourceforge.net
Subject: Re: Problems accessing USB Mass Storage
Date: Tue, 17 Sep 2002 15:21:02 -0700	[thread overview]
Message-ID: <20020917152102.A17561@eng2.beaverton.ibm.com> (raw)
In-Reply-To: <3D87A6E3.5090407@cypress.com>; from ted@cypress.com on Tue, Sep 17, 2002 at 05:04:19PM -0500

On Tue, Sep 17, 2002 at 05:04:19PM -0500, Thomas Dodd wrote:
> 
> 
> Rogier Wolff wrote:
> > On Tue, Sep 17, 2002 at 10:46:31AM -0700, Greg KH wrote:
> > 
> >>On Tue, Sep 17, 2002 at 12:37:37PM -0500, Thomas Dodd wrote:
> >>
> >>>I get the feeling it's not a true mass storage device.
> >>
> >>Sounds like it.
> > 
> > 
> > Nope. Sure does sound like it's a mass storage device. And it works
> > too. 
> > 
> > The kernel managed to read the partition table off it, and got
> > one valid partition: sda1. 
> 
> Accept that you cannot read data from the device. At all.
> Even dd fails. And the windows drivers work (using XP
> in vmware it think it was) correctly on this same device.
> 
> 	-Thomas

But it did read the first 8 blocks off the devices when it
read the partition, the usb debug showed:

usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 00 00 00 00 00 08 00 30 da

With offsets starting at 0 -

Bytes 2 - 5 are the logical block address, all 0.
Bytes 7 - 8 are the transfer length  - 8 blocks.

The last two bytes are junk.

You should be able to run the equivalent:

	dd if=/dev/sda of=/dev/zero bs=512 count=8

And, look in dmesg for the failure message of the first read that fails, it
could have set the device offline.

-- Patrick Mansfield

  parent reply	other threads:[~2002-09-17 22:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17 11:25 Mark C
2002-09-17 15:18 ` Greg KH
2002-09-17 17:37   ` Thomas Dodd
2002-09-17 17:46     ` Greg KH
2002-09-17 18:06       ` Richard B. Johnson
2002-09-17 20:09       ` Thomas Dodd
2002-09-17 21:01         ` Mark C
2002-09-17 21:43       ` Rogier Wolff
2002-09-17 22:04         ` Thomas Dodd
2002-09-17 22:12           ` [Linux-usb-users] " Randy.Dunlap
2002-09-17 22:21           ` Patrick Mansfield [this message]
2002-09-17 22:51             ` Mark C
2002-09-17 23:09               ` [Linux-usb-users] " Randy.Dunlap
     [not found]             ` <mailman.1032306001.9987.linux-kernel2news@redhat.com>
2002-09-18  1:37               ` Pete Zaitcev
2002-09-18  6:01           ` Rogier Wolff
2002-09-17 18:15 Jonathan Corbet
2002-09-17 18:22 ` Randy.Dunlap
2002-09-17 19:46   ` Mark C
2002-09-17 20:12     ` jbradford
2002-09-17 21:21     ` Jonathan Corbet
2002-09-17 19:50   ` Thomas Dodd
2002-09-17 19:58     ` Matthew Dharm
2002-09-17 20:13       ` Thomas Dodd
2002-09-18  9:28         ` Andries Brouwer
2002-09-18  9:22 ` Andries Brouwer

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=20020917152102.A17561@eng2.beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=R.E.Wolff@bitwizard.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-users@lists.sourceforge.net \
    --cc=ted@cypress.com \
    /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

all inboxes | Powered by JetHome®