Build a multi-bootable flash drive Requirements: Knowledge of ADK (Dism, WinPE, Dart, WinRE, etc...) About: You will know how to build a flash drive that displays a bootable menu with tools like: (WinPE, Dart, WinRe, Windows Setup) for UEFI and legacy bios. You will learn the basic usage of: bcdedit (by example) What can i create with this? * A rescue or emergency tool. (by integrating WinPE, Dart, WinRE) <-- In this example * A Muti Windows setup flash drive. * A combination of Windows setup with multiple languages. You will need: * A WinPE already built in a flash drive. * A Winre.wim extracted from an install.wim Optional: Dart (boot.wim) and Windows (install.wim) Instructions UEFI: Code: * Assume F: as your WinPE flash drive. * Copy other images to the F: sources folder (winre.wim, dart.wim, etc...) 1) Shows the BCD info for the first entry on the BCD File (Take note of the GUID)... the GUID will look like: {7619dcc8-fafe-11d9-b411-000476eba25f} bcdedit /store F:\EFI\Microsoft\Boot\BCD /enum | find "osdevice" * Or use this command to view all the entries with their GUIDs: bcdedit /store F:\EFI\Microsoft\Boot\BCD /enum all 2) Sets the first entry to the image.wim you want to boot. (In this example the WinPE) {7619dcc8-fafe-11d9-b411-000476eba25f} bcdedit /store F:\EFI\Microsoft\Boot\BCD /set {default} device ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} bcdedit /store F:\EFI\Microsoft\Boot\BCD /set {Default} path \windows\system32\winload.efi bcdedit /store F:\EFI\Microsoft\Boot\BCD /set {default} osdevice ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} bcdedit /store F:\EFI\Microsoft\Boot\BCD /set {Default} systemroot \windows bcdedit /store F:\EFI\Microsoft\Boot\BCD /set {default} description "WinPE 5.1 x64" 3) Copy the entry created to make a rule for other one: (Give the copy a name) (Example: WinRE) {7a641064-bc25-11e3-8261-00224d818f7a} bcdedit /store F:\EFI\Microsoft\Boot\BCD /copy {default} /d "Windows 8.1 RE x64" 4) Modify the rule to point to the other image.wim ("WinRE_x64.wim") bcdedit /store F:\EFI\Microsoft\Boot\BCD /set {7a641064-bc25-11e3-8261-00224d818f7a} device ramdisk=[boot]\sources\WinRE_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} bcdedit /store F:\EFI\Microsoft\Boot\BCD /set {7a641064-bc25-11e3-8261-00224d818f7a} osdevice ramdisk=[boot]\sources\WinRE_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} * If you want to integrate other boot.wim or other stuff.wim ex: DART... Then repeat steps 3 and 4 (Change the GUID and the .wim filename accordingly.) 5) Creates the bootable menu bcdedit.exe /store F:\EFI\Microsoft\Boot\BCD /deletevalue {default} bootmenupolicy You should also do the legacy part. Below.
Hi. Can I suggest it's better to set bootmenupolicy to legacy rather than deleting it. Code: bcdedit /store F:\Boot\BCD /set {default} bootmenupolicy legacy Yes, deleting it from your USB BCD works ok but deleting it from your BCD on your hdd does not work. The Win8 OS still boots as if it's still set to "Standard". This is usefull if you want F8 key to be working & access traditional menu options such as "Safe Mode". Setting the Timeout value is handy as well: Code: bcdedit /store F:\Boot\BCD /set {bootmgr} timeout 20
Use legacy boot loader if you frequently switch OS. To disable new Metro boot loader and bring back Windows Vista and 7 style boot loader in Windows 8. Code: * Local bcdedit /set {default} bootmenupolicy legacy * External (Flash Drive) bcdedit /store F:\Boot\BCD /set {default} bootmenupolicy legacy To re-enable Windows 8 Metro boot loader in future, simply execute following command in Command Prompt: Code: * Local bcdedit /set {default} bootmenupolicy standard * External (Flash Drive) bcdedit /store F:\Boot\BCD /set {default} bootmenupolicy standard Customizing Timeout value: Code: bcdedit /store F:\Boot\BCD /set {bootmgr} timeout 20
Awesome! Just made one with DART 7 and 8.1. BTW does anyone know whether DART 8.1 works on Windows 8 (as in NOT 8.1)? I'm sick of ferrying around multiple wims.
If you use Murphy78's Script then yes, it does. Dism fully supports split wim. If your wims are big & you split them, there's a possible license issue that crops up as these need to be in the 1st .swm. Murthy78's thread explains what to do...
Why are you using 8 still? Just go straight to 8.1 & save the hassle of having to download the 8.1 update each time...
Thanks for the answer Flipp3r. My first try with win8 then had failed. My Win7 / 8 AIO on a FAT32 drive inclusive MSDaRT 86/64 now works perfectly. Legacy as UEFI Also big thanks to Cold Zero for the food for thought.
Using Windows ADK 10 v1511, the procedure of the first and second post is applicable also to create the BCD of a single iso of Windows PE/RE 10.x 32/64 bit working with computers that have the BIOS or UEFI firmware? Thanks Bye