Recover Data From Unallocated Drive

How to Recover Data From an Unallocated Hard Drive and Fix the Issue

Last updated:

No robots used, our articles are crafted by humans under strict Editorial Guidelines.

Written by Manuviraj Godara Manuviraj Godara Staff Writer • 69 articles Manuviraj Godara recently joined the staff writers team at Handy Recovery Advisor, having initially contributed as a writer in 2021. His primary expertise lies in resolving data issues on Windows machines, and he has recently begun to explore Apple-related topics. LinkedIn Edited by Roman Demian Roman Demian Junior Content Editor and QA Specialist • 34 articles Roman Demian is a Junior Content Editor and QA Specialist at Handy Recovery Advisor. Since joining in mid-2024, he has been essential in keeping our content up-to-date. Roman identifies outdated or inaccurate information in older articles, updates them to current standards, and enriches our content with valuable and engaging information. LinkedIn Approved by Andrey Vasilyev Andrey Vasilyev Editor Andrey Vasilyev is an Editorial Advisor for Handy Recovery. Andrey is a software engineer expert with extensive expertise in data recovery, computer forensics, and data litigation. Andrey brings over 12 years of experience in software development, database administration, and hardware repair to the team. LinkedIn

If one of your partitions (or entire disk) suddenly shows up as unallocated space for whatever reason, you’ve come to the right place. This problem is often not as dire as it might seem at first glance. Our team has gathered a collection of battle-tested methods that can help you recover data from the unallocated partition and restore it back to normal. Just keep reading, you’ll see exactly what to do.

What Is Unallocated Space?

In simple words, unallocated space is the space that Windows cannot use to store data. This unallocated space cannot be used to write any data by the programs on your PC. In most cases, allocation is done at the time of OS installation.

Unallocated space is different from free space. Windows and other programs installed on your computer can write data to free space, as it is already allocated and usable. In order to enable Windows to write files to unallocated space, you will have to allocate the space–you can either create a new partition or expand an existing one.

The unallocated space on your drive is not visible in Windows Explorer. To view the amount of unallocated space on your disk, Windows users can use the Disk Management utility. However, you still won’t be able to view or access any files or data that might reside in this unallocated space. To recover data from an unallocated drive, you need specialized data recovery software.

Unallocated Disk Recovery Navigation

There are several common scenarios that result in unallocated space. It may range from user errors like accidentally deleting a partition or uncontrollable factors such as sudden power outages.

👀

To make your life easier, here is a table that lists a few common scenarios and the solution for each one:

Cases

Solutions

I forgot to allocate space when I installed Windows.

Use Disk Management to allocate the space–either expand an existing partition or create a new one.

I need to allocate disk space after Windows Update.

Again, you can use Disk Management to shrink a volume and allocate the space to another partition, or use the Diskpart command line utility to do the same.

I accidentally deleted the partition.

Use data recovery software to perform unallocated partition recovery easily and safely.

Use TestDisk to repair the partition table after recovering data, or allocate the space in Disk Management.

I’ve unplugged my drive improperly.

Check Windows Backup & Restore for an existing backup. If not available, use Disk Drill to perform unallocated disk recovery.

Use TestDisk (if the partition structure is damaged).

Unexpected Power Outage.

Here too, it’s wise to check if Windows has an existing backup, then use data recovery software to recover the unallocated partition.

If the partition structure is corrupted, TestDisk can help rebuild it. Alternatively, fix the unallocated hard drive using Diskpart or Disk Management.

Hard Drive malfunction.

If the hard drive is physically malfunctioning, it’s best to contact a data recovery service. In case of logical errors, you can still scan the drive or partition using Disk Drill if it shows up in its interface.

Virus or Malware infection.

Retrieve unallocated data using Disk Drill. After this, scan the drive for any malware using Windows Defender or any other antivirus program.

⚠️

As you can see, regardless of the reason behind your drive’s unallocated state, the first and most important step is to recover any data from that space. The fixes required to make the unallocated space usable will erase any data from it in the process. Only after you’ve secured your files should you proceed with making the drive “allocated” again. We’ll cover data recovery first. If, however, you don’t need any data that might still reside on the unallocated partition, feel free to skip ahead to the fixes.

How to Recover Data From an Unallocated Hard Drive

Users looking to perform unallocated disk recovery have three options available to them–recover data from the unallocated drive using a third-party data recovery program, check if Windows has a backup of your data, or contact a professional data recovery service.

