RSS

Create Bootable USB to install Windows 7 or 8

25 Oct

There are many tools available on internet that help create a bootable USB/Flash drive to install Windows 7. But if you are running Windows 7 we can use built-in tools like diskpart to create a bootable USB drive without any third party tools.

All you need for this is a Windows 7 or 2008 R2 machine, a USB Flash drive with minimum of 4 GB capacity (Note that all data on this drive will be erased), Windows DVD and privilege to run command prompt in elevated mode.

Note:This post assumes you have only one physical hard disk on your machine and no other USB disks attached

First attach a USB flash drive to your system and if auto run kicks in close all related windows.

Fire up an elevated command prompt, invoke diskpart by typing diskpart at the command prompt and key in below commands one by one

list disk

select disk 1

clean

create partition primary

list partition

select partition 1

active

format quick

assign letter=m

exit

This finishes the USB disk preparation. Now key in the below command to copy the installation files of Windows 7/8/2008/2008R2/Server 8  to the above USB disk. Replace X: in below command with path to Windows installation files on hard drive or DVD drive on your machine

xcopy X:\*.* /s/e/f M:\

When the last command finishes, a bootable USB disk with Windows installation files is ready

01-CreateBootableUSBDisk

You can even create a batch file and automate the process without typing commands one by one. For this just create two files one a batch file with .bat extension and a text file with .txt extension. In my case I have created USBBoot.bat and USBBoot.txt on my E drive

Copy and paste below text to batch file (USBBoot.bat) and save (Note: Replace X: with the path where both the files are kept)

@echo off
DISKPART /s
X:\USBBoot.txt
xcopy H:\*.* /s/e/f M:\
pause
exit

Copy and paste below text to .txt file (USBBoot.txt) and save

SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT QUICK
ASSIGN LETTER=M
EXIT

Place both the above files in the same location and now launch the batch file from the elevated command prompt and sit back for the command to complete.

As you can see this process requires no third party tools or utilities and can be used on any Windows 7 and above machines.

Reference

Click here to learn more about diskpart

Click here for diskpart technet page

Note: Cross posted from Experience – Inspire – Contribute.
Permalink

Advertisement
 

About KrishnaChaitanya

Ah!! You are here, which means that you do want to know about me. The name's KrishnaChaitanya Ch & I live in Bangalore, INDIA after shifting from Hyderabad two years ago. Some say I am bad, some say am the one to be with, some like me, some hate me, Some come to me and some run from me. Some say I betrayed them and some say I helped them the most. However, Am a simple guy living in dreams and work to make them true some day and believe in " Great people dont do diffrent things, They do things differently " . Am a guy with many different moods. Am a WORKAHOLIC, I'm a GEEK, I live, breathe, sleep & talk INTERNET, Computers, Gizmos and all other Electronic gadgets and stuff. I spend a lot of time on INTERNET, gaining knowledge, learning new things & I'm happy with it. Most of the time I work with bleeding edge technology. I love surfing INTERNET & like to know a lot of new things from many good websites & believe me, though I've seen a lot of them, I'm still thirsty, b'coz, yeh dil mange more. Besides INTERNET, one thing that I can't do without is music. Relaxing, soothing music, indespensable. I watch movies too, whenever I can. I love reading. I also like to spend lot of time with friends. So, there you are. That's all I think there's to know about me
Leave a comment

Posted by on October 25, 2011 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.