Breaking

Post Top Ad

Your Ad Spot

Sunday, October 14, 2018

How to Bootable Pen Drive with Coding


  1. Insert your USB flash drive to your running computer. As the first step, we need to run Command Prompt as administrator. To do this, we need to find cmd by typing 'cmd' in the search box on the Windows Start Menu. After search result for 'cmd' appears, right click on it and select "Run as administrator".
  2. Type 'diskpart' on Command Prompt (without quotes) and hit Enter. Wait for a while until the DISKPART program run.
  3. Type 'list disk' to view active disks on your computer and hit Enter. There would be seen that the active disks shown as Disk 0 for the hard drive and Disk 1 for your USB flash drive with its total capacity.
  4. Type 'select disk 1' to determine that disk 1 would be processed in the next step then hit Enter.
  5. Type 'clean' and hit Enter to remove all of the data in the drive.
  6. Type 'create partition primary' and hit Enter. Creating a primary partition and further recognized by Windows as 'partition 1'.
  7. Type 'select partition 1' a hit Enter. Choosing the 'partition 1' for setting up it as an active partition.
  8. Type 'active' and hit Enter. Activating current partition.
  9. Type 'format fs=ntfs quick' and hit Enter. Formatting current partition as NTFS file system quickly.
  10. Type 'exit' and hit Enter. Leaving DISKPART program but don't close the Command Prompt instead. We would still need it for the next process.

Step 2: Creating the Boot Sector

Let us assume that the flash / USB drive is the D: drive and the DVD installer located on drive F:. The first step, we will navigate Command Prompt to set installation DVD as its active directory.
  1. By default, Command Prompt's active directory for Administrator permission is on C:\Windows\System32>. We will navigate Command Prompt to set on DVD (F:) as its active directory. Just type 'f:' then hit Enter, and the active directory changed to F:.
  2. Type 'cd boot' and hit Enter. Active directory changed to F:\boot>.
  3. Type 'bootsect /nt60 d:' and hit Enter. Creating boot sector on D: drive (USB flash drive).
  4. Type 'exit' and hit Enter to close the Command Prompt. Until this step, we have made a bootable USB drive successfully, and the flash drive is ready to be used as a boot media.

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages