• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How do you recover a deleted partition on a hard drive?

MatTheCat

New Member
Joined
Jun 21, 2008
Messages
883 (0.15/day)
System Name Bitch
Processor Intel i7 2600K @4.6Ghz
Motherboard MSI Z68A-GD80 (G3)
Cooling Noctua nh-u12p se2
Memory 8GB Corsair Vengeance 1866MHz 9-10-9-27
Video Card(s) POWERCOLOR HD 7970 3GB
Storage OCZ Vertex 2 240GB SSD / 2*320GB WDC RAID 0
Display(s) Samsung 226BW 21" 1650*1080
Case Lian Li PC B-25
Audio Device(s) Creative X-FI Professional PCI
Power Supply OCZ PC Power & Cooling 860W
Software Windows 7 x64
I was putting together my mothers new PC (mainly my old components) and decided that her hardrives were a mess and that I was going to merge the partitions.

On one the drives, I deleted and formatted partition B, and tried to merge it with partition A, simply by extending partition A to encompass the remaining capacity on the physical drive. Much to my horror however, the end result was that the whole of the physical drive was rendered into 500GB of 'Unallocated Space'.

There was lots of very important files on that hard-drive and losing them would be totally out of the question.

Does anyone know how to go about recovering a deleted partition?
 
Joined
Apr 2, 2011
Messages
2,645 (0.56/day)
1) Make sure to disconnect the drive. The system using the "unallocated" sectors as a paging file will bork your data. Once reconnected make sure paging is off on that disk.
2) Follow the linked instructions from MS:http://support.microsoft.com/kb/245725
3) Use google in the future



* Instructions apply to newer OSs, not just the one listed.
 

MatTheCat

New Member
Joined
Jun 21, 2008
Messages
883 (0.15/day)
System Name Bitch
Processor Intel i7 2600K @4.6Ghz
Motherboard MSI Z68A-GD80 (G3)
Cooling Noctua nh-u12p se2
Memory 8GB Corsair Vengeance 1866MHz 9-10-9-27
Video Card(s) POWERCOLOR HD 7970 3GB
Storage OCZ Vertex 2 240GB SSD / 2*320GB WDC RAID 0
Display(s) Samsung 226BW 21" 1650*1080
Case Lian Li PC B-25
Audio Device(s) Creative X-FI Professional PCI
Power Supply OCZ PC Power & Cooling 860W
Software Windows 7 x64
1) Make sure to disconnect the drive. The system using the "unallocated" sectors as a paging file will bork your data. Once reconnected make sure paging is off on that disk.
2) Follow the linked instructions from MS:http://support.microsoft.com/kb/245725
3) Use google in the future



* Instructions apply to newer OSs, not just the one listed.

I did use google and the products of my google search took me to a freeware program....and when I tried to run it, several windows popped up declaring incompatibility and my mothers PC spzzed up and after that, Windows wouldnt come on.....she is probably still sitting reinstalling windows on it as I type.
 
Joined
Apr 2, 2011
Messages
2,645 (0.56/day)
Then a general tip. Use the search term, followed by msdn. Ie "recovering deleted partition, msdn." The MSDN is the Microsoft Developers Network, and they have 99% of the usefull answers whenever you have a windows related question.

Additionally, free programs are russian roulette. Always check twice before pulling the trigger.
 
Joined
May 23, 2008
Messages
376 (0.06/day)
Location
South Jersey
I have used a few not free solutions. Most recently GetDataBack for NTFS, and it is the first software I have tried that retains folder and file naming conventions. Worked EXCELLENt for me.

It is also extremely simple to use.

there may be good freeware solutions but I am not aware of them
 
T

twilyth

Guest
Is this an internal or external drive? If it is external on a USB connection, disconnect, count to 5, reconnect. I get this error all of the time with an external USB3 dock.

Otherwise, I would reboot. Unless this was the boot drive, Windows shouldn't have lost track of the the first partition - not completely. I could be wrong about that but I don't think so. Do a cold boot if necessary.

In the worst case, check out GetDataBack for NTFS. I think this is still the premier recovery tool, but my information is dated. They have a free demo. Hopefully that will tell you if it can help before you buy it.

