- Free Partition Software
How to Change Partition Type ID Easily? (2 Ways Included)
Are you in need of changing partition type ID in Windows? Read this article thoroughly to get two efficient methods to modify partition type ID.
About partition type ID
- How to change partition type ID in Windows 10/8/7 easily?
- - Solution 1: change partition type ID with a powerful utility
- - Solution 2: set partition type ID via Diskpart
Most computer users may be familiar with partitions and partition types. Actually, there are five partition types: primary, extensible firmware interface (EFI), extended, logical, and Microsoft Reserved (MSR). How about partition type ID? It is a byte value intended to specify the file system a partition contains and/or to flag the special access method used to access the partition.
For MBR disks, the value for the type field is in hexadecimal form. Following are the frequently-used type IDs for MBR-based partitions:
● 0x01 FAT12 ● 0x04 FAT16, less than 32 MB ● 0x06 FAT16, greater than 32 MB ● 0x07 NTFS ● 0x0B FAT32, used by DOS & Win95 ● 0x0C FAT32 using LBA mode to access to FAT32 partition ● 0x0E FAT16 using LBA mode to access to FAT16 partition
For GPT disks, the value for the type field is a long string. Recognized GUIDs include:
◆ EFI system partition: c12a7328-f81f-11d2-ba4b-00a0c93ec93b ◆ Basic data partition: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 ◆ Learn more…
Why would someone like to change a partition type ID? Actually, changing type ID is a good way to prevent the system using or initializing partitions. Read on to find out how to change partition type ID in Windows 10/8/7 efficiently.
How to change partition type ID in Windows 11/10/8/7 easily?
Here I’m going to show you two efficient solutions to change partition type ID in Windows 11/10/8/7. You can set partition type ID in Windows 11/8/7 with the same methods.
Solution 1: change partition type ID with a powerful utility
With a reliable, specialized utility, you will save much time and efforts. AOMEI Partition Assistant Professional is such a tool you need. It is an all-around partition manager which helps you to move, merge, split and resize partitions . It also offers you the disk conversion feature, such as converting dynamic disk to basic, converting GPT disk to MBR and MBR disk to GPT, etc.
It supports all Windows PC operating systems like Windows 11/10/8.1/8/7/Vista/XP. If you are running Windows Server, please turn to the Server edition. Now follow the instructions below to modify partition type ID via AOMEI Partition Assistant:
Step 1. Install and launch AOMEI Partition Assistant. Right click the drive of which you want to change partition type ID, select “Advanced” and then “Change Partition Type ID”.
Step 2. In the pop up window, select the new partition type ID and click “OK” to save the change.
Step 3. Click “Apply” to view pending operation and then “Proceed” to commit the operation.
✎ Notes: ● Changing partition type ID is unavailable for GPT disk partitions in AOMEI Partition Assistant. However, you are allowed to convert between GPT and MBR disks without deleting any partitions. ● The program won’t delete files while changing partition type ID, so you needn’t be worried about data loss.
Solution 2: Set partition type ID via Diskpart
Some people prefer to use DiskPart to change partition ID with the command: set id. Detailed steps are listed as below:
1. Press Windows Key + R to open the Run dialogue. Type diskpart and click “OK” or press Enter to run Diskpart.
2. Type list volume and press Enter.
3. Type select volume # (ex: volume 8) and press Enter to select the volume/partition of which you want to change partition type ID.
4. Type set id=# (ex: id=0B) and press Enter to set a new partition type ID.
( Tips: The leading “0x” of the ID is omitted when specifying the hexadecimal partition type.)
5. Type exit and press Enter to exit Diskpart.
You have learned two efficient ways to change partition type ID in Windows 11/10/8/7. Apart from setting partition type ID, you can use AOMEI Partition Assistant to remove write protection on micro SD card Samsung , change serial number, migrate OS to SSD, change file systems between FAT32 and NTFS without formatting, etc. Go for this tool and enjoy all the wonderful features right now!
Free Partition Manager
- Resize and Move Partition
- System/Disk Clone
- Convert MBR/GPT Disk
- Check & Fix Disk Errors
Still Need Help?
Have your problem been solved? If not, please input query in the search box below.
- Forums New posts Search forums
- What's new New posts Latest activity
- Members Current visitors
- GPU nostalgia hitting during this festive season? Good news: we've ranked the 5 best AMD graphics cards of all time!
- You're not going to believe this, but we've ALSO ranked the 5 best Nvidia graphics cards in history!
How to change partition numbers?
- Thread starter pirc
- Start date Feb 7, 2016
- Feb 7, 2016
So I make a clone of my C: drive with the Win 10 OS onto an ext drive which had one partition of backup files. Obviously, Macrium left the original partition as Partition 1 and placed the OS as Partition 2 and 3 (3 being system reserved from the C: drive). How can I reorder these partitions so that Partition 1 is OS, 2 is System reserved, and 3 is the original file backup partition. Is a there a utility is disk part or something else I can use for this? Thank you!
- Feb 8, 2016
[quotemsg=17462932,0,2020268][quotemsg=17462913,0,517745]As far as I know you can't "renumber" partitions. The number indicates the address space on the disk used for that partition, i.e. the lowest numbered partition uses the lowest set of contiguous addresses on the disk, the middle uses the next higher address space, and the highest number the highest address spaces used.[/quotemsg] So is the clone useless then? I guess what i'm getting at is if my current C: drive fails and I clone the cloned drive to the drive I replace C: with, will it still boot and number the OS partition as one (as long as I don't also clone the backup files partition to the replacement drive)?[/quotemsg] The partition table has more info than just the sector numbers of the partitions. One of those things is a "boot...
As far as I know you can't "renumber" partitions. The number indicates the address space on the disk used for that partition, i.e. the lowest numbered partition uses the lowest set of contiguous addresses on the disk, the middle uses the next higher address space, and the highest number the highest address spaces used.
[quotemsg=17462913,0,517745]As far as I know you can't "renumber" partitions. The number indicates the address space on the disk used for that partition, i.e. the lowest numbered partition uses the lowest set of contiguous addresses on the disk, the middle uses the next higher address space, and the highest number the highest address spaces used.[/quotemsg] So is the clone useless then? I guess what i'm getting at is if my current C: drive fails and I clone the cloned drive to the drive I replace C: with, will it still boot and number the OS partition as one (as long as I don't also clone the backup files partition to the replacement drive)?
First off Windows doesn't boot from an external drive. In case of disaster, you boot with your Macrium Boot Flash, then tell Macrium to restore whatever partition of interest from the external, you just click-select it, and then highlight your Boot partition (which is now sick), and Macrium will bring the backup over and replace entirely over the sick partition. <Answer deselected by moderator at OP request>
[quotemsg=17463033,0,1687658]First off Windows doesn't boot from an external drive. In case of disaster, you boot with your Macrium Boot Flash, then tell Macrium to restore whatever partition of interest from the external, you just click-select it, and then highlight your Boot partition (which is now sick), and Macrium will bring the backup over and replace entirely over the sick partition.[/quotemsg] I'm not trying to boot from ext. If my ssd fails and I need a new one I can clone the clone copy from the HDD ext onto the new ssd rather than reloading and clean installing and then setting up every single program. Literally plug and play. Your reply is great information, but not the information I'm looking for. It was selected as solution accidentally.
Your original post worried about a partition number, I hope my initial response told you, partition number not a concern. Now you have additional new concerns which I will reply hoping am not interpreting your new request incorrectly. Say you Boot partition is C: and there you have your OS and also installed your Apps there. A Macrium Image backup copies EVERYTHING in C: so no, you don't have to re-install your Apps. Your OS, with all its settings intact and the installed App will appear EXACTLY as it was the day you performed this image backup. Now as some people do, they install OS on C: but they have a small SSD and install their Apps on D:, then in order for you to be able to restore EVERYTHNG WITHOUT RE-INSTALLING ANYTHING, then your need to Macrium image backup C: as well as D: I dunno whether Macrium has the ability to backup 2 partitions as 1, that I haven't tried.
[quotemsg=17462932,0,2020268][quotemsg=17462913,0,517745]As far as I know you can't "renumber" partitions. The number indicates the address space on the disk used for that partition, i.e. the lowest numbered partition uses the lowest set of contiguous addresses on the disk, the middle uses the next higher address space, and the highest number the highest address spaces used.[/quotemsg] So is the clone useless then? I guess what i'm getting at is if my current C: drive fails and I clone the cloned drive to the drive I replace C: with, will it still boot and number the OS partition as one (as long as I don't also clone the backup files partition to the replacement drive)?[/quotemsg] If your drive fails, all the partitions will fail, but if it is just a logic error on the disk, you can format C:, install the backup and it will run as before.
[quotemsg=17462932,0,2020268][quotemsg=17462913,0,517745]As far as I know you can't "renumber" partitions. The number indicates the address space on the disk used for that partition, i.e. the lowest numbered partition uses the lowest set of contiguous addresses on the disk, the middle uses the next higher address space, and the highest number the highest address spaces used.[/quotemsg] So is the clone useless then? I guess what i'm getting at is if my current C: drive fails and I clone the cloned drive to the drive I replace C: with, will it still boot and number the OS partition as one (as long as I don't also clone the backup files partition to the replacement drive)?[/quotemsg] The partition table has more info than just the sector numbers of the partitions. One of those things is a "boot partition" flag which tells the BIOS which partition to use to boot the machine. So partition number isn't a factor. Some utilities allow you to set or clear the boot partition flags so that can cause problems if you don't do it correctly. You could have no boot partition or you could have multiple boot partitions. In the latter case it will boot from the first partition that it finds that has the boot partition flag set. It doesn't sound like that will be a problem for you since you are using backup software. Just to clear up one other thing: drive letters (C:, D:, etc) are logical drive identifiers that are assigned at boot time to partitions by the OS. One physical drive with multiple usable partitions will have multiple drive letters assigned that access those partitions. It can get confusing when you refer to a drive letter as the physical drive. Physical drives have numeric identifiers (0, 1, 2, etc.) that are assigned by the BIOS at boot time as it finds them. Typically this is in the sequence of the data ports, i.e. SATA_1, SATA_2, SATA_3, etc. It looks for fixed media (SSD, HDD) first, then removable media like CD/DVD, USB, floppy disk, etc. Here are some scenarios: SATA_1->SSD->drive 0->only one partition=C: SATA_2->HDD->drive 1->only one partition=D: SATA_3->CD/DVD->drive 2->E: SATA_1->HDD->drive 0->two partitions=C:, D: SATA_2->HDD->drive 1->only one partition=E: SATA_3->CD/DVD->drive 2=F: SATA_1->SSD->drive 0->only one partition=C: SATA_2->HDD->drive 1->two partitions=D:, E: SATA_3->CD/DVD->drive 2=F: USB=G: (note: when you insert a USB drive after boot it is assigned the first unused drive letter by the OS) Technically speaking, an external hard drive is removable media since it can be unplugged or powered down at any time. Floppy drives are pretty rare these days but all early DOS machines had them and drive letters A: and B: are reserved for floppy drives. That's why the other logical drives start at C:
- Aug 28, 2023
- Jun 18, 2023
- Jul 23, 2023
- Feb 15, 2023
- Aug 16, 2023
- Started by Admin
- Sunday at 7:45 AM
- Replies: 116
- Wednesday at 3:30 PM
- Replies: 32
- Tuesday at 6:41 AM
- Replies: 87
- Started by amco_krkic
- Today at 3:09 AM
- Started by tecmo34
- Apr 30, 2011
- Replies: 5K
- Started by Darkbreeze
- Jan 8, 2018
- Replies: 2K
- Started by JorMan
- Yesterday at 11:15 PM
- Latest: melac
- A moment ago
- Latest: mightmaster92
- 1 minute ago
- Latest: Lutfij
- 35 minutes ago
- Latest: NoGagMaestro
- 46 minutes ago
- 53 minutes ago
- Today at 3:29 AM
- Latest: ubuysa
- Today at 3:28 AM
Share this page
- Cookies Policies
- Term & Conditions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
set id (Diskpart)
- 9 contributors
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Changes the partition type field for the partition with focus. This command doesn't work on dynamic disks or on Microsoft Reserved partitions.
This command is intended for use by original equipment manufacturers (OEMs) only. Changing partition type fields with this parameter might cause your computer to fail or be unable to boot. Unless you are an OEM or experienced with gpt disks, you should not change partition type fields on gpt disks by using this parameter. Instead, always use the create partition efi command to create EFI system partitions, the create partition msr command to create Microsoft Reserved partitions, and the create partition primary command without the ID parameter to create primary partitions on gpt disks.
- Other than the limitations previously mentioned, DiskPart doesn't check the validity of the value that you specify (except to ensure that it is a byte in hexadecimal form or a GUID).
To set the type field to 0x07 and force the file system to dismount, type:
To set the type field to be a basic data partition, type:
- Command-Line Syntax Key
Submit and view feedback for
How to Change Partition to Primary Using Diskpart
Primary partition vs logical partition.
Before learning how to change logical partition to primary using diskpart command line, it is necessary to understand what a primary partition and a logical partition are.
Primary partition: It is a hard disk partition generally used to install the Windows operating system or store files necessary for operating system startup. Only the primary partition can be set as the active partition to complete a series of operations such as handover of startup tasks with the BIOS to boot the system. MBR disks can have up to four primary partitions, and GPT disks support 128 primary partitions.
Logical partition: A logical partition is an MBR hard disk partition created in an extended partition. It cannot be set to active status, which means that it cannot be used to boot the system. Logical partitions are generally used to store personal data.
Also Read: Primary Partition VS. Logical Drive: Their Exact Features
Next, we are going to show you how to change partition to primary using diskpart.
How to Convert Logical Partition to Primary Partition Using CMD
Diskpart is a Windows built-in partitioning utility that helps you manage your disks and partitions by using command lines. With diskpart, you can create primary/logical partitions, delete partitions, assign a partition drive letter, format a partition, etc.
Listed below are the steps to convert partition to primary diskpart.
MiniTool ShadowMaker Trial Click to Download 100% Clean & Safe
Step 1. Press the Windows + R key combination to open the run window.
Step 2. In the input box, type diskpart and click OK . Then select Yes in the pop-up UAC window.
Step 3. In the diskpart window, type the following commands. You need to press Enter after each command.
- select disk # ( # represents the disk number listed on the screen containing the partition to be converted to the primary partition)
- list partition
- select partition # (replace # with the partition number of the logical partition that you want to change to primary)
- delete partition
- create partition primary
As mentioned before, although you can use diskpart to change a logical partition to primary, this method will cause all data on the logical partition to be deleted. Is there a way to convert logical partition to primary without data loss? Fortunately, the answer is Yes. Keep reading to get the steps.
MiniTool Power Data Recovery Free Click to Download 100% Clean & Safe
This post shows you how to check disk partitions in Windows 10. Besides, you can learn how to recover deleted/lost drive partitions here.
Diskpart Alternative to Change Logical Partition to Primary
To convert a logical partition to primary or vice versa without deleting files, MiniTool Partition Wizard is the best choice.
This partition manager excels at creating/deleting/resizing/moving/splitting/formatting partitions. Besides, with this reliable disk management tool, you can clone Windows 10 to SSD , convert MBR to GPT, change the file system, etc.
Here are the steps to change the logical partition to primary .
Step 1. Download, install, and launch MiniTool Partition Wizard Free.
MiniTool Partition Wizard Free Click to Download 100% Clean & Safe
Step 2. On its home page, select the logical partition. Then pull down the left menu bar to select Set Partition as Primary .
Step 3. Finally, click the Apply button in the lower left corner to make this change take effect.
MiniTool Partition Wizard is a good option for changing logical partitions to primary without losing my data. Click to Tweet
Is it possible to delete/remove unallocated space in Windows 10? The answer is Yes. This guide will show you how to delete unallocated space.
In a word, this post provides you with detailed instructions to change partition to primary using diskpart. Besides, if you need to recover lost data from the original logical partition, you can use MiniTool Power Data Recovery.
Also, you can use MiniTool Partition Wizard Free to convert logical partitions to primary or vice versa.
Should you have any questions when using MiniTool software, feel free to send an email to [email protected] .
About The Author
- Search the community and support articles
- Search Community member
Ask a new question
how to renumber partitions
a friend of mine has UEFI windows 10 21H2,
disk0 partitions layout were System , MSR , Windows , Recovery , "D" Partition , "E" Partition,
Recovery was Partition number 4, "match location sequence"
He asked me to reduce windows partition size from 2 TB to .5 TB, I did that with third parity program AOMEI,
AOMEI made the changes and for unknown reason changed Recovery partition ID, So System didn't recognize the partition as a recovery partition,
I deleted the partition, and recreated again with the correct parameters and reconfigured Recovery environment successfully,
but recovery partition became number 6, it's located after windows partition number 3 but became number 6,
UEFI layout became System (1) , MSR (2) , Windows (3) , Recovery (6) , "D" (4) , 'E" (5),
is there any way to get back number 4 for Recovery ? without losing data for windows partition , "D" partition and "E" partition?
In brief how to renumber partitions according to it's correct sequence?
Replies (4) .
- Microsoft Agent |
Welcome to post in Microsoft Community. I'm Mosken, let me help you figure it out.
According to your description, I knew that after you change the size of your system partition, the partition numbers on your disk are messed up. Is that right?
First, can you take a screenshot of your current interface in Disk Management , and only send the relevant information to me in the next reply, so as to solve the problem faster and better.
I tried to reproduce your problem and found that ordinary Windows partitions (such as system partition, D drive, E drive) do not have the numbers you mentioned, only in the Windows boot partition and reserved partition will there be disk 0 partition 1 , disk 0 partition 2 , etc. numbering. Therefore, your disk status may not be the default of Windows, and we cannot make specific analysis and provide further technical support for the operation results of third-party software, so please provide us with more detailed information.
And I'm sorry that for now there is no solid solution to this issue , and changes in partition numbers will not necessarily affect your system .
Below are some links related to Windows disk partitions, I hope they will help you.
Change a drive letter | Microsoft Docs
Overview of Disk Management | Microsoft Docs
The above steps are provided based on the information I have learned so far, I wish that will be helpful to you. If your problem still cannot be solved by these steps, you could tell me the specific situation in the next reply. I will continue to assist you in solving the problem.
Mosken- MSFT | Microsoft Community Support Specialist
Was this reply helpful? Yes No
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
Thanks for your feedback.
1) Open disk management: by default rows and columns are compressed and characters are cut off
a) Widen these rows: disk 0, disk 1, disk 2, etc > make sure that no characters are cut off
b) Widen these columns: Status and Volume > make sure that no characters are cut off
Post an image or share link into this thread using one drive, drop box, or google drive.
(bat scripts by design will prompt AV software and require manual overrides)
Post share links into this thread using one drive, drop box, or google drive.
Next time I will visit my friend, I will provide you screenshut of current interface in disk management.
Still haven't answer how to renumber partitions according to it's correct sequence?
Disk management typically does not display hidden partitions.
If possible, run the scrips posted in the earlier post and post share links into this thread.
If a thread is inactive for a substantial period of time members may not get the update.
If that occurs then open another thread making note of this thread.
- Windows update, recovery, and backup
- Norsk Bokmål
- Backup & Recovery
- Hard Disk Manager
- HFS+ for Windows
- ExtFS for Windows
- Disk Wiper Professional
- Drive Copy Professional
- Migrate OS to SSD
- Paragon Alignment Tool Professional
- NTFS for Mac
- Hard Disk Manager for Mac
- ExtFS for Mac
[How to] Make partition Active or Inactive using DISKPART
The system will boot from the partition only if it has Active flag set.
To make partition Active:
- Run Command Prompt as Administrator
select disk #
select partition #
To remove Active flag:
Enter your email and receive updates about special offers and exclusive content!
Connect with us for giveaways, exclusive promotions and last news!
How to Use DiskPart Utility in Windows
Format, resize, extend and manage your drives
The Disk Management Tool is a useful, effective tool for managing your Windows disks and partitions, but it isn’t as powerful to use as Diskpart. This command-line tool lets you delete, create and modify partitions on any hard drives or USB storage your PC can detect.
We’d recommend using the Disk Management Tool for most situations, but if Windows isn’t starting up properly, or if you prefer to use the PowerShell terminal , Diskpart is the perfect alternative. Here are some of the more common Diskpart commands to help you learn how to use Diskpart effectively.
How To Use Diskpart
If you want to use Diskpart, you need to open up a Windows command line or PowerShell terminal. Diskpart is a destructive tool, so you’ll need to open a terminal window with the right administrative privileges.
- To open Diskpart in Windows, right-click your Windows Start menu button and click Windows PowerShell (Admin) .
- In your admin-level PowerShell terminal (or similar Windows command line), type diskpart and hit enter.
- The Diskpart tool will launch within the window, ready for you to use. Type exit at the “DISKPART>” prompt and hit enter once you’ve finished using it.
- Diskpart is also available for users booting into the Windows Recovery Environment, available when you boot your PC using the Advanced Startup mode in your Settings > Windows Update & Security > Recovery menu.
- Click Restart Now to boot to WinRE.
We’ll explore some of the most common Diskpart commands in this article, but if you want to quickly see the full list of available Diskpart commands, type help at the “DISKPART>” prompt and hit enter.
Listing Existing Hard Drives, Volumes & Partitions
Once Diskpart is open, the first thing you should do is check the current layout of your hard drives and attached storage.
- At the “DISKPART>” prompt, type list disk and hit enter. This will list all of the available storage drives (including hard drives, USB storage, SD cards, etc.) that your PC can currently detect.
- Starting with the number zero, Diskpart will list any detected disks. You’ll need to remember the disk number (for instance, “0” for your Windows hard drive) to use with future Diskpart commands.
- Along with your list of disks, you can also ask Diskpart for a list of detected volumes. At the “DISKPART>” prompt, type list volume .
- Diskpart can also let you list individual hard drive partitions (some of which may match the volumes listed with the “list volume” command). You’ll need to select a hard disk first with the list disk command.
- At the “DISKPART>” prompt, type select disk followed by the disk number (for instance, select disk 0 ). Diskpart will confirm that the disk is selected at this point.
- Once a disk is selected, type list partition . This will list the current partitions on your drive. You’ll be able to delete or modify these partitions from here, using the partition number in a later Diskpart command.
Deleting a Hard Drive Partition Or Volume Using Diskpart
A hard drive (disk) is separated into partitions, which are often the same as listed volumes. If your hard drive is separated into several partitions or volumes, and you wish to delete one, you can do that using Diskpart commands.
- Select your hard drive using select disk.
- At the “DISKPART>” prompt, type list partition , then select partition # , replacing # with your partition number.
- Once a partition is selected, type delete partition . Diskpart will confirm whether or not the partition has been deleted afterward.
- You can also delete disk volumes directly if you’d prefer. Type list volume , locate your chosen volume number, then type select volume # , replacing # with your volume number.
- Type delete volume to delete the volume completely. Diskpart will confirm if the command was successful or not afterward.
Wiping a Hard Drive Completely Using Diskpart Clean
Rather than removing individual volumes or partitions on a drive, you can wipe a hard drive completely using the Diskpart clean command. You can also use this command if you’re looking to wipe a USB flash drive, ready for formatting.
You won’t be able to do this on your system drive (nor would you want to!) unless you’re using Diskpart on a Windows installation
- At the “DISKPART>” prompt, select the disk you wish to wipe by typing select disk # , replacing # with your disk number. If you don’t know your disk number, type list disk first.
- If you’re sure you want to wipe the disk completely (deleting all drive volumes/partitions), then type clean and hit enter. You won’t be asked for confirmation, so be sure you wish to do this before you begin.
- Diskpart will confirm that the drive has been “cleaned”, ready for new partitions to be created.
Creating & Formatting New Hard Drive Partitions
With a “clean” drive, you’re ready to create a partition in the free space using the Diskpart create partition command. You can then format that new partition with a Windows-friendly file system like NTFS or FAT32 using the Diskpart format command.
- Start by selecting your chosen disk with select disk #, replacing # with your disk number (and using list disk to find your disk number, if you don’t know.)
- With your disk selected, type create partition primary to create a partition using the entire space on that drive.
- If you want to create a partition to take up only some of the free space (letting you create more than one partition), type create partition primary size=X instead, replacing X with the partition size, measured in megabytes (for example, size=1024 for 1GB of space).
- Type list partition to make sure that your new partition is listed, then type select partition 1 to select it. Mark the partition as active by typing active at the “DISKPART>” prompt. This is necessary if you want to use it as a bootable drive.
- To quickly format the drive with the NTFS file system, type format fs=NTFS label=Y quick. You can replace Y with any label you’d prefer to use.
- Once formatted, Windows will likely assign a drive letter automatically. If it doesn’t, type assign letter Z , replacing Z with a free drive letter.
Extend a Hard Drive Volume
If you have an existing hard drive volume that doesn’t take up all of the free space on a drive, and you wish to enlarge it, Diskpart commands allow you to do that.
- Type list volume to list all the available volumes on your PC, then type select volume # , replacing # with the volume you’re looking to extend.
- Type extend to expand it to the maximum size available. Diskpart will confirm whether or not the extend command has worked correctly. Confirm the size of the volume has increased by typing list volume for a second time afterward.
Diskpart has other options available, as the help command briefly explains. If you need further information on how to use Diskpart, Microsoft has further Diskpart support information available.
Ben Stockton is a freelance technology writer based in the United Kingdom. In a past life, Ben was a college lecturer in the UK, training teens and adults. Since leaving the classroom, Ben has taken his teaching experience and applied it to writing tech how-to guides and tutorials, specialising in Linux, Windows, and Android. He has a degree in History and a postgraduate qualification in Computing. Read Ben's Full Bio