Let’s take a look at all three options in more detail:

Option #1: Recover Files from an Unallocated Space Using Recovery Software

The easiest way for most users to recover their files from unallocated space on their disk is to use a data recovery program. However, don’t rush to Google and download the first recovery tool you come across. Our team has tested many such tools and compiled a curated list of the best data recovery apps that you can rely on for safe and effective results.

In our data recovery demonstration, we’ll use Disk Drill Data Recovery, as it is one of the market leaders in data recovery, and for good reason. It has an easy-to-navigate interface that hides behind it an advanced data recovery algorithm that is reliable, fast, and most importantly, supports data recovery from all kinds of situations. Disk Drill’s scan not only searches for deleted files, but also the existing ones on your unallocated partition.

Here is how you perform unallocated drive recovery using Disk Drill:

  1. Download Disk Drill and install the program.
  2. Open Disk Drill, and select the unallocated partition. It will simply show up as “Unallocated” on Disk Drill’s home screen. Click on Search for lost data and Disk Drill will begin scanning the unallocated space.Click on Search for lost data
  3. As the scan runs, you’ll see recoverable files pop up in real time. But it’s a good idea to let the scan finish completely. When it’s done, click Review Found Items to check out all the files it discovered.
    👀

    If you want to recover all found files simply click the Recover all… button.

    Click Review Found Items to check out all the files

  4. Select the files you want to recover using the checkbox next to each one. You can filter the files by file type, size, and more. Each file you select will show a thumbnail preview in the pane on the right. For a closer look, Disk Drill allows you to fully preview any file type that your Windows installation can open—either natively or with the help of third-party applications you have installed. Just hover your cursor over the file’s name to reveal the eye icon and click it to access the full preview.
  5. Once you’re sure, click Recover.Click Recover
  6. Select a recovery destination for the files. Click on Next.
  7. Disk Drill will recover the selected files.Disk Drill will recover the selected files
🔗

As mentioned, Disk Drill is one of the top choices for unallocated disk data recovery. You can download it for free, run a full scan, preview your recoverable files, and even recover up to 500 MB at no cost—perfect for seeing if it’s worth the investment before upgrading to the PRO version. If it’s not your style, there are plenty of other Disk Drill alternatives out there that might suit you better.

Option #2: Check Your System for Existing Backup

If you’ve enabled the Windows backup feature, called File History (and it was active BEFORE the partition became unallocated), you can get back your files if they were backed up.

👀

By default, File History creates backups of files stored in your Libraries (Documents, Music, Pictures, Videos), as well as your Desktop, Contacts, and Favorites folders. If you’ve added custom locations to your Favorites, those will be backed up automatically as well.

It’s quite easy to perform unallocated drive recovery using File History:

  1. Connect the storage device you used to set up File History.
  2. Type “file history” in Windows Search (Windows Key + S).
  3. Select the Restore your files with File History option.File History option in Windows Search
  4. Here, cycle through the backup you want to restore. Select the files using the checkbox, then click on the green Recover button.Windows File History recovery screen
  5. File History will restore the selected file to its original location.

It’s always a good habit to create regular backups, and Windows File History can automate this process for you.

By the way, don’t forget to check your cloud backups if you have them active. Windows 10/11 come with OneDrive preinstalled, and there’s a chance you activated it during your initial setup. Who knows—you might find your files safely stored there.

Roman Demian Junior Content Editor and QA Specialist, Handy Recovery Advisor

Option #3: Contact a Data Recovery Service

In our experience, most drives/partitions become unallocated due to logical issues—such as accidentally deleting a partition, or corruption caused by a sudden power outage. However, there are cases where physical problems with the drive itself are to blame.

When physical damage is involved, standard DIY solutions might not do the trick. In these situations, a professional data recovery service may be your best (and sometimes only) option.

👀

There are plenty of good data recovery services that can retrieve your data for you. Keep in mind that these are substantially more expensive than data recovery programs.

Typically, this is how data recovery services function:

  1. ☎️ You contact a data recovery service and explain your data recovery scenario.
  2. 🚚 The drive needs to be shipped or dropped off at the data recovery center.
  3. 💵 The company evaluates the drive and informs you how much data is recoverable, as well as the cost. The evaluation itself is free.
  4. ✅ You can decide whether you want to move forward with the recovery process.

