Regain a lost drive using Test Disk - An Illustrated Guide

I have a Samsung SP3 1TB which suddenly showed up as unallocated. I had many important files on it and I was worried sick. Followed your guide and I got all my files back. I'm very very happy I found this site. Thanks!!!!
 

My Computer My Computer

OS
Windows 7 Ultimate x64
It's a great tutorial (guide), mintec68. Glad to hear you're intact and all fixed up!
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Great!! Make it a real tutorial on sevenforums!
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0

My Computer 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
^No doubt that MiniTools Partition Wizard can do partition recovery but I am skeptical about it when it comes to dealing with a drive that has turned RAW.

When I check their website, it documents only three situations of partition loss that it can deal with 1. No drive letter 2. corrupted MBR 3.inadvertent partition deletions by the user. No mention about RAW. I am still keeping my eyes open to see that in practice.

Now a user-experience. Time: March 2012 - not long ago. A data drive. He moves a small data partition ahead of the free space using MiniTools, planning to expand it later in Windows Disk Management. Everything goes well and MT completes the move successfully and also shows it so. User boots into Windows 7 and Disk Management shows his whole disk has turned RAW. So do all other partitioning tools he checks with - except MT which says everything is right.:)

Now what to do with the RAW drive? He uses TestDisk to detect the partitions and write the partition table. He is back in business expanding the moved partition with Disk Management.

No, I am not telling a story. I have it documented in my library.:)
 

My Computer My Computer

OS
Windows 7 Home Premium 32 bit
I don't know about RAW disks either. I've not heard of any recent problems with PW. I know there were problems a few releases ago.
 

My Computer 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
^No doubt that MiniTools Partition Wizard can do partition recovery but I am skeptical about it when it comes to dealing with a drive that has turned RAW.

When I check their website, it documents only three situations of partition loss that it can deal with 1. No drive letter 2. corrupted MBR 3.inadvertent partition deletions by the user. No mention about RAW. I am still keeping my eyes open to see that in practice.

Now a user-experience. Time: March 2012 - not long ago. A data drive. He moves a small data partition ahead of the free space using MiniTools, planning to expand it later in Windows Disk Management. Everything goes well and MT completes the move successfully and also shows it so. User boots into Windows 7 and Disk Management shows his whole disk has turned RAW. So do all other partitioning tools he checks with - except MT which says everything is right.:)

Now what to do with the RAW drive? He uses TestDisk to detect the partitions and write the partition table. He is back in business expanding the moved partition with Disk Management.

No, I am not telling a story. I have it documented in my library.:)
A RAW partition has no real file system on it. It is read and written to by a database software like ORACLE for example and bypassing the operating IO-system. So it's not NTFS, HPFS,FAT etc.

But it also can happen by accident for example if partition table doesn't point to real first sector of partition. Solution is simple. Delete the partition and recover it afterwards.

Partition wizard and all other recovery tools accept RAW parititions as quite normal! Because you can have them on purpose
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
......But it also can happen by accident for example if partition table doesn't point to real first sector of partition. Solution is simple. Delete the partition and recover it afterwards......

Lemme check whether I got it right.

When an HDD or pendrive turns RAW ( by accident as in most cases) then the simple solution ( as suggested by you) is:

1. Run MT Partition Wizard and delete the RAW partition.

2. Use the Partition Recovery Wizard in it and recover the partition/data.

Is that correct?
 

My Computer My Computer

OS
Windows 7 Home Premium 32 bit
......But it also can happen by accident for example if partition table doesn't point to real first sector of partition. Solution is simple. Delete the partition and recover it afterwards......

Lemme check whether I got it right.

When an HDD or pendrive turns RAW ( by accident as in most cases) then the simple solution ( as suggested by you) is:

1. Run MT Partition Wizard and delete the RAW partition.

2. Use the Partition Recovery Wizard in it and recover the partition/data.

Is that correct?
Correct
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Thanks Kaktussoft, that's useful to know.
 

My Computer 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
......But it also can happen by accident for example if partition table doesn't point to real first sector of partition. Solution is simple. Delete the partition and recover it afterwards......

Lemme check whether I got it right.

When an HDD or pendrive turns RAW ( by accident as in most cases) then the simple solution ( as suggested by you) is:

1. Run MT Partition Wizard and delete the RAW partition.

2. Use the Partition Recovery Wizard in it and recover the partition/data.

Is that correct?
Correct

Noted. Will redirect anyone coming up with an accidental RAW Disk and needing recovery to your suggestion but before that one question though. Have you ever tried this on a RAW drive and recovered the data?

If not, it will indeed be my pleasure to try it, but I do not know how to "manufacture" a RAW drive for such a trial.
When trying out TestDisk, I used TestDisk itself to delete the partition table. The delete partition table command writes zeroes in the bootsector and the whole drive becomes "unallocated". Then I performed the recovery.

To try out your suggestion, I need to "manufacture" a RAW drive. Any suggestions on how I can do that?
 
Last edited:

My Computer My Computer

OS
Windows 7 Home Premium 32 bit
Finally I did find a way out to "manufacture" a RAW pendrive to be able to check the RAW partition recovery with Partition Wizard. My only concern was that we should be positive about it before we recommend it to any OP.

I was skeptical about it on two counts.

1. The program features itself does not mention anything about recovering from the Windows RAW notified partition, whereas MiniTools Power Data Recovery - free to recover only 1GB of data - does speak about it.

"Damaged Partition Recovery module is the most powerful data recovery module of MiniTool Power Data Recovery. This data recovery module focuses on recovering data from damaged or formatted partitions. For example: A drive displayed as RAW and Windows ask - "Do you want to format this drive?". This problem could be solved by using this data recovery module quickly." http://www.powerdatarecovery.com/

2. Whereas there are hundreds of instances in various forums, where TestDisk has been successfully deployed for RAW partition Recovery and acclaimed by the users, ( you only have to read the user reviews in TestDisk and PhotoRec - CNET Download.com ), I have not come across even a single instance where the Partition Recovery of PW has been attempted on a RAW partition or even recommended.
.

When Kaktussoft mentioned in a previous post to delete the RAW partition wth PW and then use the Partition Recovery Wizard, I started wondering what happens when you delete a RAW partition. Delete naturally means a write operation and will it be prudent to do a write operation on a drive under recovery ? I even threw a question at him " Have you ever tried it on a RAW partition?" :) (Well, I did get the correct answer to it during this experiment. Partition Wizard does not proclaim it as RAW but only as "unallocated" - - only Windows terms it RAW. So there was no need to "delete the RAW partition". In fact the delete option was greyed out.)


Now if one remembers, when I deleted the partition table in the external HDD in the TestDisk trial - using the same TestDisk, the partition was proclaimed as "Unallocated" by Windows and not "RAW". Now the question for this trial was " How do I "manufacture" a RAW drive?" RAW as per Windows. ( Honestly, I have not come across a RAW partition till date.)

After a lot of stumbling and tumbling, I managed to create a RAW pendrive with HxD Hex Editor. HxD - Freeware Hex Editor and Disk Editor | mh-nexus . (Unfortunately I couldn't get much help on how to use the various features of that program, in spite of a relentless search. Most of the info on the net was related to using it in games, creating cheats etc., but none on the features.)


For now, I will stop here and continue with the actual experiment in the next post.
 

My Computer My Computer

OS
Windows 7 Home Premium 32 bit

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Yes, I have definitely seen that Daniweb reference and I had bookmarked it in my library as one of a kind..( there are many variables that can make a drive RAW).

As the user has stated it was a last ditch attempt which luckily worked out. ( He had already given up after trying various software and decided to format.:)) In that situation any partitioning software for that matter would have worked for him.

We can definitely suggest it to an OP who is on the verge of giving up and not as a first remedy. It is just like defibrillating the heart of a dying patient. Sometimes, but not always, it does work and the heart reverts to its normal rhythm. Lucky he.:)

I am still trying out FAT32 and on a pendrive. I have already found certain inconsistencies. There are certain situations by resorting to which I turned my pendrive RAW, neither TestDisk nor PW could recover the partition/data. Windows said RAW. PW said "other" (filesystem). I could delete it in this case and it only became "unallocated". PW partition Recovery could not find the partition even after a full scan. Neither TestDisk did.:) I shall now format it and check whether it helps. I have 1.69GB on it.

hmmm... many variables and that makes my experiments harder. Now I am switching over to a 1GB pendrive and try the various options of turning it RAW with HxD. Long drawn trial ahead.
 

My Computer My Computer

OS
Windows 7 Home Premium 32 bit
This is important stuff Jumanji. Keep it up.
 

My Computer 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
Yes, I have definitely seen that Daniweb reference and I had bookmarked it in my library as one of a kind..( there are many variables that can make a drive RAW).

As the user has stated it was a last ditch attempt which luckily worked out. ( He had already given up after trying various software and decided to format.:)) In that situation any partitioning software for that matter would have worked for him.

We can definitely suggest it to an OP who is on the verge of giving up and not as a first remedy. It is just like defibrillating the heart of a dying patient. Sometimes, but not always, it does work and the heart reverts to its normal rhythm. Lucky he.:)

I am still trying out FAT32 and on a pendrive. I have already found certain inconsistencies. There are certain situations by resorting to which I turned my pendrive RAW, neither TestDisk nor PW could recover the partition/data. Windows said RAW. PW said "other" (filesystem). I could delete it in this case and it only became "unallocated". PW partition Recovery could not find the partition even after a full scan. Neither TestDisk did.:) I shall now format it and check whether it helps. I have 1.69GB on it.

hmmm... many variables and that makes my experiments harder. Now I am switching over to a 1GB pendrive and try the various options of turning it RAW with HxD. Long drawn trial ahead.
As far as I know you can turn it RAW by hacking the start sector in MBR for example.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
.......As far as I know you can turn it RAW by hacking the start sector in MBR for example.

You are adsolutely right. Wiping the first sector will definitely turn a disk RAW. In the initial experiments I was trying to wipe the first 64 sectors which incidentally seems to destroy the filesystem too.Your reminder came at the right time. I have now decided to go with wiping the first sector alone. The real trial will start now.
 

My Computer My Computer

OS
Windows 7 Home Premium 32 bit
This is important stuff Jumanji. Keep it up.

Yes, it's great work indeed jumanji!

.......As far as I know you can turn it RAW by hacking the start sector in MBR for example.

You are adsolutely right. Wiping the first sector will definitely turn a disk RAW. In the initial experiments I was trying to wipe the first 64 sectors which incidentally seems to destroy the filesystem too.Your reminder came at the right time. I have now decided to go with wiping the first sector alone. The real trial will start now.

Wiping only the first 63 sectors, rather than 64, might've left the file table intact. Even though you weren't able to recover the volume, I would think there was a good chance to recover most of the file data using Testdisk or Photorec. Did you, by any chance, try that?

Here's a good site by The Starman. Tons of info about data storage structures. I think it might be the same "Starman" (Daniel B. Sedory) who worked extensively with Christophe Grenier on Testdisk/Photorec for a number of years.

The Starman's Realm

Really appreciate the testing you're doing!!!
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Thanks to you and Kado for the encouragement. I am still halfway through the experiment and shall roll it out tomorrow, insah Allah.

Yep, 64 instead of 63 was a slip on my part which I realised when on the Imation 1GB pendrive TestDisk reported finally "can't open file system. File system seems damaged". More on this later and what a surprise.

Yes, Good idea. PhotoRec might have recovered the files, since it does not depend on the file system. It didn't occur to me then but worth trying. Shall do it later.

I have seen the reference you had given the Starman, when I was searching for s suitable software to turn a drve RAW but did not read through. I have now bookmarked it. Thanks.
 

My Computer My Computer

OS
Windows 7 Home Premium 32 bit
Back
Top