How to Make Pendrive Bootable Using CMD in Windows 10, 8, 7?
How to Make Pendrive Bootable Using CMD in Windows 10, 8, 7?
Geeks - Creating a bootable USB drive allows you to install an operating system (OS) from the USB drive directly. This is useful if you want to install an OS on a computer that does not have a CD/DVD drive or if you want to install an OS on multiple computers at once. In this article, we will show you how to make a USB drive bootable using the Command Prompt (CMD) in Windows 10, 8, and 7.
Before you begin, you will need the following:
A USB drive with at least 4GB of storage
An ISO file of the OS you want to install (e.g. Windows 10, Linux)
Insert the USB drive into your computer.
Open the Start menu and type "cmd". Right-click on "Command Prompt" and select "Run as administrator".
In the Command Prompt window, type the following command and press Enter:
Copy code
diskpart
This will open the DiskPart tool, which is a command-line utility for managing disks, partitions, and volumes in Windows.
Type the following command and press Enter:
Copy code
list disk
This will display a list of disks attached to your computer. Take note of the number of the USB drive (it should be the one with the largest capacity).
Type the following command and press Enter:
Copy code
select disk X
Replace "X" with the number of the USB drive. This will select the USB drive as the target disk.
Type the following command and press Enter:
Copy code
clean
This will erase all the data on the USB drive and prepare it for the OS installation.
Type the following command and press Enter:
Copy code
create partition primary
This will create a new primary partition on the USB drive.
Type the following command and press Enter:
Copy code
select partition 1
This will select the newly created partition as the target partition.
Type the following command and press Enter:
Copy code
active
This will mark the partition as active, which is required for booting the USB drive.
Type the following command and press Enter:
Copy code
format fs=ntfs quick
This will format the partition with the NTFS file system and quick format option.
Type the following command and press Enter:
Copy code
assign
This will assign a drive letter to the partition, making it accessible in Windows Explorer.
Type the following command and press Enter:
Copy code
exit
This will exit the DiskPart tool.
In the Command Prompt window, type the following command and press Enter:
Copy code
xcopy /s /h /f <path to ISO file> <drive letter>:
Replace "<path to ISO file
·