Many top providers offer “No Data – No Charge” policies and highlight impressive success rates on their websites. However, there’s no guaranteed way to verify those numbers. Instead, rely on real customer feedback—check reviews and ratings on Google, Yelp, and Trustpilot to get a clearer sense of the service’s real-world performance.

Recently, we published an in-depth analysis of the data recovery services market, exploring the feasibility of recovering data at affordable costs. We believe it’s a worthwhile read.

How to Fix an Unallocated Partition

After you’ve successfully recovered your data from the unallocated partition (or if you don’t care about any remaining files), the next step is to make the unallocated space usable again. We’ll cover 4 methods that involve using Windows Disk Management (for two methods), the Diskpart command-line utility, and the TestDisk repair tool:

Option

When to Use It

Option A: Create a New Partition

If you simply need to turn the unallocated space into a usable partition without altering existing ones.

Option B: Add Space to an Existing Partition

If you’d prefer to increase the size of an existing partition instead of creating a new one.

Option C: Use CMD (Diskpart)

If Disk Management isn’t working for you or you need more advanced, command-line level control to allocate the unallocated space.

Option D: Use TestDisk

If a partition has become unallocated due to corruption, lost partition tables, or was accidentally deleted.

Option #A: Create a New Partition

The easiest way to handle partitions on Windows is by using the built-in Disk Management tool. It only takes a couple of clicks to create a new partition from the unallocated space.

  1. Press Windows Key + R to launch the Run application. Type diskmgmt.msc in the text box and hit Enter. This will open Disk Management.
  2. In the Disk Management window, look for the Unallocated section, as shown in the image below.Disk Management home screen with the unallocated section highlighted
  3. Right-click on Unallocated and choose New Simple Volume.New simple volume option in Disk Management
  4. Click Next on the New Simple Volume wizard welcome screen.Create simple volume wizard welcome screen
  5. On the next screen, specify a size for the new partition and click Next.Partition size option in the simple volume wizard
  6. Assign a drive letter to your drive using the drop-down menu, then click Next.Drive letter screen in the simple volume wizard
  7. If required, modify the format options on the next screen. You can leave them as default and simply click the Next option.Format options in the simple volume wizard
  8. Click on Finish. Disk Management will create the new partition.Finish screen in the simple volume wizard

Option #B: Add Space to an Existing Partition

If you’d rather not create a new partition, you can merge the unallocated space into an existing one to get back unallocated disk space. This is perfect if you simply want to increase the available storage of a drive you already use, without adding another drive letter.

⚠️

If the unallocated space isn’t directly adjacent to the partition you want to extend, you won’t be able to merge them. In this scenario, you may need to use third-party partitioning tools or simply create a new partition, as covered above. Additionally, keep in mind that Microsoft specifies the “Extend Volume” feature in Disk Management only works with RAW or NTFS partitions

  1. Press Windows Key + R, type diskmgmt.msc into the Run dialog box, and press Enter.
  2. Locate the partition you want to expand. Right-click on it and select Extend Volume… from the context menu.Select Extend Volume… from the menu
  3. The Extend Volume Wizard will appear. Click Next and then specify how much of the unallocated space you want to add to the existing partition. By default, it selects all available unallocated space.
  4. Click Next and then Finish to complete the process. The partition should now be larger, incorporating the previously unallocated space.

Option #C: Use CMD (Diskpart)

For users who are comfortable with the command line, the Diskpart utility provides an alternative to Disk Management.

  1. Type cmd in Windows Search (Windows Key + S), right-click on Command Prompt > Run as Administrator.Windows Command Prompt in Windows Search
  2. In the Command Prompt console, type diskpart and press Enter.The diskpart command in Command Prompt
  3. After this, type list disk and hit Enter. The number under the Free column is the amount of unallocated space on your drive.The list disk command in Command Prompt
  4. Type select disk x (replacing x with the disk number of the disk that has unallocated space–0 in our case) and press Enter.The select disk command in Command Prompt
  5. Enter create partition primary size=x (replace x with the number listed under the Free column in the 3rd step). This is the size of the new partition that will be created. Press the Enter key.The create partition command in Command Prompt
  6. Now, type list partition and press the Enter key.The list partition command in Command Prompt
  7. On the next screen, type select partition x. Replace x the number of the newly created partition. Use the number listed under Size to find the partition easily, as it’ll be the same number you entered in step 5. Press Enter.The select partition command in Command Prompt
  8. You now need to format the partition. To do so, type format fs=ntfs quick and press Enter. Wait for Diskpart to format the partition.The format command in Command Prompt
  9. Lastly, you need to type assign and press Enter. If you have an older HDD, type active and press Enter after executing the assign command. If Diskpart displays an error after you type active, it simply means the command is not required.The assign command in Command Prompt

