Wednesday, September 15, 2010

Code To Make Pen Drive Bootable For Window 7

Pen drive installation process for windows 7 is much faster than DVD/CD. There are some simple steps to make bootable pen drive which can be used for installing windows 7 in future as well. For this you need a pen drive having minimum space of 4 Gb and a files of Windows 7in a folder at your harddisk.Now just follow this steps:-

1. Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system. Then follow the following steps:
  • Run the command prompt as an Administrator
  • Now to find the drive number of your USB Drive, you need to type this and press enter every time.
    • diskpart
    • list disk
  • Here you can see the disk listed.Note down the disk number of your pendrive for the next step. Assume that the number is '1'.
  • Now type all these words to format the drive:
    • select disk 1
    • clean
    • create partition primary
    • select partition 1
    • active
    • format fs = NTFS Quick [Quick is used for quick format]
    • assign
    • exit
  • Now the disk partition program will exit and you’ll have a formatted USB flash drive ready to be made bootable.

2. Now to make the bootable pendrive, follow this steps:-
  • Now assume that Folder of Window7 Files is in G: Drive as Folder Named "Win7" and Pendrive as F
  •  Now type G:CD Win7
  • Now type G:\Win7\CD BOOT
  • Now type this command BOOTSECT.EXE /NT60 F: to update your USB drive with bootmgr code. Here F: is your pen drive letter.
  • Finally copy all the contents from the Windows 7 Folder to your Pendrive.

Here you have created the bootable pendrive. Now what you need is to make your BIOS to boot from USB.So foolow this steps:-
  • Insert your pendrive to the PC and reboot the system.
  • Now Enter the Bios system accordingly by pressing the key delete.This is where you’re on your own since every computer is different. Most BIOS’s allow you to hit a key at boot and select a boot option.
  • Now select the USB/ Pendrive as the first boot device.
  • Now save the settings in Bios and restart and you will be able to Install Windows 7 using that pendrive.

1 comment: