How to make a Bootable USB drive using command line
If you want to install windows / linux or any other operating system in your computer using a usb drive, the first condition is that your usb drive should be bootable. There are softwares available for this work but it can also be done using a command line / cmd without using any software. In order to make a usb bootable drive follow the following steps:
- Copy any data which is inside your usb drive / pen drive as all the data will be lost after making it bootable.
- Keep the data somewhere safe in your computer
- Click on start
- type cmd
- right click on it and click on run as administrator
- It will ask for computer password, type the password
- Something similar to this will open:
- Now type diskpart
- A new screen will open. Here type list disk. It will show all the disks available in your computer or attached to your computer. One will be your hard disk drive and the other will be your usb drive / pen drive
- Type select disk 1. Select your usb drive only, not hard disk drive.
- Type clean and press enter
- Type create partition primary and press enter
- Type select partition 1 and press enter
- Type active and press enter
- Type format fs=ntfs quick. It will start formatting your usb drive / pendrive. It may take some time.
- After format is complete, type assign and and press enter
- Type exit and and press enter
Your usb drive / pen drive is now bootable. Copy and paste anything inside it and will be used as a bootable disk.
Comments