Real Time Web Analytics Create Bootable USB Thumb Drive (Key) Using Diskpart with Windows 8 Media to Install Windows 8 Release Preview or Other Operating System - ITProGuru Blog by Systems Management Expert Dan Stolts - Site Home - TechNet Blogs

Create Bootable USB Thumb Drive (Key) Using Diskpart with Windows 8 Media to Install Windows 8 Release Preview or Other Operating System

       Build Your Lab! Download Windows Server 2012
       Don’t Have a Lab? Build Your Lab in the Cloud with Windows Azure Virtual Machines
       Want to Get Certified? Join our Windows Server 2012 "Early Experts" Study Group
Share with friends!

Create Bootable USB Thumb Drive (Key) Using Diskpart with Windows 8 Media to Install Windows 8 Release Preview or Other Operating System

  • Comments 19
  • Likes

Create USB Thumb drive key from Windows 8 ISO DVD or media to be used for install – Step-by-StepThese procedures were written using Windows 8 Release Preview but will work with prior versions of Windows 8, Windows Server 2012, Windows 7 and Windows Vista and Windows Server 2008 or Windows Server 2008 R2.  There is a video walkthrough of this process at the bottom of this post.

If you do not have the media, you will need to download.  See Windows 8 Release Preview (RP) and Windows Server 2012 Release Candidate (RC) Available for Download 

1) Put the Windows DVD in a drive (or mount the ISO) and make note of the drive letter.  In my case it is drive G:

2) Put in the USB Thumb Drive Key in the computer and make note of the drive letter and the size of the disk.  In my case it is E: and 3.8gb

InstallWindows8-USBKey-MyComputer

3) You need to run an elevated command prompt. Start | type cmd | Right-click cmd (top of menu) | Run as Administrator

4) Next you will run Diskpart to prepare the disk for the OS  {question mark “?” below should be replaced with the disk number of the drive you are using}

diskpart
list disk
select disk ?
clean
create partition primary
select partition 1
active
format fs=ntfs quick label=”Win8-RP-x64”
exit

Leaving DiskPart...

5) Now we need to copy the boot sector.  You should still be in the command prompt window

C:\Windows\system32>g:
G:\>cd boot
  Run "bootsect /help" for detailed usage instructions.

G:\boot>bootsect /nt60 e:
   Target volumes will be updated with BOOTMGR compatible bootcode.
   Bootcode was successfully updated on all targeted volumes.
G:\boot>exit

If you get an error message similar to below… you may need to close any open windows with that drive and try again.  You could also use the /force switch if you prefer.

 

      Updated NTFS filesystem bootcode.  The update may be unreliable since the
    volume could not be locked during the update:
        Access is denied. 

(This usually happens when the drive is open when trying to transfer boot sector)

6) Now we just need to copy files…

This post has moved to... 

Create USB Thumb drive key from Windows 8 ISO DVD or media to be used for install – Step-by-Step

xcopy g:\*.* e:\ /E /H /F

Diskpart Command-Line Utility Syntax and Description

Video of this process:

 

 

If you're having trouble viewing the video, Click here to download it.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • pls don't use the diskpart it false my pendrive was lost by this one

  • great man

  • True Story: don't use diskpart and then remove the "pendrive" halfway through.

  • There is absolutely nothing wrong with the diskpart instructions on this page. Sounds like you pulled the drive in the middle of writing the partition table :P

  • nothing wrong with the diskpart instructions this is how to Do IT

  • Thanks man. Helped recollect those commands

  • Actually, there is something quite wrong with these instructions.

    It appears that the author didn't include the instructions to assign a drive letter to the drive.

    DISKPART>ASSIGN <- This assigns the next drive letter to the drive

    Type "assign" after formatting so that the disk can be recognized by windows.  For those of you who have followed all of these steps and believe your usb drive to now be broken, you can simply re-follow all of the steps above, but this time, include the "assign" command.  

    Diskpart will still recognize the USB drive, even though your OS may not.

  • U only forgot to assign partition :)

  • It is true that the instructions are not only missing the drive letter assignment but not all systems seem to react the same at all. Some drives do not allow the format of ntsf within the diskpart procedure. I am getting every step perfectly and the error when using the format ntsf command is "file system is not compatible". If these instructions are correct, then somneone should be clear about what to do when these errors occur. I actually see many other errors but there is no good resource to document all of the error messages many people have had. I would say the best thing to do is spend the money and get a USB optical drive. This process is not stable or consistent and only works for some of the people some of the time.

  • remember to

    diskpart

    list disk

    select disk ? (the usb letter)

    clean

    create partition primary

    select partition 1

    active

    format fs=ntfs

    exit

    ------------------------

    now you need to go to

    Start

    type cmd

    then right click on cmd and select run as admin

    now do the second part

    ------------------------------------------------

    (type in your CD drive letter or in my case i mounted the ISO file and made the computer think it was a disk) g: (enter)

    It will then show like this or not G your disk drive letter then type ( cd boot Run )

    G:\>cd boot Run

    G:boot\bootsect /nt60 e:(the e: is your USB letter with a : )

    Then it will say successfully updated NTFS filesystem boot code

    and so on.

    complete

    now copy the files from you install disk to the usb and update your BIOS to boot usb first

  • Diskpart works perfectly. You've obviously done something wrong whilst using it. Don't deter other people from using a functional solution just because you had a bad experience with it.

  • 2Ok. I've gotta add that some people are complaining WINDOWS 8.1 WONT install from a NTFS formatted drive so I would recommend to type "format fs=fat32 quick" plus making it a QUICK format because if you have a 32-64GB drive then the format fs=ntfs command instructed here will take forever. So, the whole thing would look like this:

    diskpart
    list disk
    select disk n (drive letter)
    clean
    create partition primary
    format fs=fat32 quick
    active
    assign
    exit

  • nice post I have seen useful content after long time specifically for usb drives like http://www.promotionaldrives.com

  • Yes working with usb drives like http://www.promotionaldrives.com/products/wafer-usb-card"> wafer usb cards helps a lo

  • I try to copy the boot sector ( for me it is J:\ ) but when i give the command cd boot then it say's .. system cannot find the path specified ...
    can anyone tell me something more about this ?