How to Build a Bootable USB Drive? or How to Install an Operating System from a USB Device?
How to Build a Bootable USB Drive? or How to Install an Operating System from a USB Device?
- Insert a USB flash drive into a running computer.
- Open a Command Prompt window as an administrator.
- Type diskpart.
- 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.
- At the command prompt, type select disk <X>, where X is the drive number or drive letter of the USB flash drive, and then click ENTER.
- Type clean, and the click ENTER. This command deletes all data from the USB flash drive.
- To create a new primary partition on the USB flash drive, type create part pri, and then click ENTER.
- To select the partition that you just created, type select part 1, and then click ENTER.
- To format the partition, type format fs=ntfs quick, and then click ENTER.
- Type active, and then click ENTER.
- Type exit, and then click ENTER.
- When you finish preparing your custom image, save it to the root of the USB flash drive.
Long version with screenshot etc
First, and this is a really, really, really, big thing. There is more than one way to accomplish this task. You can do the whole process manually, (Which I will demonstrate and document in a moment.) or you can download a tool and automate the whole process and have the benefit of using .ISO images. The automated process does not warrant a blog post. Download the Windows 7 USB/DVD download tool follow the 4 step process and you are in business (at least with windows7, I have not honestly tested the tool to see if you can install other OS’s.)
The manual process for building a USB drive to be used for operating system installations is as follows.
1. Get a USB Drive of sufficient size to contain the OS installation files you desire to install. (If you were going to install Windows 7 this drive woul dneed to be at least 4 GB in size for Windows 7 or 8 GB for Win 8.1 Pro or latest)
2. Make sure the drive is completely empty of its contents. (There should be absolutely nothing on it, if there is and you want to keep this stuff you need to move it elsewhere now.)
3. Plug your USB drive into a USB slot on your computer.
4. Make certain the drive is recognized, make a note of the drive letter. Mine happens to be E:\
5. Go to the start menu and USING ADMINISTRATOR CREDENTIALS open a command prompt. I right clicked on command prompt and chose to Run As Administrator.
6. Once your command prompt is open you are going to run a series of commands using the DiskPart utility.
Type DISKPART and hit Enter
The output form disk part will look like the image on the left.
7. Once DiskPart is open you need to decide which Disk is your USB drive. By default your internal hard disk was assigned the first ordinal disk number which is 0. if you have any additional internal disks they will be assigned then ext ordinal numbers 1, 2 etc. In my system and probably yours too I only have one internal disk and so I’m pretty confident that my USB drive is going to be assigned DIsk1. however we need to be certain so we type the following command.
Type LIST DISK and hit Enter
As you can see the output of the List Disk command shows each of the assigned disks. In this case you can see my internal hard disk and the USB disk. Make sure you verify the label of the disk with the size of your USB drive. In my case the USB disk is in fact DISK 1.
8. Now that we have DiskPart running and we have identified the USB disk we are going to run a series of commands. Each command is entered and run until it is completed before executing the next command. For simplicity sake I will document each command in order of operation and then show the output of the commands in a single image.
Type Select Disk 1 and then hit Enter
Type Clean and then hit Enter
Type Create Partition Primary and then hit Enter
Type Select Partition 1 and then hit Enter
Type Active and then hit Enter
Type Format FS=NTFS and then hit Enter
Type Assign and then hit Enter
Type EXIT and then hit Enter
9. Keep the command prompt open because we aren’t finished quite yet. While we have the drive prepped we don’t actually have anything on it to install. At this point you need to put the DVD of whatever it is you want to install into your DVD drive. I am going to assume you are installing a windows operating system. If that is the case you will go back to you command prompt and change to the DVD drive to a directory called BOOT on the DVD.
Type D: cd boot and then hit Enter
Type Bootsect.exe /nt60 E: and then hit Enter
10. Now your USB drive is ready for action. Just one last step. Using Windows Explorer go to the DVD and copy ALL of the files to the USB drive.
In my case the file copy took about 23 minutes give or take a few. Once the file copy is complete you have a USB drive that is ready to install operating systems.
At this point you must be certain that the BIOS on the device that you are going to be installing to has been configured to boot from the usb device. I put it first in the boot order. Other than that one small change to the hardware you are ready to go. Happy installing!
Useful link:
How to Install Windows 8.1 without a Product Key