Option #D: Use TestDisk

In cases where a partition has become unallocated due to corruption, lost partition tables, or other forms of logical damage, TestDisk might be the solution you need. It’s a free, open-source tool that we’ve successfully used many times before, and it excels in scenarios where you need to:

  • Recover lost or deleted partitions.
  • Rebuild damaged partition tables.
  • Repair FAT, NTFS, and ext2/ext3 file systems.
  • Fix boot sectors on FAT and NTFS volumes.

Much like Diskpart, TestDisk operates only through a command-line interface. But, before you can use it, you’ll first need to download the tool from its official website.

⚠️

Before confirming any command in TestDisk, double-check that you have selected the correct one. Partition table modifications are immediate and cannot be easily undone. If you encounter difficulties, refer to the official TestDisk documentation or seek advice from our Handy Recovery Advisor Community, where recovery professionals and enthusiasts will be glad to help.

  1. Head to the official TestDisk website. While version 7.3 is available, we recommend to download the stable 7.2 release for reliability.
  2. Extract the downloaded files to a folder on your PC.
  3. Open the folder containing the TestDisk files, right-click on testdisk_win.exe, and select “Run as administrator” When the program starts, choose [Create] to make a log file that records its actions and findings.Choose [Create] to make a log file
  4. TestDisk will list all connected storage devices. Use the arrow keys to highlight the drive containing the unallocated partition, then press Enter.Use the arrow keys to highlight the drive
  5. TestDisk typically detects the partition table type on its own; press Enter to accept the suggested type, or select the correct one if you know it.Select the correct one
  6. Highlight [Analyse] and press Enter to let TestDisk scan the selected drive for lost or deleted partitions. If initial results are incomplete, you can use [Quick Search] or [Deeper Search] for a more thorough examination. Once you locate the lost partition, highlight it and press Enter.Highlight [Analyse] and press Enter
  7. Choose [Write] to update the partition table, then press Y when asked to confirm your choice. This action will restore the previously unallocated partition.Choose [Write] to update the partition table
  8. After writing changes, select [Quit] to exit TestDisk, then reboot your computer. The once-unallocated partition should now appear as a normal, accessible drive in Windows Explorer or Disk Management.

FAQ

Can you recover data from an unallocated hard drive?

Yes, you can recover data from an unallocated hard drive:

  1. Download and install the data recovery software of your choice.
  2. Open it and select the unallocated space.
  3. Start a scan to search for data.
  4. Select the files you want to retrieve and click Recover (or Restore).
  5. Choose a safe location to restore the recovered files.

How to fix an unallocated disk without losing data?

To fix an unallocated disk without losing data, first scan the space for recoverable data using a data recovery program. After recovering your files, re-allocate the space using the Diskpart utility or the Disk Management app in Windows.

How do I recover unallocated space?

To recover the unallocated space on your hard drive, use Disk Management and allocate the space to an existing partition or simply create a new partition. You can use the Diskpart command to do the same. If the unallocated space is the result of a corrupted or missing partition table, you can use TestDisk.

How do you fix a hard drive that won't initialize?

If a hard drive won’t initialize, here are a few things you can do:

  1. Make sure all cables are properly connected. Reconnect them if need be.
  2. Use Disk Management’s error-checking feature to find and fix errors on the HDD. To do this–open Disk Management, right-click on the affected drive and click on Properties, go to Tools, and select the Check option.
  3. Initialize the drive using Disk Management. You can take a look at this tutorial on how to initialize a disk without losing data.

Why is my external hard drive unallocated and how can I fix it?

Your external hard drive may appear as unallocated if its partition table is missing or corrupt, or if the drive was never properly formatted. To fix it, first use data recovery software like Disk Drill to retrieve any important files. Then, open Disk Management and either create a new partition or allocate the unallocated space to an existing partition.

About article

This article was written by Manuviraj Godara, a Staff Writer at Handy Recovery Advisor. It was recently updated by Roman Demian. It was also verified for technical accuracy by Andrey Vasilyev, our editorial advisor.

Curious about our content creation process? Take a look at our Editor Guidelines.

How do you rate the article? Submitted: