How to clone a USB Drive ?
The Exact Situation
"X" gave a Pendrive and it contains data and X wants data recovered. According to "X" pendrive was last used on a Windows Machine probably infected by virus. To be on the safer side I want to clone the USB Drive, How Can i Do it? dd command? Ubuntu 14.04 LTS Disktools drive shown as /dev/sdd But I cannot access the drive. |
Additional
info fdisk -l returns Disk /dev/sdb: 2000 MB, 2000682496 bytes 62 heads, 62 sectors/track, 1016 cylinders, total 3907583 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 |
Yes, dd will give you an image to work on. What do you mean you can't access the drive - if that were the case, fdisk wouldn't return anything.
So /dev/sdd is now /dev/sdb ?. Windows will not allow a device with an id of 0x0 - and no partition table might suggest it has been zeroed out. Testdisk would be the place to start. |
Quote:
|
Somebody gave you a flash drive and they want the files recovered. Meaning he is unable to get files him/herself and they want you to do it, right? Am I missing something? Why would you want to clone the drive?
|
If OP suspects the usb drive is infected, cloning it will include the virus as well. Before cloning the drive, I would first mount the USB stick and run clamav to check for viruses. If clamav removes or reports no infected files, then OP can umount the drive and then do a dd of it.
|
Quote:
1.To Try tools Recovery tools like Test Disk, Analysed the Drive Photorec and testdisk unable to recover anything.:( |
I'd use testdisk to get the files off. Scan the files with an av scanner then nuke the usb with a new partiton.
All those files could potentially be infected. |
Quote:
Code:
Disk recimage.img - 2000 MB / 1907 MiB - CHS 244 255 63 Code:
Disk recimage.img - 2000 MB / 1907 MiB - CHS 244 255 63 Code:
Disk recimage.img - 2000 MB / 1907 MiB - CHS 244 255 63 What do you think, 1. This Media is Corrupt and Recovery impossible aka you can throw it away,:( 2. This Media is Corrupt and Partial Recovery ? 3. This Media is Corrupt and Can recover Most of the Files 4. May be Few Files could be recovered? |
Quote:
I would bet the media is ok - just needs (re-)formatting. Which of course will make sure the data is toast. |
Quote:
Code:
Disk /dev/sdb: 2000 MB, 2000682496 bytes |
See what gparted says about it. Might have to make a new(correct) partition ??
|
You said X gave you this stick. I think X did something wrong and the usb got corrupted (i.e accidentally removed the usb stick while copying files or repeatedly removing the usb without first safely ejecting it) or the virus from X's computer did something to the usb stick's partition table.
Ask your friend X what really happened? Also, tell your friend X there was no partition table on the stick so s/he wil not blame you. |
Your friend X may want to use this windows tool to restore the partition
http://www.yodot.com/hard-drive-reco...usb-drive.html |
Quote:
I do not think creating a new partition table generates a new disk identifier. It is just a random number created when building a new MBR. Odd but it might of always been zero from the start. If you can successfully read / write from the drive then it is probably ok. Take a look at the output of the dmesg command. If you see any read / write errors pertaining to the flash drive then it is might be going bad. My first guess was the drive was bad and expected the format to fail... |
All times are GMT -5. The time now is 01:56 AM. |