Recover a flash drive turned RAW – Partition Wizard and TestDisk.

jumanji

New member
Recover a flash drive turned RAW – Partition Wizard and TestDisk.

Of late a lot of interest has been generated in using the Partition Recovey Wizard of MiniTools Partition Wizard (PW).

Venerable gregrocker brought out a new feature – extending a partition with even non-adjacent space - in the MiniTools Partition Wizard (PW) here: http://www.sevenforums.com/software/265776-amazing-new-partition-wizard-feature.html

On the data recovery front, there is little, if any, documented evidence of the Partition Recovery Wizard in it being deployed to restore a partition that had turned RAW.Traditionally TestDisk (TD), with many advanced features, has been the tool of choice in the freeware category.

So, in a way, this writeup exploring PW for data recovery from a RAW drive, is a first of its kind. Side by side, I have also used TD. Be ready for some surprises.

The MBR partition table and Volumes boot sector are the two places where the partition information is stored. When Windows is unable to read this for any reason, it reports it as RAW (though the data is still there).

I had no drive that had turned RAW and so I had to “manufacture”. This was done by zero filling the first sector.

For this experimental exploration, I used two flash drives 1. a more recent 16GB SanDisk Cruzer Blade and 2. an almost first generation 1GB imation flash drive.

These were first lowlevel formatted with HDD LLF Low Level Format Tool v4.25 followed by a FAT32 Full Format with HP USB Disk Storage Format Tool v2.2.3. A generous amount of files were written for recovery later.

Making the Flash drive RAW:

Zero filling the first sector using HxD Hex Editor - turns the flash drive to RAW

1. fill0Sec1sec1.jpg

The resulting Flash drive - RAW. Windows wants you to format it (but data is still there).

2 Raw.jpg

Recovery with TestDisk: SanDisk Cruzer Blade 16GB

Run TestDisk

1. At the first screen select “No Log” ENTER

2. Select the drive to analyse, choose “Proceed” ENTER

3. Select partition type – Intel for a PC. ENTER

4.Select “Analyse” ENTER. The drive/partition will be analysed. At this screen the message “ Partition sector doesn’t have the endmark 0xAA55 “ appeared.(This happened even in the case of the other Imation 1 GB flash drive. So I would presume that this will happen with every flash drive.)

3 Screen4.jpg

5. Select “Quick Search” ENTER

6. Press “Y” if the partitions were created under Vista or later – “N” if not. "Y" if you do not know.

7. Partition identified correctly.

4 found.jpg

8. At this stage I pressed “P” to list the files and check whether it can see the files. It
showed all the files. I copied one file to a partition on my internal drive and checked
that it played. I terminated TestDisk after this since I have to now try Partition Wizard.

5 copy.jpg

If one wants to write the partition table, instead of “P”, press ENTER to continue, select ‘Write” ENTER . Quit TestDisk and reboot your PC. (Since this is a flash drive, safely remove it and plug it in.) Later I made a repeat of this exercise starting from the lowlevel format and confirmed that it was successful.


Recovery with Partition Wizard: SanDisk Cruzer Blade 16GB

Run Partition Wizard 7.

The flash drive is shown as “unallocated” and without a drive letter.

6 drives.jpg

Click on Partition Recovery Wizard and Next.

In the Partition Recovery Wizard screen, select the flash drive to be recovered and click on Next.

Select Full Disk, and then Next.

Select Quick Scan, Next

The partition was found. Select and double click on it. The Partition Explorer shows the files on it. (Unlike in TestDisk, one cannot copy the files at this stage. The partition has to be necessarily restored.)

7 explore.jpg

Close the Partition Explorer and click on Finish.

The Main Screen shows the restored Flash Drive but still without a drive letter.

8 give drive letter.jpg

Right click on the drive, click on Change letter and give a drive letter.

Click on Apply to execute the two pending operations.

The partition is restored and the flash drive is now functional and you can access the files and folders.

9 Diskmgmt.jpg

First sector as restored by TestDisk:

10 TD Sec1.jpg

First Sector as restored by Partition Wizard:

11 PWsec1.jpg

Recovery with TestDisk: imation 1GB flash drive

When I tried the recovery operation on the imation flash drive, there was no change upto step 7 ( where it found the partition and indicated everything is OK) mentioned in the SanDisk drive recovery above.

However, when it found the partition and I hit “P” to list the files, it came to a cropper. “can’t open filesystem. File system seems damaged.” !!!!!!!!!!!!

12 cantopen.jpg

When I went back to the earlier screen and did “Write” ENTER it was “Partition write error”

13 writeerror.jpg

Operation abandoned.

Curious to explore what happens when I try it on the fully functional imation Flash drive, I ran TestDisk on it.

On the fourth screen “Analyse” ENTER, it said “ Bad sector count” ( End 127 –122- 59) “No partition bootable”

On the Fifth screen “Quick Search” ENTER, it did find the bootable partition with the correct count (End 127 254 63)

P” to list the files, only brought the message “can’t open filesystem. File system seems damaged.” ( This,the first flash drive I bought years ago paying an astronomical price, is still working fine)