FYI, I'm assuming that when you say "A" you mean partition 0 and "B" is partition 1.
 

95Viper

Super Moderator
Staff member
Joined
Oct 12, 2008
Messages
12,645 (2.24/day)
Try this, it works... it is open source...
TestDisk, Data Recovery

Quote from site:
TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.

TestDisk can
Fix partition table, recover deleted partition
Recover FAT32 boot sector from its backup
Rebuild FAT12/FAT16/FAT32 boot sector
Fix FAT tables
Rebuild NTFS boot sector
Recover NTFS boot sector from its backup
Fix MFT using MFT mirror
Locate ext2/ext3/ext4 Backup SuperBlock
Undelete files from FAT, exFAT, NTFS and ext2 filesystem
Copy files from deleted FAT, exFAT, NTFS and ext2/ext3/ext4 partitions.
 
Joined
Apr 2, 2011
Messages
2,645 (0.56/day)
Since when can you use unallocated space for a paging file?

It was my, perhaps incorrect understanding, that the OP wanted to make on large partition out of two. I had assumed that, with the attempt to destroy then reallocate the extra partition, the OP might have formatted it into one drive as much as they might have had completely unallocated space.

Fearing this, I recommended the most cautious route. Caution may not have been explicitly necessary, as such what I recommended was not correct. On the other hand, I've dealt with people that have said one thing out of ignorance and meant another. Unless you're in the room with the person, I've found that unnecessary caution is generally the best way to go.
 

qubit

Overclocked quantum bit
Joined
Dec 6, 2007
Messages
17,866 (3.00/day)
Location
Quantum Well UK
System Name Quantumville™
Processor Intel Core i7-2700K @ 4GHz
Motherboard Asus P8Z68-V PRO/GEN3
Cooling Noctua NH-D14
Memory 16GB (2 x 8GB Corsair Vengeance Black DDR3 PC3-12800 C9 1600MHz)
Video Card(s) MSI RTX 2080 SUPER Gaming X Trio
Storage Samsung 850 Pro 256GB | WD Black 4TB | WD Blue 6TB
Display(s) ASUS ROG Strix XG27UQR (4K, 144Hz, G-SYNC compatible) | Asus MG28UQ (4K, 60Hz, FreeSync compatible)
Case Cooler Master HAF 922
Audio Device(s) Creative Sound Blaster X-Fi Fatal1ty PCIe
Power Supply Corsair AX1600i
Mouse Microsoft Intellimouse Pro - Black Shadow
Keyboard Yes
Software Windows 10 Pro 64-bit
I can't believe you tried this without making a backup first. Playing around with partitioning tools is dangerous and you need to know what you're doing. Practice on a spare HD first in future.

You've had some good suggestions for data recovery here, but there's no guarantee you'll get it back, good luck. And make those backups next time.
 
Last edited:
Joined
Mar 1, 2010
Messages
3,565 (0.69/day)
Location
By the Channel Tunnel, Kent, England
System Name Benny
Processor Phenom II 1055t @ 3.3GHz; 300x11; 1.380v; NB 2700; HT 2400
Motherboard ASUS Crosshair IV Formula (2002 BIOS)
Cooling Thermalright TRUE 120 Black + 2 Xilence Red Wing PWM 120mm (push/pull) + polycarbonate fan holders
Memory 8GB GeIL Ultra 2133MHZ C9 running at 1600MHz @ 7-7-7-21 1T 1.5v
Video Card(s) MSI Twin Frozr II GTX470 @ Stock w/CPU fan cable-tied on, as one of the GPU fans broke.
Storage 60GB OCZ Agility3 (OS);500GB WDC Grn; 1x1TB WDC Blk (Backup)
Display(s) ASUS PA823Q
Case Silverstone Raven 2 (all cables custom sleeved with velcro mod on side panel...)
Audio Device(s) X-Fi (Onboard) + Harmon Kardon HK6100 amp powering JVC HA-RX700's with Zalman mic
Power Supply Corsair HX650W
Software Win7 Pro x64
Benchmark Scores No benchies so making this space useful! Corsair M90, Logitech G19. Phobya FlexLight LED's (gawjus)
No-one's mentioned Recuva? I've used it for this exact scenario many times. Well, I haven't deleted partitions; but windows has randomly said to me "this partition is not format. Format it now?" on a prefectly working HDD.

You can download the free version of Recuva from here. Recuva is made by the same guys that make CCleaner.

You have to activate and format the partition first, so it's usable, and therefore "readable". Just do a quick format on it and then run Recuva. Easy as that.
 
Joined
Sep 4, 2011
Messages
133 (0.03/day)
Location
Portugal
System Name Klean
Processor Ryzen 5 1600 @ 3.8GHz
Motherboard Asus ROG Strix B350-F
Cooling be quiet! Dark Rock 3
Memory 16GB (2x8GB) GSkill Rispjaws V 3066Mhz CL15 1T
Video Card(s) Saphire Pulse RX 560 4GB
Storage Crucial MX300 M.2 525GB - Western Digital Elements 2TB
Display(s) LG 29UM59-P - Freesync 21:9
Case Raijintek Thetis Window (Tempered Glass)
Audio Device(s) SupremeFX S1220
Power Supply Seasonic FOCUS Plus 550 Gold
Mouse A4Tech Bloody V5
Keyboard Alfawise V1 Mechanical
Software Windows 10
One more program i find very useful is Handy Recovery. This thing can recover files from a Disk that you deleted partitions and done some very bad shit on it. I used this program many times for some friends and it never let me down yet :b
 
Joined
Jan 17, 2010
Messages
12,280 (2.37/day)
Location
Oregon
System Name Juliette // HTPC
Processor Intel i7 9700K // AMD Ryzen 5 5600G
Motherboard ASUS Prime Z390X-A // ASRock B550 ITX-AC
Cooling Noctua NH-U12 Black // Stock
Memory Corsair DDR4 3600 32gb //G.SKILL Trident Z Royal Series 16GB (2 x 8GB) 3600
Video Card(s) ASUS RTX4070 OC// GTX 1650
Storage Samsung 970 EVO NVMe 1Tb, Intel 665p Series M.2 2280 1TB // Samsung 1Tb SSD
Display(s) ASUS VP348QGL 34" Quad HD 3440 x 1440 // 55" LG 4K SK8000 Series
Case Seasonic SYNCRO Q7// Silverstone Granada GD05
Audio Device(s) Focusrite Scarlett 4i4 // HDMI to Samsung HW-R650 sound bar
Power Supply Seasonic SYNCRO 750 W // CORSAIR Vengeance 650M
Mouse Cooler Master MM710 53G
Keyboard Logitech 920-009300 G512 SE
Software Windows 10 Pro // Windows 10 Pro
Anyone still use Spinrite6
 
Joined
Mar 1, 2010
Messages
3,565 (0.69/day)
Location
By the Channel Tunnel, Kent, England
System Name Benny
Processor Phenom II 1055t @ 3.3GHz; 300x11; 1.380v; NB 2700; HT 2400
Motherboard ASUS Crosshair IV Formula (2002 BIOS)
Cooling Thermalright TRUE 120 Black + 2 Xilence Red Wing PWM 120mm (push/pull) + polycarbonate fan holders
Memory 8GB GeIL Ultra 2133MHZ C9 running at 1600MHz @ 7-7-7-21 1T 1.5v
Video Card(s) MSI Twin Frozr II GTX470 @ Stock w/CPU fan cable-tied on, as one of the GPU fans broke.
Storage 60GB OCZ Agility3 (OS);500GB WDC Grn; 1x1TB WDC Blk (Backup)
Display(s) ASUS PA823Q
Case Silverstone Raven 2 (all cables custom sleeved with velcro mod on side panel...)
Audio Device(s) X-Fi (Onboard) + Harmon Kardon HK6100 amp powering JVC HA-RX700's with Zalman mic
Power Supply Corsair HX650W
Software Win7 Pro x64
Benchmark Scores No benchies so making this space useful! Corsair M90, Logitech G19. Phobya FlexLight LED's (gawjus)
Anyone still use Spinrite6

I use Spinrite, don't know what version number though. AFAIK it just sorts bad sectors, it doesn't recover deleted data but I could be wrong.
 
Top