Master the Diskpart Command with Easy Instructions
- Home
- Support
- Tips Data Recovery
- Master the Diskpart Command with Easy Instructions
![author avatar](https://www.reneelab.com/images/avatar/en/3.png)
Summary
Explore Diskpart command for hard disk adjustments, and restore deleted files confidently with Renee Undeleter.
![Detailed explanation of DiskPart command](/uploadimg/en/2023/6/2023-06-02-10_49_51_bfef15dd0bb94349b07cfc3d5c24132c.jpg)
parameter | illustrate |
assign | Assign a drive letter or mount point to the selected volume. |
attributes | Display, set, or clear disk or volume attributes. |
active | Mark the disk partition that has focus as active. |
create | Create a partition on a disk, a volume on one or more disks, or a VHD (virtual). |
clean | Removes all partition or volume formats from the selected disk. |
select | Move focus to a disk, partition, volume, or virtual hard disk (VHD). |
convert | Converts the file allocation table of a FAT (FAT) FAT32 volume to the NTFS file system, leaving existing files and directories intact. |
delete | Delete a partition or volume. |
detail | Displays information about the selected disk, partition, volume or virtual hard disk (VHD). |
exit | Exit the diskpart command interpreter. |
extend | Extends the volume or partition with focus and its file system onto (frees up) space on the disk. |
format | Format the disk to accept Windows files. |
inactive | Marks the system partition or boot partition that has focus as basic primary (logging) activity in MBR disks. |
list | Displays a list of disks, disk partitions, disk volumes, or VHD (virtual). |
cmd
in the search box, right-click (command prompt), and select (Run as administrator).![run as administrator](https://www.reneelab.com/wp-content/uploads/sites/2/2022/09/cmd.png)
"DISKPART"
and press Enter to execute the command.(diskpart)
in the text box and click the (OK) button, then enter the corresponding parameters behind (DISKPART>)
and press (Enter) to execute the command.![type diskpart to run](https://www.reneelab.com/wp-content/uploads/sites/2/2019/02/diskpart.png)
![run as administrator](https://www.reneelab.com/wp-content/uploads/sites/2/2022/09/cmd.png)
diskpart
list volume
Select volume 7
assign letter=M
exit
![Diskpart assigns a drive letter](/uploadimg/en/2023/6/2023-06-02-10_49_51_d9687fd846f146769e75d67fcc0defd1.png)
![type diskpart to run](https://www.reneelab.com/wp-content/uploads/sites/2/2019/02/diskpart.png)
list disk
select disk 0
list partition
select partition 1
active
exit
![diskpart set the active partition](/uploadimg/en/2023/6/2023-06-02-10_49_51_37cc7bc72da54832824fe563bcbbd2ce.png)
![run as administrator](https://www.reneelab.com/wp-content/uploads/sites/2/2022/09/cmd.png)
diskpart
list disk
select disk 1
clean
![diskpart clear disk data](/uploadimg/en/2023/6/2023-06-02-10_49_51_b6bcf82d3b2e41c582c6d24b92b820a7.png)
create partition primary
format fs=fat32 quick
exit
![diskpart create primary partition and format](/uploadimg/en/2023/6/2023-06-02-10_49_51_5d57dede7f6a47ed83c05643402006f4.png)
![run as administrator](https://www.reneelab.com/wp-content/uploads/sites/2/2022/09/cmd.png)
diskpart
list disk
select disk 2
detail disk
command
and press (Enter) after each line.diskpart
list disk
select disk 0
list partition
select partition 2
detail partition
Diskpart
command to resolve the issue.![run as administrator](https://www.reneelab.com/wp-content/uploads/sites/2/2022/09/cmd.png)
diskpart
list disk
select disk 1
attributes disk clear readonly
exit
![attributes disk clear readonly command](/uploadimg/en/2023/6/2023-06-02-10_49_51_0f91787fa5bd4e969c5a16071ff887f5.jpg)
Diskpart
command.![run as administrator](https://www.reneelab.com/wp-content/uploads/sites/2/2022/09/cmd.png)
diskpart
list disk
select disk 1
clean
convert gpt
exit
![diskpart](https://www.reneelab.com/wp-content/uploads/sites/2/2023/06/diskpart1.png)
![](https://www.reneelab.com/wp-content/themes/dt-the7/images/grey.png)
Easy to use Recover data by 3 steps;
Multiple scan modes Fast partition scan, whole partition scan and whole disk scan;
Supported file types Image, video, audio, text, email and so on;
Image creation Create a partition image to read and back up data;
Supported devices SD card, SDHC, SDXC, USB flash drive, hard disk and computer.
Easy to use Recover data by 3 steps;
Multiple scan modes Fast partition/whole partition/whole disk scan;
Supported devices SD card/USB/hard disk.
Free TrialFree TrialFree Trial 800 people have downloaded!![elect whole disk scan in renee undeleter](https://www.reneelab.com/wp-content/uploads/sites/2/2023/09/whole-disk-scan-1.png)
- Fast Partition Scan – Quickly retrieve files lost due to accidental deletion or emptying the recycle bin.
- Whole Partition Scan – Quickly recover files lost due to inaccessible or formatted partitions.
- Whole Disk Scan – Analyze and get partition information and perform a full scan of the entire partition.
- Image Creation – You can create a mirror image for a partition to back up the current partition state.
![select a disk to recover in renee undeleter](https://www.reneelab.com/wp-content/uploads/sites/2/2021/07/whole-disk-scan-2.png)
![recover files from whole disk scan with renee undeleter](https://www.reneelab.com/wp-content/uploads/sites/2/2021/07/recover-from-whole-disk-scan.png)
Relate Links :
How to boot from CD in Windows 10?
![](https://www.reneelab.com/images/avatar/en/2.png)
03-04-2024
Ashley S. Miller : Discover the straightforward process for booting directly from a CD in Windows 10, whether you're aiming to repair...
Easy Solutions for Fixing the error BOOTMGR is Compressed
![](https://www.reneelab.com/images/avatar/en/3.png)
01-03-2024
Jennifer Thatcher : Discover effective methods to resolve the "BOOTMGR is compressed" error on Windows PCs and retrieve inaccessible data without...
Fixing "Advapi32.dll Missing" Error on Windows System
![](https://www.reneelab.com/images/avatar/en/4.png)
09-12-2023
John Weaver : When you meet the error Advapi32.dll missing on your computer, you can fix it with the solutions presented...
Tips and Tricks for Solving KMODE_EXCEPTION_NOT_HANDLED on Blue Screen
![](https://www.reneelab.com/images/avatar/en/1.png)
03-04-2024
Amanda J. Brook : If you're facing the KMODE_EXCEPTION_NOT_HANDLED error on your Windows system, this guide offers a range of solutions to...