Author: Greg Shultz, July 27, 2011, 12:25 AM PDT
In a recent 10 Things blog, “10 Cool Things You Can Do with a USB Flash Drive,” I presented 10 tasks that you can perform with a flash drive, including booting an operating system. However, I have since discovered a technique on the Microsoft TechNet Magazine site that describes how you can use a USB flash drive to install Windows 7.
This technique is very cool for two reasons: First, a flash drive is much more responsive than an optical drive, since it doesn’t rely on physically moving components, so the installation procedure will be faster. Second, it provides an easy way to install Microsoft Windows 7 on a system that doesn’t have a DVD drive, such as a netbook.
Since this technique would be a valuable addition to the 10 Things list as well as to users planning on installing Windows 7 on a netbook or who want to be able to quickly and easily install Windows 7, such as the Family Pack, on multiple systems without having to mess around with a DVD, I thought that I would examine the technique.
In this edition of the Windows Vista and Windows 7 Report, I’ll show you how to use the DiskPart utility to configure a bootable USB flash drive that you can then use to install the Microsoft Windows 7 operating system.
This blog post is also available in PDF format in a free TechRepublic download.
Getting startedOf course, in order to employ this technique you’ll need a USB flash drive that is big enough to hold the contents of the Windows 7 DVD. The Windows 7 RC DVD is about 2.5GB, and you can expect that the RTM DVD will be at least that if not more. For my test system I am using a 4GB USB flash drive.
Keep in mind that the procedure we will use will completely reformat the USB flash drive. So you want to make sure that you back up any data that you have on the drive before you begin.
The systems on which you want to install Windows 7 via the USB flash drive have to be able to be configured to boot from a USB drive. Most new systems have the capability to boot from a USB flash drive, and the operation can usually be configured in the BIOS or by simply pressing a certain key during bootup. You’ll need to check your specific hardware in order to be sure.
Using the DiskPart utilityAs you may know, the DiskPart utility is a command-line version of the Disk Management snap-in and is designed to allow you to manage disks, partitions, or volumes from within scripts or directly from a command prompt. We can use the DiskPart command in Windows Vista or in Windows 7 to configure a USB flash drive to be a bootable device. (Keep in mind that Windows XP’s DiskPart command is unable to create a bootable USB flash drive.)
To begin, connect your USB flash drive to a computer on which you will be preparing the drive. For my example, I’ll be using a Windows Vista system.
Now, locate the command Prompt shortcut on the Start menu, right-click on it, and select the Run as Administrator command. Then, respond appropriately to the UAC. You can now launch the DiskPart utility by typing DiskPart on the command line. You’ll then see the DISKPART prompt, as shown in Figure A.
DiskPart has its own command-line environment complete with a special prompt.Now that you’re in the DiskPart environment, you’ll need to locate the USB flash drive using the List Disk command. As you can see in Figure B, the List Disk command has identified my USB flash drive as Disk 5. I can verify that my USB flash drive is indeed Disk 5 by checking the Size column, which lists the size as 3906MB, which is roughly 4GB.
Using the List Disk command displays all the disks in the system.(If you have difficulty identifying your USB flash drive using the List Disk command, you can try the List Volume command, which will provide the drive letter as well as the label, both of which can help you to identify the drive.)
Once you identify the drive number of your USB flash drive, you will need to set the focus of the DiskPart environment on that disk. (This is an extremely important step–Make sure that you select the correct drive or you could accidentally destroy valuable data!) On my example, the USB flash drive is Disk 5, so I will use the command Select Disk 5, as shown in Figure C.
Post a Comment