Booten von SD-Karte
Ich bin einfach mal so frei und kopiere die Anleitung aus dem Homeservershow-Forum (Quelle:
Gen8 2.5" HDD in the ODD bay discussion - Page 3 - HP Microserver - HomeServerShow Forums) zum Booten von SD-Karte hier rein. Ich glaube mich allerdings zu erinnern, dass an 1 oder 2 Stellen Fehler enthalten waren (ich glaube in Zusammenhang mit Hyper-V).
OK – I’ve put together some instructions for the board. Note that (1) these have not been tested, although I did use this approach on my MicroServer successfully, and (2) by using these instructions you agree that I take no responsibility (nor liability in perpetuity) for the effect your usage of these instructions may have on your data – you’re on your own and if it all goes horribly wrong, please do not be surprised! I would strongly recommend you do not have any data on the server at this stage…
Before you start, you need the following:
A copy of Windows installed (Windows Server 2008 R2 or later will do, any edition – this may work on Windows Server 2008 too, but earlier editions have a different method that these instructions do not cover) on the MicroServer and booting successfully. Note that if you've installed Windows onto a drive in the ODD, you will need to physically remove all the hard drives from the trays (just pulling them out 1/2" will do to be able to boot the server from the ODD), otherwise the MicroServer will try and boot from one of the non-ODD hard drives first. There is no way to specifically prioritize the ODD drive above the others.
Insert the MicroSD (or USB key) into the internal slot before you boot. If you are unable to boot, go into the Setup Utility (BIOS) and ensure that the boot order has USB set to lowest priority.
Boot the MicroServer into your copy of Windows.
Mount the Windows setup ISO. Windows Server 2012 and later has an ISO mounter built in - but if you're running another version, you can use something like Virtual CloneDrive, available at
http://www.*******.c...clonedrive.html Make a note of the drive letter.
Go to "My Computer" or similar in Explorer and make a note of the drive letter and size of your MicroSD card or USB key. If you cannot see it here, then there are a couple of reasons - if the drive is not formatted properly you may be able to get it working by consulting the Disk Management MMC snap-in and formatting it there. Also, if you didn't use Intelligent Provisioning, and you're using the MicroSD card, you may not have the right drivers installed - in which case go and grab them from the HP site and install.
Now for the fun stuff:
Start an elevated command prompt. Start | type cmd | Right-click cmd (top of menu) | Run as Administrator. Note that you can just run a command prompt if you have UAC turned off (standard for Windows Server installs).
Next, run Diskpart to prepare the disk. Enter each of the commands in order. Be very careful as a mistake here can have serious consequences! Note that the 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
assign
label=”<YOUR LABEL GOES HERE>”
exit
Now copy the boot sector to the MicroSD card or USB key. You should still be in the command prompt window. Replace $ below with the drive letter of your mounted ISO image, and ? with the drive letter of your newly formatted MicroSD card or USB key.
$:
$:\>cd boot
$:\boot>bootsect /nt60 ?:
Target volumes will be updated with BOOTMGR compatible bootcode.
Bootcode was successfully updated on all targeted volumes.
$:\boot>exit
Note that if you get an error message here, normally you can fix this by closing any open windows with that drive and try again. You could also use the /force switch for bootsect if you prefer.
Now we need to copy critical boot files to the MicroSD card/USB key. Using Windows Explorer, copy the following directories and files to the MicroSD card/USB key:
bootmgr (file)
bootmgr.efi (file)
boot (directory)
efi (directory)
Nothing else is required.
Delete the file "bcd" from the directory "boot" on the MicroSD card/USB Key - we'll be recreating it shortly.
Start another elevated command prompt. Start | type cmd | Right-click cmd (top of menu) | Run as Administrator. Note that you can just run a command prompt if you have UAC turned off (standard for Windows Server installs).
Replace ? in the following BCDEDIT commands with the current drive letter of your MicroSD card or USB key:
bcdedit /createstore ?:\boot\bcd
bcdedit /store ?:\boot\bcd /create {bootmgr}
bcdedit /store ?:\boot\bcd /set {bootmgr} device boot
bcdedit /store ?:\boot\bcd /timeout 30
bcdedit /store ?:\boot\bcd /create /d "<Your OS Name Here>" /application osloader
That returns a new GUID that you should plug into this next command:
bcdedit /store ?:\boot\bcd /default {<GUID>}
For the next commands where I've denoted *:, replace it with the drive letter of your current Windows boot drive. So if I'm booted on my MicroServer into the OS I am looking to boot from my MicroSD/USB Key and it's C:, that's what you need to enter here. It doesn't matter what the drive will be when you boot - it matters what the OS you're currently executing the bcdedit command sees!
bcdedit /store ?:\boot\bcd /set {default} device partition=*:
bcdedit /store ?:\boot\bcd /set {default} path \windows\system32\boot\winload.exe
bcdedit /store ?:\boot\bcd /set {default} osdevice partition=*:
bcdedit /store ?:\boot\bcd /set {default} systemroot \Windows
bcdedit /store ?:\boot\bcd /set {default} detecthal yes
bcdedit /store ?:\boot\bcd /set {default} nx optin
bcdedit /store ?:\boot\bcd /displayorder {default} /addlast
Finally... If you want to run Hyper-V (and have a capable edition of Windows Server, and have installed the role), you must enter the following command (otherwise the Hypervisor won't start and Hyper-V Manager will throw up all sorts of errors):
bcdedit /store ?:\boot\bcd /set {default} hypervisorlaunchtype auto
Boot into the Setup Utility (BIOS) on your MicroServer and prioritize USB boot as the first item (MicroSD comes under the USB boot order too). I have not been able to find a way to prioritize within the USB boot devices. Therefore, you will need to remove all other storage devices from the USB2 ports (the two USB3 ports on the back of the server are fine as they aren't seen by the BIOS and aren't active until you get into a compatible OS).
OK - your MicroSD card or USB key should be all setup. At this point you can install drives into the drive trays and you should be good.
I welcome comments from my fellow board members.