Sunday, November 4, 2012

Install Windows Server 2008 r2 from USB

===================================
*note: edited 08/19/2016.  See notes for UEFI errors on newer PCs/Laptops when attempting to use bootsect.exe command and receive failure.
===================================

After many attempts at finding the "best" solution to installing Windows Server 2008 R2 from a USB stick, here's what worked consistently for me.

First, and while obvious I'll still point it out, your USB stick needs to be at least 3GB.

Steps:

Insert the USB drive
Run CMD.exe as Administrator
C:\>diskpart

DISKPART>list disk




DISKPART> select disk 1
Disk 1 is now the selected disk

*note: in my case since I only have a single internal hard disk in my laptop, the USB drive shows as disk 1, an 8GB stick.  If you have more than one disk already installed/mounted on your PC, then modify the select statement accordingly to point to your target USB device.

DISKPART> clean
DiskPart succeeded in cleaning the disk.

DISKPART>create partition primary
DiskPart succeeded in creating the specified partition.

DISKPART>active
DiskPart marked the current partition active.

DISKPART>format fs=fat32 quick
   100 percent completed.
DiskPart successfully formatted the volume.

DISKPART>assign
DiskPart successfully assigned the drive letter or mount point.

DISKPART>exit

C:\>

Don't close your command window, but jump back into Windows Explorer to see what drive letter has now been assigned to your USB disk.  In my case it is G:  Now, if you haven't already, either mount the ISO using Daemon Tools or some similar utility to mount the ISO as readable by the OS, or insert the Windows Server 2008 R2 DVD.  My mounted ISO shows up as D: drive.  You can also type: list volume at the DISKPART prompt to get this information.

Go back to the command prompt window.  Change drive letters to the mounted ISO or physical DVD to proceed.

d:
D:\>
cd boot
bootsect.exe /NT60 g:
xcopy d:\*.* /e /s /f g:

The X17-22580.ISO release of Windows Server 2008 R2 shows 996 files copied for a total of 2.97GB.  Now, go to Windows Explorer and copy any drivers specific to the system you'll be installing Windows Server 2008 r2 onto the USB stick; in my case I just created a "Drivers" directory and placed each (Raid Controller, OnBoard Ethernet, SAS controller, Fibre Channel Controllers) into it's own subdirectory.  Exit the command prompt and eject your USB stick - you are now ready to install Windows Server 2008 R2 from USB.  Remember, of course, to change your boot order on your server to boot to the USB drive - on IBM System x servers that is easiest done by hitting the F12 key during the boot sequence.

I'll test this for a post in the very near future with Windows Server 2012.
**note: tested.  Same logic applies for Windows Server 2012r2 as for 2008/2008r2**

On a newer PC, laptop or tablet computer, you may receive the following error:

This tool can only be run on systems booted using a pc/at bios. This system was booted using EFI or some other firmware type

There are two ways of dealing with this.  1) If you're running Windows 8 or Windows 10, use the bootsect.exe command located on your local hard drive instead of the one on the Windows Server 2008 or 2012 DVD.  Alternatively, avoid ALL of this tediousness and download RUFUS. 

https://rufus.akeo.ie/

*latest update 08/19/16*

No comments: