Making a Specific Volume Bootable using CMD in Windows 10
In this article, we will discuss the steps to make a specific volume bootable using the Command Prompt (CMD) in Windows 10. This process is useful when you want to install a new operating system or recover a non-bootable system. Before we begin, it is important to note that this process requires administrative privileges, so make sure you are logged in as an administrator.
Identifying the Volume
The first step is to identify the volume that you want to make bootable. To do this, open the Command Prompt by searching for "CMD" in the Start menu, right-click on it, and select "Run as administrator". Once the Command Prompt is open, type the following command and press Enter:
diskpartThis will open the DiskPart utility. Now, type the following command and press Enter:
list volumeThis will display a list of all the volumes on your system. Identify the volume that you want to make bootable by looking at the "Volume ###" and "Label" columns. Once you have identified the volume, note down its drive letter and volume number.
Preparing the Volume
Now that you have identified the volume, the next step is to prepare it for making it bootable. To do this, type the following command in the Command Prompt and press Enter:
select volume Replace
select volume 0Once you have selected the volume, type the following command and press Enter:
cleanThis will erase all the data on the volume and prepare it for making it bootable. Be careful while using this command, as it will permanently erase all the data on the volume.
Creating a Primary Partition
Now that the volume is prepared, the next step is to create a primary partition on it. To do this, type the following command and press Enter:
create partition primaryThis will create a primary partition on the volume. Now, type the following command and press Enter to select the partition:
select partition 1Replace "1" with the number of the partition that you just created. For example, if it is the first partition, the command would be:
select partition 1Formatting the Partition
Now that the primary partition is created, the next step is to format it. To do this, type the following command and press Enter:
format fs=ntfs quickThis will format the partition as NTFS. The "quick" option will speed up the formatting process by skipping some of the checks. Once the partition is formatted, type the following command and press Enter to assign it a drive letter:
assign letter=Replace
assign letter=FMaking the Partition Active
Now that the partition is formatted and assigned a drive letter, the final step is to make it active. To do this, type the following command and press Enter:
activeCopying the Boot Files
Now that the partition is made active, the final step is to copy the boot files to it. To do this, type the following command and press Enter:
bcdboot /s : Replace
bcdboot C:\Windows /s F:This will copy the boot files to the active partition. Now, you can restart your computer, and it will boot from the new bootable volume.
- Open the Command Prompt as an administrator.
- Identify the volume that you want to make bootable using the
list volumecommand. - Prepare the volume using the
cleancommand. - Create a primary partition using the
create partition primarycommand. - Format the partition using the
format fs=ntfs quickcommand. - Assign a drive letter to the partition using the
assign letter=command. - Make the partition active using the
activecommand. - Copy the boot files to the active partition using the
bcdbootcommand./s :
References
- Microsoft. (2021). Diskpart Command-Line Utility. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart
- Microsoft. (2021). Format Command-Line Utility. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/format
- Microsoft. (2021). Assign Command-Line Utility. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/assign
- Microsoft. (2021). Active Command-Line Utility. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/active
- Microsoft. (2021). Bcdboot Command-Line Utility. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/bcdboot