flat assembler
Message board for the users of flat assembler.

Index > Heap > repair for undetectable USB thumbdrive

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8903
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
i heard from a friend, that
thumdrive company use only "software" to repair an undetectable thumbdrive. (instead of open the thumdrive cover and repair the hardware when it was sent for RMA for reason undetectable when plug into pc USB port)

you guys got any idea what software they use?
or more info on why thumdrive couldn't be detected? and current available repair methods.
Post 04 Oct 2007, 15:15
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2915
Location: [RSP+8*5]
bitRAKE
Maybe, they rewrite the firmware of the USB controller on the drive. USBView might help to determine which controller is used. See if the manufacture has a website with manuals/software for developers, or email and inquire what support do they have.
Post 25 Oct 2007, 20:41
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
That really depends on what is broken!

If it's the filesystem/partition that's gone bunk, software-only solution is easy.

If some of the control circuitry is fried (happened to me a few times on oldish computers with flaky USB ports), that's not really viable... but often the flash memory is a detachable board that can simply (if you have the necessary parts) be re-attached to another circuitry board. Not really a software solution, though Smile
Post 25 Oct 2007, 23:20
View user's profile Send private message Visit poster's website Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
You can plug it into a linux box... and then pipe the device that you would otherwise mount into a file on the disk ("cat /dev/blah > /home/sleepsleep/usbdrivedump.img"). You can then fiddle with this file asif it'd be a disk image.

If the file system is lost the files can easily be salvaged at any point then.
Post 26 Oct 2007, 17:40
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8903
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
thanks a'lot for all the above info
just one evil thought pops into my mind, if we could put some own "driver" in the usb thumbdrive init section...
Post 26 Oct 2007, 20:48
View user's profile Send private message Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32
Quote:

You can plug it into a linux box... and then pipe the device that you would otherwise mount into a file on the disk ("cat /dev/blah > /home/sleepsleep/usbdrivedump.img"). You can then fiddle with this file asif it'd be a disk image


Otherwise do the following on a linux box:
Code:
dd if=/dev/sda of=/home/username/usb.img
    


Note: A USB-Thumbdrive and SCSI, S-ATA Disks are detected as sdX under linux.

How to find out what your drive's name is:
plug in the stick into an usb-port.
type "dmesg" on a linux console.
you should see something like this:

Quote:

usb 5-4: new high speed USB device using ehci_hcd and address 17
usb 5-4: configuration #1 chosen from 1 choice
scsi8 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 17
usb-storage: waiting for device to settle before scanning
Vendor: memory Model: USB2.0 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 1017344 512-byte hdwr sectors (521 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 1017344 512-byte hdwr sectors (521 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through

well..now you know your drive is sdb so you do:
Quote:

dd if=/dev/sdb of=/home/foo/bar.img

it may take some time.. so lean back and drink something Wink
To see all the options of dd type "man dd" on a linux console Smile

Example:
Quote:

user@hostname:/home/username# dd if=/dev/sdb of=foo.img
1017344+0 Datensätze ein
1017344+0 Datensätze aus
520880128 Bytes (521 MB) kopiert, 63,6584 Sekunden, 8,2 MB/s



Greetings
Post 29 Oct 2007, 00:33
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
I think it depend on what's wrong, with the key fob, i am working on USB driver for DexOS and the fob will need to respond to commands

Get Device Descriptor
Set Address request
Get Configuration Descriptor
Get String Descriptor

If not, linux etc will not be able to give any info, in that case only a re-flash will do.
Post 29 Oct 2007, 02:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.