Step 1: Press "Windows + R" to open the "Run" box.
Step 2: Type diskmgmt.msc and press “OK” to start Disk Management.
Step 3. Look for your lost partition and take note of its size. The space where the deleted partition used to be is now called Unallocated Space.
Step 4. Type cmd in the search box, and then right-click on Command Prompt and select "Run as administrator" to open the Command Prompt window.
Has your hard drive partition been accidentally deleted? If so, don't panic, as there is a convenient way to recover deleted partitions using CMD. Before we delve into that, let's first understand the concept of partitions for more context.
Disk slicing or partitioning refers to creating one or more regions on secondary storage. Each of these areas can be managed individually. These regions are referred to as “partitions.” Thus, when a partition gets lost, you must restrict the storage device from utilizing the partition table for reconstruction and prevent the hard drive from getting formatted.
If you accidentally deleted a partition, you've come to the right place! This article will show you how to effectively recover a deleted partition using repair commands and other alternative methods.
The Command Prompt is a tool for performing tasks, including managing directory files, running scripts, and automating repetitive tasks. It is a powerful utility in the Windows operating system that enables users to interact with the system using text-based CMD commands through a command-line interface. The four main components of the Command Prompt are:
There are two main requirements for a computer to boot correctly: the presence of a valid Master Boot Record (MBR), and at least one active partition in the Partition Table.
By partition recovery, we mean the restoration of both physical and virtual partitions. The first objective is to find and fix errors on an HDD to make the partition visible to the operating system again. The latter is about determining the crucial parameters of a damaged partition and displaying its contents.
Want to know how to recover a deleted partition using CMD? Here's how:
1. Press the "Windows + R" keys to open the "Run" box.
Step 2: Type diskmgmt.msc, and then click OK to open Disk Management.
Step 3. Locate your lost partition and take note of its size. The space that was occupied by the deleted partition will now be considered unallocated.
Step 4. Type cmd in the search box, and then right-click on Command Prompt and select "Run as administrator" to open the Command Prompt window.
Step 5. Type diskpart in the window, and press Enter.
Step 6: Press the "Enter" key on your keyboard and type in list disk. You should now see all the partitions on your computer.
Step 7: Type list volume, and press Enter.
Step 8: Select the volume b, and then press Enter, where b is the number of the lost partition. Type assign letter c, and then press Enter, where c is the drive letter.
Aside from using CMD to recover deleted partitions, there are other methods you can employ. Now that you've learned how to use CMD to restore partitions, let's explore three alternative approaches.
There are specific software tools designed to recover lost partitions and files. These could be from different storage drives, flash drives, external HDD, or partitions. Hence, it is recommended to use the Data Recovery Wizard tool. This is a typical partition and data recovery software that can restore over 1000 file types.
This professional tool enables you to perform a quick and secure CMD data recovery without compromising your saved data. Its intuitive user interface makes the software easy to use, allowing you to recover data from Windows PCs, USB drives, SD cards, and other devices. The main highlights of the tool are:
Step 1: Select and scan the lost partition
Launch the tools Data Recovery Wizard, select "Lost Partition," and click "Scan" to search for all lost data. If there are multiple lost partitions, you can identify them by their partition size.
Note: Since the Windows system does not support Linux file systems, Ext2 or Ext3 partitions will be recognized as unallocated partitions without drive letters in the software. If you want to recover data from an Ext2/Ext3 partition, you can follow the steps below.
Step 2: Review the scan results
Since there will be many files scanned, you can choose a file category to quickly filter, such as Images, Videos, Documents, Audio, and Other. Or, if you remember the file name, you can search for it in the search bar at the top-right.
Step 3: Preview and recover data from the lost partition
Before recovering, you can preview the files to make sure that they are the data you need. Select all the files you need and then click “Recover” to restore them.
If you find this professional data recovery tool helpful, download it now! Also, don't forget to share this page on your social media to let more friends know.
TestDisk is a free and powerful data recovery tool used to restore lost, deleted, or damaged partitions. Follow these steps to use TestDisk to recover your deleted partition:
Step 1. Download TestDisk. Choose Windows 64-bit for computers with 64-bit systems, and Windows 32-bit for 32-bit systems.
Step 2: In the downloaded folder, click 'Extract All' to unzip the file to the nearest folder.
Step 3. Open the extracted folder, find it, and double-click on "testdisk_win.exe."
Step 4: Click the "Yes" button now.
Step 5: Select “Create” and press the “Enter” key.
Select “Create new log file”
Step 6. Now, all the hard drives will be displayed on the screen. Use the arrow keys to select the disk where the lost partition was located. Press “Enter” to proceed once done.
Step 7: The program will automatically select the correct partition table type and display a prompt with a default option. Choose the suggested partition table type by pressing the Enter key.
Step 8: Use the up/down arrows to select Analyze, and press Enter.
Step 9. The displayed information is the current partition layout. Now, choose "Quick search" and press "Enter."
Step 10: Use the arrow keys to highlight the deleted partition and press Enter.
Before entering a partition, press "P" to list the files stored within the selected partition, then press "q" to return to the previous menu.
Step 11: You can now click “Write” to restore the partition.
Click Write to start the scan.
Step 12: Press 'Y' to write the partition table.
Step 13: Click OK to exit, and then restart your computer for the changes to take effect.
Please provide the text you'd like translated, and I'll translate it into English.
How to Recover Lost Partition on External Hard Drive with CMD
Read on to learn how to recover lost partitions from an external HDD with Data Recovery Wizard and TestDisk. Learn More>>
If you liked this process, share the article on social media with your friends.
When all else fails and you've tried using a recovery tool multiple times, it would be ideal to use a professional data recovery service. This is also recommended for more complicated data loss scenarios like corrupted virtual disks, lost partitions, failed repartitioning, formatted drives, and RAW disk issues.
Please provide the English content you would like translated, and I will do my best to translate it into Chinese.
Tools Data Recovery Service
Contact our experts for a free evaluation now.Consult with Tools Data Recovery experts for one-on-one manual recovery assistance. After a free diagnosis, we offer the following services:
For an affordable DIY manual recovery solution, you can seek the expertise of professionals from Tools Data Recovery. They provide service support for all countries, including data recovery services in the USA. Tools Data Recovery offers the following services:
Avail of our Data Recovery Services today for your damaged HDD, server, USB, SSD, or desktop!
Hard drives are great for storing data and are often used for backups. However, if you lose or accidentally delete a partition on your hard drive, you can lose access to all the information on it. Thankfully, all of the methods in this article allow you to recover a partition. Efficient Windows data recovery software, like tools Data Recovery Wizard, can quickly restore deleted partitions.
Please refer to the following FAQ for better understanding:
**How to recover a deleted partition using the Command Prompt?**
The second part illustrates the correct method of using CMD to recover a deleted partition. Follow the steps carefully to restore your deleted partition.
2. Can I recover a deleted partition?
Deleted partitions can be quickly recovered. To do this, you need to use a specialized data recovery tool, such as tools Data Recovery Wizard, to restore the lost partition.
How to recover data deleted by Diskpart clean using CMD?
Here are the steps to recover data lost due to the 'diskpart clean' command using CMD with an encoding format of utf-8:
1. **Launch Command Prompt with administrative privileges**:
- Right-click the "Start" button or press `Win + X`, then choose "Command Prompt (Admin)".
2. **List all disks**:
In the CMD window, type the following command and hit `Enter`:
```
diskpart
list disk
```
3. **Select the disk to recover data from**:
Identify the disk number where you lost your data (e.g., `Disk 1`). Then enter the following command and press `Enter`:
```
select disk
**4. How to recover deleted files from hard drive using CMD?**
Here are the steps to recover deleted files from HDD using CMD with UTF-8 encoding: 1. Open Command Prompt (CMD) as an administrator: - Press `Win + X` and choose "Command Prompt (Admin)" or right-click "Command Prompt" and select "Run as administrator." 2. Navigate to the hard drive partition: - Type `cd /d D:` in the command prompt (replace `D:` with your hard drive partition, like `C:`, `E:`, etc.), then hit `Enter`. 3. Run the `dir /ah` command: - Enter `dir /ah` and press `Enter`. This will display hidden files and folders, including deleted but not yet overwritten files. 4. Locate the deleted file: - Find the name of the deleted file or folder you want to restore from the listed files. 5. Use the `undelete` command (for FAT/FAT32 file systems only): - If your hard drive uses the FAT or FAT32 file system, try the `undelete` command to recover the file. Type `undelete filename` and replace `filename` with the name of the file you want to restore, then press `Enter`. 6. For NTFS file systems: - For NTFS file systems, the `undelete` command might not be available. In this case, you'll need to use a third-party data recovery software like Recuva to restore the file. 7. If the `undelete` command succeeds, the file will be restored to its original location. If direct recovery isn't possible, you may need to use a data recovery tool. Keep in mind that these steps don't guarantee successful file recovery since other write operations could have overwritten the deleted data. It's best to stop using the hard drive before attempting recovery to minimize the chances of overwriting.