From: Brandon Stewart <rbrandonstewart@yahoo.com>
To: "H.Rosmanith (Kernel Mailing List)" <kernel@wildsau.idv.uni.linz.at>
Cc: Matthew Dharm <mdharm-kernel@one-eyed-alien.net>,
linux-kernel@vger.kernel.org
Subject: Re: usb-storage: how to ruin your hardware(?)
Date: Wed, 20 Aug 2003 22:35:24 -0400 [thread overview]
Message-ID: <3F442FEC.1050605@yahoo.com> (raw)
In-Reply-To: <200308210205.h7L25PI6012011@wildsau.idv.uni.linz.at>
I think what Matt is saying is that certain functionality of the USB
device is soft-coded. So once this data is gone from the device, trying
to write to or from it will fail, since the read and write commands are
(partially) soft-coded. If this is true, then writing to this device is
like trying to ping a computer that was booted up, but had no operating
system loaded. It would seem weird to create a device in such a manner,
but it is not outside the realm of possibility.
I had a printer (hp lj1000) that operated in exactly this fashion. To
work, its firmware needed to be cat'ed to the device before any printing
was done. I never got this working and instead just returned the printer
and replaced it with a postscript compliant model. I recommend that you
do similar. No sense eating the cost. It will be impetus for the
manufacturers to make robust and compatible devices.
-Brandon
H.Rosmanith (Kernel Mailing List) wrote:
>-- Start of PGP signed section.
>
>
>>For the vast majority of USB storage devices, it's not possible to kill the
>>device like you did.
>>
>>It looks like the device firmware needs certain data on the first sector to
>>operate. The usb-storage communication is working just fine, but the
>>device is refusing commands.
>>
>>
>
>aha. do you know why the device is refusing commands? it relys on sector0
>to contain some vital information and if this is not there, it refuses
>commands?
>
>
>
>
>>Likely, the unit is unrecoverable unless you can figure out the magic that
>>the manufacturer uses to write that beginning few sectors of data.
>>
>>
>
>pfhew....I once sent an email to Prolific (manufacturer of this device), but
>never got an answer. so, one needs the layout of the first sectors and
>a method how to write that ... I wonder if Prolific has this info on their
>website ...
>
>
>
>
>>Matt
>>
>>P.S. I commonly put ext2/3 filesystems on my CF cards without any
>>problems.
>>
>>P.P.S. The 'strange partition table' you saw probably wasn't a partition
>>table at all -- it was likely the start of a VFAT filesystem. I'm guessing
>>that if you had just mounted /dev/sda (notice no partition number!), it
>>would have worked.
>>
>>
>
>I see. the whole flash disk is a single filesystem without partitions
>(I used to format HDs this way in the old days :->
>
>do you think it is possible to "mke2fs /dev/sda" (once I return the
>USB BAR to the vendor and tell them it's "somehow damaged, no idea
>why") on a new
>
next prev parent reply other threads:[~2003-08-21 2:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-21 1:34 usb-storage: how to ruin your hardware(?) H.Rosmanith (Kernel Mailing List)
2003-08-21 1:55 ` Matthew Dharm
2003-08-21 2:05 ` H.Rosmanith (Kernel Mailing List)
2003-08-21 2:35 ` Brandon Stewart [this message]
2003-08-21 6:17 ` Martin Schlemmer
2003-08-21 10:16 ` Maciej Soltysiak
2003-08-21 7:11 ` Alan Cox
2003-08-22 10:44 ` H.Rosmanith (Kernel Mailing List)
2003-08-27 15:11 ` H.Rosmanith (Kernel Mailing List)
2003-08-27 15:37 ` Richard B. Johnson
2003-08-27 19:33 ` root
2003-08-27 19:58 ` Richard B. Johnson
2003-08-28 2:59 ` H.Rosmanith (Kernel Mailing List)
2003-08-28 13:44 ` Andries Brouwer
2003-08-28 16:18 ` H.Rosmanith (Kernel Mailing List)
2003-08-28 20:25 ` Andries Brouwer
2003-08-29 10:25 ` Henning P. Schmiedehausen
2003-08-29 16:11 ` H.Rosmanith (Kernel Mailing List)
2003-09-09 9:57 ` Peter Werner
2003-09-15 22:57 ` H.Rosmanith (Kernel Mailing List)
2003-08-27 16:10 ` Bas Mevissen
[not found] <mMAP.NQ.15@gated-at.bofh.it>
[not found] ` <mMUh.12N.19@gated-at.bofh.it>
[not found] ` <mUI5.7Hp.27@gated-at.bofh.it>
2003-08-21 12:35 ` Ihar 'Philips' Filipau
2003-08-22 1:06 ` jw schultz
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=3F442FEC.1050605@yahoo.com \
--to=rbrandonstewart@yahoo.com \
--cc=kernel@wildsau.idv.uni.linz.at \
--cc=linux-kernel@vger.kernel.org \
--cc=mdharm-kernel@one-eyed-alien.net \
/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