How to Recover Data from USB Suddenly Unallocated

I purchased a 4TB drive because an external 2TB USB enclosure was on the verge of failure, so I transferred the 1.5TB of data to the 4TB barebones drive. I kept using the 2TB, but more as a staging area for data frequently backed up elsewhere. The irony is that the 2TB continues to function normally, but its backup, the 4TB, appears to have failed me. It wouldn't have been so horrible if I hadn't kept adding new files to the 4TB drive. So I'm hoping someone knows of a Windows command that can assist me.

Best Answered by

Dany· Answered on Mar 10, 2023

Your partition table, which defined the USB partition, was probably lost or corrupted. More than likely, all that is required is for the program to restore the partition table from the remaining information it finds on the drive. Everything should magically reappear - assuming nothing was written to the drive before. Since it is still unallocated, nothing was probably written to it.

Because your USB is unallocated, it has a better chance of recovering completely because the recovery program will restore the partition table without changing it, making the existing file system table for that partition accessible again.

If you simply "re-initialized" the drive by rebuilding the partition table, the existing file system table for that partition would be erased, and data loss would commence as the disk was written to. In that situation, the recovery tool would have to go through the old files and start piecing together what it could locate, and the odds of recovery would be substantially lower.

Thus, you can use Command Prompt, a useful Windows built-in program that allows users to take complete control of their computer, which could help you recover files that have been hidden, accidentally deleted, corrupted, or infected with a virus. CMD can recover deleted or corrupted files from a computer hard disk, USB flash drive, pen drive, memory card, or other external hard drives.

  • Connect your computer to your hard disk, memory card, or USB device.
  • Open the Start menu, type "cmd" into the search field, then press Enter. Then look for something called "cmd. exe" in the list of programs.
  • Right-click "cmd. exe" to open the command window to recover virus-infected files.
  • Enter "attrib -h -r -s drive letter:*.* /s /d," for example, "attrib -h -r -s G:*.* /s /d". Instead of G, enter the drive letter of the hard drive or external storage device from which you lost files.

Note that if you format the USB during the CMD procedure, always remember to apply a reliable file recovery software like EaseUS Data Recovery Wizard for help. 

Use EaseUS Data Recovery Wizard to recover deleted or lost files easily and quickly.

Tutorials on how to recover lost, deleted, or formatted data from HDD, SSD, USB, SD card, or other storage media on Windows and Mac.

People Also Ask

USB-C External Hard Drive Recovery: Recover Data from External Hard Drive

Do you want to recover data from a USB-C external hard drive? In this article, we will show you a USB-C external hard drive recovery software. You can use it to recover data from an external USB-C portable hard drive in case of file format, hard disk corruption, transfer error, and more.


Mar 09, 2023

How to Recover Hard Drives with Broken RAID 0

This post will show two simple methods for recovering data from a faulty RAID array. You don't need to bring out the RAID drive; you only need to download and install the EaseUS NAS data recovery program. Then, with a few clicks, let this software scan and recover data from RAID 0.


Feb 22, 2023

Where Can I Rescue Data from My USB Pen Drive

You may lose your data on the USB pen drive for many reasons. When you need to recover files from your flash pen drive on a PC, you can use EaseUS Data Recovery Wizard, which can effectively recover all the usual deleted files from a USB pen drive.


Feb 22, 2023

Blank SD Card Recovery | How to Fix Blank SD Card and Recover Data from It

In this manual, we'll assist you in resolving one such mistake. We'll help you regain access to the files on your SD card as soon as possible if you see the error message "SD card is blank or has an unsupported file system."


Mar 10, 2023

How to Recover RAID 0 Data with Recovery Software

This guide provides two easy ways to recover data from a broken RAID array. RAID recovery is recovering data from a failed RAID array for any reason. EaseUS data recovery software is a robust program capable of recovering RAID data.


Mar 10, 2023

How to Fix External USB Drive Permissions Preventing File Recovery

You can recover data from a flash drive or pen drive using various methods. You can, for example, recover deleted files from a USB drive using USB data recovery software or restore contents from a flash drive without using the software.


Mar 10, 2023