Recovery with Partition Wizard: imation 1GB flash drive

By contrast, recovery with Partition Recovery Wizard in PW, went off without any event, restoring the flash drive.

So, Partition Wizard did recover pendrives that turned RAW.

Why TestDisk failed on the imation drive? My only hypothesis is that as a first generation device the hardware and firmware in it could be slightly different from what it is in the current day devices. That said, it is to the credit of PW, that it could recover even that device.

A SevenForums exclusive presentation. :)
 
Last edited:

My Computer

OS
Windows 7 Home Premium 32 bit
Extremely useful write-up!!! We seem to be getting many RAW volumes recently so this will be a good reference...........it would also make a nice tutorial with only little effort.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Very useful jumamji. +1
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Hewlett-Packard/G62-107SA Notebook
OS
Microsoft Windows 7 Home Premium 64-bit Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz
Motherboard
Hewlett-Packard 1425
Memory
8 GB DDR3
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Builtin
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
250 GB SATA Hard Disk Drive 7200 rpm
2TB Seagate GoFlex USB 2 Drive
1TB Iomega Prestige USB 2 Drive
1.5TB Iomega Prestige USB 2 Drive (Samsung)
2TB WD MyBook Live NAS.
Mouse
Logitech Anywhere MX
Internet Speed
152 Mbs download 10 Mbs upload
Antivirus
Norton 360
Browser
Chrome
More great work jumanji. Very thorough and nicely written. And good to know that PW was successful on all counts.

I wonder if Testdisk would've succeeded if "Enter to continue" was selected in step 7 rather than listing the files. I think that would've continued on to reach the "Deeper Search" option. When the deeper search finished you could then select the option to list/copy files before writing corrections.
 

My Computer

OS
Windows 7 Ultimate x64
......I wonder if Testdisk would've succeeded if "Enter to continue" was selected in step 7 rather than listing the files. I think that would've continued on to reach the "Deeper Search" option. When the deeper search finished you could then select the option to list/copy files before writing corrections.

Yep, I intend to try that later ( right now I am relaxing a bit, after packing all my pendrives into the Caselogic case :) ) but when TestDisk does find the partition in QuickSearch one would expect it to find the files and/or rewrite the table - as it happened in the case of the SanDisk drive.

If that does not happen, then there is a problem with the pendrive. I wouldn't even call it a problem, since those pendrives function normally otherwise. It is only that that something in those is different.

(When a tool created with a particular brand pendrive does not work as intended , the general recommendation is that to create that tool on a different brand pendrive and that mostly resolves the problem.)
 

My Computer

OS
Windows 7 Home Premium 32 bit
A well deserved break. You've done some great work. ;)

You know, it seems that simply wiping the first sector shouldn't have caused a problem with Testdisk, even if it was on a first gen flash drive. How did the file table get miscombobulated?

I guess it would be interesting to see what was in that first sector before the wipe. Did you, by any chance, make an image of it before testing?
 

My Computer

OS
Windows 7 Ultimate x64
If what you mean is the picture of the first sector of the pendrive as it rolled out from the factory, the answer is no.

All my pendrives would have received a full zero wipe (Lowlevel format) or a full format with the HP tool or both at sometime or other and no longer virgins. :)

That said, after the full zero wipe and full format, I did backup the first sector with BOOTICE BOOTICE – Partition Flash Drive – Edit Boot Sector | Portable USB Applications so that I can restore it in case I go wrong in the middle of the experiment and need to restart from the beginning. That came in handy whenever I missed a screenshot and I couldn't go back to get it. ( And I had never before thought of looking into the first sector anytime, leave alone saving it.:))

Since then the one thought that has been ringing in my mind is that why not one take this backup immediately after purchasing a pendrive and save it? In case the pendrive turns RAW anytime ( due to corrupt first sector), one can restore it and check if it resolves the problem. Not still sure whether my thinking is flawed.:)
 

My Computer

OS
Windows 7 Home Premium 32 bit
Yeah, I was more interested in what was in the first sector immediately before wiping. Just to try and understand why Testdisk had a problem with the quick search.

The more I think about this, the more I think that Testdisk must go through the deeper search before there's any chance for it to be able to recover anything. I'm now having a hard time trying to think of how a quick search would've found anything remotely recoverable anyway (ie, the FAT32 partition it identified but wasn't able to do anything with).

Since then the one thought that has been ringing in my mind is that why not one take this backup immediately after purchasing a pendrive and save it? In case the pendrive turns RAW anytime ( due to corrupt first sector), one can restore it and check if it resolves the problem. Not still sure whether my thinking is flawed.
smile.gif

I actually used to make those same backups with new pendrives. I quit doing that, though. I had never lost pendrive data before, and I always had backups of the critical data that I put on them anyway (never know when you might lose one). On top of that I realized how easy it was to recover data from them anyway.
 

My Computer

OS
Windows 7 Ultimate x64
@jumanji
I face same kind of problem in my Toshiba 8 GB pendrive. I try with both utility Test Disk and Mini Tool Partition Wizard but not recover my USB. Also try with Easeus Data Recovery Professional wizard.Please help me.
 

