To create a bootable USB Pendrive using MS-DOS commands, you'll need to use the "diskpart" utility built into Windows. Please note that using diskpart can potentially erase data on the selected USB drive, so ensure you have backed up any important data before proceeding. Here's a step-by-step guide:
1. Connect the USB Pendrive to your computer.
2. Open the Command Prompt with administrative privileges:
- Press Windows Key + X.
- Choose "Command Prompt (Admin)" or "Windows PowerShell (Admin)."
3. In the Command Prompt window, type `diskpart` and press Enter to start the diskpart utility. If you see a User Account Control (UAC) prompt, click "Yes" to allow administrative access.
4. Once inside the diskpart utility, type `list disk` and press Enter. This command will display a list of all the disks attached to your computer.
5. Identify your USB Pendrive from the list based on its size. Make sure you recognize the correct disk number; otherwise, you might accidentally format the wrong disk.
6. Select the USB Pendrive by typing `select disk X` (replace "X" with the appropriate disk number for your Pendrive) and press Enter.
7. To prepare the USB Pendrive for the bootable file system, enter the following commands one by one:
```
clean
create partition primary
select partition 1
active
format fs=fat32 quick
assign
```
Note: The "format fs=fat32 quick" command will quickly format the Pendrive with the FAT32 file system. If you prefer to use NTFS, you can replace "fat32" with "ntfs."
8. Now, you need to make the USB Pendrive bootable. Assuming you have a bootable ISO file (e.g., a Windows installation ISO) mounted or accessible on your computer, navigate to its directory using the Command Prompt.
9. Enter the following command to extract the contents of the ISO file to the USB Pendrive:
```
xcopy E:\*.* /s/e/f G:\
```
Replace "E:" with the drive letter of the mounted ISO file, and "G:" with the drive letter assigned to your USB Pendrive.
10. Once the copy process is complete, you can close the Command Prompt and safely eject the USB Pendrive.
Your Pendrive is now bootable, and you can use it to install the operating system or perform other bootable tasks. Remember to change the boot order in your computer's BIOS or UEFI settings to boot from the USB Pendrive when needed.
No comments:
Post a Comment