laurence said:
I have a laptop running Windows XP, a pc running Windows 7, and a USB
flashdrive which works in the laptop. It worked at first in the pc, where I
used it to back up files. Butt now I get an error message saying that Windows
does not recognise the device. What can I do? Any advice would be appreciated.
The first thing you do, with any storage device having serious problems,
is make a backup. A sector-by-sector backup for example, doesn't care
what state the file system is in. Even if the contents are not recognized,
you can try copying it.
http://www.chrysocome.net/dd
That tool runs in a Command Prompt window, and you need to understand how
it works, to safely make a backup copy of the flash. In this case, I'm
displaying the entry for my 8GB USB flash. 8,019,509,248 bytes is the
total device size, while the FAT32 partition on it, takes 8,013,233,152 bytes.
dd --list
\\?\Device\Harddisk3\Partition0 <----- represents the whole stick
link to \\?\Device\Harddisk3\DR15
Removable media other than floppy. Block size = 512
size is 8019509248 bytes
\\?\Device\Harddisk3\Partition1 <----- my FAT32 partition
link to \\?\Device\Harddisk3\DP(1)0-0+10
Removable media other than floppy. Block size = 512
size is 8013233152 bytes
Next, I need some space on my hard drive, to store an image of the USB flash.
Since my USB flash is 8GB in size, I need an 8GB space on an NTFS partition
on my hard drive (FAT32 has a 4GB file size limit). Say there is 8GB of space
on my C: drive and the C: drive has an NTFS file system on it.
262144*30592 = 8,019,509,248 , so block size times count will copy it entirely.
dd if=\\?\Device\Harddisk3\Partition0 of=C:\myflash.dd bs=262144 count=30592
You adjust the block size (bs) and count parameter sizes, to suit the size
of USB flash you're copying. I keep the block size at a quarter megabyte or
smaller.
By reversing the order of the parameters here, if you needed to copy the backup
image back to the USB flash, you can do it later. This would copy all the
data back, if one of your recovery experiments fails (like say the TestDisk program
made a mess of things). But it is important to have a backup, as it may be the only
thing left when you're finished.
dd if=C:\myflash.dd of=\\?\Device\Harddisk3\Partition0 bs=262144 count=30592
*******
If the flash drive is completely inaccessible (no response at all), the
only way to get the files back is via a data recovery company. That can happen
if the USB connector has a broken wire, or the controller inside the flash stick
has been damaged by static electricity. The flash chip itself (separate from the
controller) may still be accessible at the data recovery company.
*******
Once you have a backup copy of the USB flash, then you can experiment with
other tools. Try TestDisk for example, and see if it can find a file system.
http://www.cgsecurity.org/wiki/TestDisk
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
Don't do a save in that tool, unless you're convinced it has
really found your file system. You can press the control key and C
(control-C) if you need to quit the program, and no quit option is
offered.
If TestDisk cannot make any sense out of the drive contents, then you
can try a scavenger program, to find any files and make a copy of them.
These are examples of two free tools. You need sufficient free disk
space on your hard drive, for tools like these to store the broken
files from the flash stick. There is no guarantee that the file
names or file sizes will be the correct size or contents. Using
a scavenger can take days of cleanup later, to discover whether
anything of value was saved. These tools can never be perfect.
http://www.cgsecurity.org/wiki/PhotoRec
http://www.pricelesswarehome.org/WoundedMoon/win32/driverescue19d.html
All of the above are free tools. There is an endless stream of programs
for $39.95, that will attempt to recover your files for you. Or, the
services of a data recovery company can cost you hundreds of dollars,
depending on the effort required to recover the data. Since a USB
flash doesn't need clean room conditions, it should be easier to
attempt recovery on it than with a real hard drive. They need to hook
up to the flash storage chip directly, to see if there is still anything
inside. In this picture, the flash chip is item #4.
http://upload.wikimedia.org/wikipedia/commons/e/e2/Usbkey_internals.jpg
HTH,
Paul