My Computer

OS
windows 7 ultimate 32 bit
Sorry, due to my crippled condition I peep into SevenForums only when I am up and running to the extent permitted by my Ortho and do not scan all the subforums in the limited time..

Please start a new thread under Hardware and Devices subforum and restate your problem in as much detail as possible.

You may also do well to post screenshots how your pen drive looks in Windows Disk Management and Partition Wizard.

Even if I do not respond, there are others who may chip in and help you.
 

My Computer

OS
Windows 7 Home Premium 32 bit
Need Help with the above issue, HDD is "not initiazied" Data is import

Hi All, I got this issue with my Hdd yesterday, since then I've been racking all over the internet to find any solution, Would greatly appreciate any help at all.
My Hdd is Segate 320GB about 4years old, It was working fine, I was deleting some files, which didn't get deleted, and the hdd was abruptly removed from the usb slot, then I tried repluggig the drive nothing would be read, I went into Disc Management, the drive wasn't seen, after plugging in for 1 hour it showed up, I read in other forum it would be an issue with the drive letter, so in disc management, changed the drive letter, I got a message as, Initializing disc, MBR, click OK, ..... I did that, but realized that it might be formatting my drive so I canceled the action mid way. After that tried re-plugging the drive not it just says not-initialized and partitioned.
I want to recover all the data within it, atleast about 250GB worth of data. I have previously done lot of data recovery, but am totally stumped in this scenario, Please appreciate any help on this matter.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell Studio 1558
OS
Windows 7 Home Premium x64
Hi All, I got this issue with my Hdd yesterday, since then I've been racking all over the internet to find any solution, Would greatly appreciate any help at all.
My Hdd is Segate 320GB about 4years old, It was working fine, I was deleting some files, which didn't get deleted, and the hdd was abruptly removed from the usb slot, then I tried repluggig the drive nothing would be read, I went into Disc Management, the drive wasn't seen, after plugging in for 1 hour it showed up, I read in other forum it would be an issue with the drive letter, so in disc management, changed the drive letter, I got a message as, Initializing disc, MBR, click OK, ..... I did that, but realized that it might be formatting my drive so I canceled the action mid way. After that tried re-plugging the drive not it just says not-initialized and partitioned.
I want to recover all the data within it, atleast about 250GB worth of data. I have previously done lot of data recovery, but am totally stumped in this scenario, Please appreciate any help on this matter.

Post your problem as a New thread in specific section with the screen shots , this will help u much better.
I want to share a link ,which may be help you.
http://www.sevenforums.com/hardware-...-into-raw.html.
 

My Computer

OS
windows 7 ultimate 32 bit
This is great stuff. I must have missed it since I don't get to the Software forum much any more with all the threads waiting in Installation and General.

Please notify me of any other experiments like this. You are really a master at this, jumanji.
 
Thank you greg for the appreciative words.

By and large I am now living on past glory :D and leaving it aside to the more capable and energetic younger generation - there are many and if I name only a few I will be missing out many and so I won't name any :).

If I do anything worthwhile that I feel may interest you I shall indeed drop a word. Thanks again.
 

My Computer

OS
Windows 7 Home Premium 32 bit
Thanks jumanji, I "repaired" my USB Stick !!!

Thanks jumanji, I repaired my USB Stick !!! Followed your instructions, to the letter,using Minitool Partition Wizard Pro 8.1.1 ,and repaired a irksome USB... You Rock !!! I had tried everything I knew to do-Nothing worked,except for your outlined method.Thanks,so much,I can now repair troublesome USB's ,as long as they aren't fried....!!:D:D:D:D:D:D:D:D:D:D
 

My Computer

Computer type
PC/Desktop
OS
Win7 Home Premium 64-bit
External Hard drive fallen and i want to recover data

I have WD hard drive.it fell down and now there is clicking sound from the drive when i connect it.i want to recover my data.i have attached the disk management photo with it.i have tried ease us data recovery software but my drive is not showing up in it. Also it doesn't show up in my computer folder. So i would like to know how can i recover the data from my drive. Thanks in advance.:)
 

Attachments

  • data 1.JPG
    data 1.JPG
    43.7 KB · Views: 0
  • my computer.JPG
    my computer.JPG
    54.4 KB · Views: 34

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Acer
OS
windows 7 Home Premium 32-bit
Antivirus
Microsoft Essentials
Sometimes you can browse into a drive from the Win7 disk to Copy & Paste - in Windows Recovery Console
but that's not very likely if it won't be seen in Win7 except as an unformatted drive in Disk Mgmt.

As a last resort you could remove it from the external case and try installing it internally into a laptop to see if the drive itself can still be read from a boot disk because what was actually damaged is the other components and not the hard drive.

You can also install WD Data Lifeguard to Win7 to see how it reads the drive and if it might be reparable. If that fails then WD also makes a bootable diagnostics. WD Data Lifeguard bootable flash stick and Windows version
 
Do you still recommend this softwares ? PW at TD.. if so.. can you give a download link please.

Thank you
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 32bit
CPU
Dual Core
Antivirus
Trend Micro
Back
Top