How to make a Bootable USB flash drive using Command Prompt

ALL Commands

  1. diskpart
  2. list disk
  3. select disk #(here # is drive no)
  4. clean
  5. create partition primary
  6. select partition 1
  7. format fs=ntfs quick (only for NTFS usb file system)
  8. format fs=fat32 (only for FAT32 usb file system)
  9. assign
  10. active
  11. exit
  12. exit

How to create a Bootable USB Flash Drive

  1. Insert a USB flash drive into a running computer.
  2. Open a Command Prompt window as an administrator.
  3. Type Diskpart.
  4. In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type list disk and then click ENTER. The list disk command displays all the disks on the computer. Note the drive number or drive letter of the USB flash drive.
  5. At the command prompt, type select disk # where # is the drive number or drive letter of the USB (e.g select disk 1)flash drive, and then click ENTER.
  6. Type clean and the click ENTER. This command deletes all data from the USB flash drive.
  7. To create a new primary partition on the USB flash drive, type create partition primary and then click ENTER.
  8. To select the partition that you just created, type select part 1 and then click ENTER.
  9. To format the partition, type format fs=ntfs quick and then click ENTER.
  10. If your server platform supports Unified Extensible Firmware Interface (UEFI), you should format the USB flash drive as FAT32 rather than as NTFS. To format the partition as FAT32, type format fs=fat32 quick and then click ENTER.
  11. Type assign and then click ENTER.
  12. Type active and then click ENTER.
  13. Type exit and then click ENTER.
  14. When you finish preparing your custom image, save it to the root of the USB flash drive.

No comments

Theme images by rusm. Powered by Blogger.