Windows 10: Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command

Discus and support Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command in Windows 10 Customization to solve the problem; Hello Friends I want to create Windows PE and ramddiskoptions boot entry using bcdedit, when i am going to create using bcdedit /create... Discussion in 'Windows 10 Customization' started by vikaskala, Aug 20, 2018.

  1. vikaskala Win User

    Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command


    Hello Friends


    I want to create Windows PE and ramddiskoptions boot entry using bcdedit, when i am going to create using bcdedit /create {ramdiskoptions} /d "Ramdisk options" it s shows like an error occured while attempting the specified create operation, the specified entry already created."

    :)
     
    vikaskala, Aug 20, 2018
    #1
  2. OrbitzXT Win User

    Windows 7 & XP Boot Problem

    I did as that said, and was able to get back into Windows 7, but I did not have the option of going into XP. Response two on that page deals with that and says...

    I did all that, upon rebooting Windows XP was listed as an option but selecting it doesn't work. I get a message saying something is missing or corrupt. I'm confused what drive letter I was supposed to use during the quoted method of adding XP support. While in Windows, the drive with XP is labeled as E:, but if I go into Windows setup it says the drive with XP is called C:. I had put E:, so perhaps it was supposed to be C...but while in Windows 7, the Windows 7 drive is called C:.

    My current situation is that XP wouldn't work at all, but 7 would. I decided to reinstall XP again to be in the same situation as before. I'm unsure how to get them both working.
     
    OrbitzXT, Aug 20, 2018
    #2
  3. windows 10 PE boot disk

    what are the steps to creating a Windows 10 PE boot disk

    ***Post moved by the moderator to the appropriate forum topic.***
     
    YvesMorency, Aug 20, 2018
    #3
  4. cereberus Win User

    Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command

    How do I add a second winpe boot entry to a UEFI usb drive


    As you may well know, you can now access multiple partitions on a standard removeable flash drive with version 1703.

    So I decided to try and create a UEFI based usb flash drive with multiple winpe partitions.

    I successfully managed to create an EFI partition and a Winpe partition with Windows 10 15063 installation files - details below. This was a challenge as original source was for hard disks and some of the diskpart commands do not work for removeable drives and there were mistakes in original text.

    I tested the commands I modified below and it booted perfectly.

    Then, I added a second winpe partition but the bit I cannot work out is how to add a boot entry for the second winpe partition. I tried the command file in @Khyi's tutorial but it added the boot entry to the C drive EFI partition, not the one on the usb drive.

    I (rather blindly) tried to repeat some of the bcdedit commands from below but that did not work (due to my lack of knowledge).

    So does anybody have any idea how I could add a second boot entry?

    cheers

    C.


    ----------------------------------------------------------------------------
    This is a modified version of guide in Walkthrough: Boot Windows PE from a UEFI-based Hard Disk starting from step 2.Step 1: Prepare USBInsert usb flash drive whilst running Windows 10 version 1703 and open an admin command prompt and runWarning: contents of flash drive are removed.diskpartlist diskselect disk n (n=usb drive number - be careful you select right drive)cleanconvert GPTrem === 1. Create the EFI system partition ===create partition EFI size=200create partition primary size=5000 (adjust as approprite)Install minitool partition wizard free if not already installed. You need this as as you cannot assign drive letters for removeable drives in disk part but you can with MPW.Using MPW, format EFI partition as FAT32 and give it a drive letter SFormat Windows Partition as FAT32 and give it a drive letter TNote I use drive S for EFI and T for Windows partition - change as appropriateStep 2: Mount Windows PE Iso as a drive in Windows e.g. a Windows 10 15063 installation iso downloaded using Media Creation ToolThis guide assumes the iso is mounted as drive D - change as appropriate Step 3: Copy Windows PE files to the hard diskIn this step, you copy Windows PE resource files to the hard drive from your bootable media. This example assumes the hard drive is blank.At a command prompt, copy the \EFI folder from your bootable media to the EFI folder of the EFI system partition on your hard drive, as in the following example:xcopy d:\EFI\* s:\EFI\* /cherkyfswhere d is the letter of your bootable Windows PE media that contains a Windows PE image.Copy the \Sources folder from your bootable media to the sources folder of the Windows PE partition on your hard drive, as in the following example:xcopy d:\sources\* t:\sources\* /cherkyfsCopy the \Boot\boot.sdi file from your bootable media to the \Sources folder of the Windows PE partition on your hard drive, as in the following example:copy d:\boot\boot.sdi t:\sources\Copy all of the files with an .efi extension from iso to the \EFI\Microsoft\Boot folder. If any ask for permission to overwrite, just select no.copy d:\efi\microsoft\boot*.efi s:\EFI\Microsoft\Boot\*copy d:\efi\boot*.efi s:\EFI\Microsoft\Boot\* copy d:\*.efi s:\EFI\Microsoft\Boot\*Delete the boot configuration data (BCD) file that you copied from your bootable media. Note that you will create a new one in the next step, as in the following example,del s:\EFI\Microsoft\Boot\BCD /fStep 4: Configure the System StoreIn this step, you will create and configure a new system store by using the BCDEdit tool. The system store is a file named BCD that holds information required to load Windows or other boot applications. BCD replaces Boot.ini.BCDEdit is a command-line tool that is designed to manage system stores/Create a new system store, as in the following example:bcdedit -createstore S:\EFI\Microsoft\Boot\BCDCreate new entries in the system store for bootmgr, globalsettings, dbgsettings, ramdiskoptions, and Windows PE.bcdedit -store S:\EFI\Microsoft\Boot\BCD -create {bootmgr} /d "Boot Manager"bcdedit -store S:\EFI\Microsoft\Boot\BCD -create {globalsettings} /d "globalsettings"bcdedit -store S:\EFI\Microsoft\Boot\BCD -create {dbgsettings} /d "debugsettings"bcdedit -store S:\EFI\Microsoft\Boot\BCD -create {ramdiskoptions} /d "ramdiskoptions"bcdedit -store S:\EFI\Microsoft\Boot\BCD -create /d "Windows PE" -application osloaderYou can put all above in a batch file if you like. Note: The last command returns a GUID value for Windows PE store. Cut and paste to a text file.Set the default entry that the boot manager selects when the timeout expires. Substitute <GUID> with the GUID value for the Windows PE store in the following example:bcdedit -store S:\EFI\Microsoft\Boot\BCD /default <GUID from Windows PE store>Do not put above in a batch file as you need to use GUID from above.Run the following commands to configure bootmgr:You can put all of following in a second batch file if you like.bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {bootmgr} device partition=s:bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {bootmgr} path \EFI\Microsoft\Boot\bootmgr.efibcdedit -store S:\EFI\Microsoft\Boot\BCD -set {bootmgr} locale en-usbcdedit -store S:\EFI\Microsoft\Boot\BCD -set {bootmgr} timeout 10Run the following commands to configure the boot loader:bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {Default} device ramdisk=[t:]\sources\boot.wim,{ramdiskoptions}bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {Default} path \windows\system32\winload.efibcdedit -store S:\EFI\Microsoft\Boot\BCD -set {Default} osdevice ramdisk=[t:]\sources\boot.wim,{ramdiskoptions} bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {Default} systemroot \windowsbcdedit -store S:\EFI\Microsoft\Boot\BCD -set {Default} winpe yesbcdedit -store S:\EFI\Microsoft\Boot\BCD -set {Default} nx optinbcdedit -store S:\EFI\Microsoft\Boot\BCD -set {Default} detecthal yesbcdedit -store S:\EFI\Microsoft\Boot\BCD -displayorder {Default} -addfirstRun the following commands to configure dbgsettings:bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {dbgsettings} debugtype Serialbcdedit -store S:\EFI\Microsoft\Boot\BCD -set {dbgsettings} debugport 1bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {dbgsettings} baudrate 115200Run the following commands to configure ramdiskoptions:bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {ramdiskoptions} ramdisksdidevice partition=t: bcdedit -store S:\EFI\Microsoft\Boot\BCD -set {ramdiskoptions} ramdisksdipath \sources\boot.sdiNow check drive boots ok with initial winpe drive added. Set bios to boot from usb drive mode and ensure pc is in UEFI mode.
     
    cereberus, Aug 20, 2018
    #4
Thema:

Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command

Loading...
  1. Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command - Similar Threads - able create ramddiskoptions

  2. Not able to print using command after Update

    in Windows 10 Drivers and Hardware
    Not able to print using command after Update: This is the 20th time this happened in past 3 years printer will not PRINT using computer command ?? I AM A SENIOR CITIZEN this computer is ALLLL I have dear GOD IN heaven I need printer to function Please restore printer...
  3. Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command

    in Windows 10 Installation and Upgrade
    Not able to create Windows PE and ramddiskoptions boot entry using bcdedit command: Hello Friends I want to create Windows PE and ramddiskoptions boot entry using bcdedit, when i am going to create using bcdedit /create {ramdiskoptions} /d "Ramdisk options" it s shows like an error occured while attempting the specified create operation, the specified...
  4. BCDEDIT Command after Win10 Reinstallation?

    in Windows 10 Installation and Upgrade
    BCDEDIT Command after Win10 Reinstallation?: I had issues with BitLocker PIN prompt in the past similar to the below discussion. BitLocker with TPM and PIN - Laptop shuts down after 60 seconds The solution was this: open up command prompt window as administrator: type in this command: bcdedit /set {bootmgr}...
  5. Creating a shared directory on the network using the command prompt

    in Windows 10 Network and Sharing
    Creating a shared directory on the network using the command prompt: Hi I have Windows 10 v1703 Enterprise 64 bit with the Microsoft accounts. Wanting to create a shared directory on the network using the command prompt, in an administrative account I ran the Command Prompt (as administrator) and I run the following commands: Code:...
  6. How to use DISM in WINDOW PE environment?

    in Windows 10 Performance & Maintenance
    How to use DISM in WINDOW PE environment?: i am trying to repair my windows(i cannot boot to windows 10 and i tried automatic repair three times already). Can't even boot to safe mode. Keeps getting pci.sys corruption error at boot up. So i am forced to use a usb to boot to a Pre-installed window environment....
  7. Windows PE 10.x and its boot

    in Windows 10 Installation and Upgrade
    Windows PE 10.x and its boot: Hi In Windows PE 10.0.15063, which commands and scripts are used during its boot? Thanks Bye 93543
  8. BCDEdit to create a multi-bootloader thumbdrive ?

    in Windows 10 Installation and Upgrade
    BCDEdit to create a multi-bootloader thumbdrive ?: Correct me if I'm wrong, can you not use BCDEdit to create a multi-bootloader thumbdrive ? 65793
  9. BCDedit says: "The set command specified is not valid"

    in Windows 10 Support
    BCDedit says: "The set command specified is not valid": I am using Windows PowerShell (Admin). My command line is this: "bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi" I had used this exact command line before and it did work. Now it says "The set command specified is not valid". It makes no sense. So I am suspecting...
  10. bcdedit - now unable to boot windows

    in Windows 10 Support
    bcdedit - now unable to boot windows: My system was in a forever cycle of just booting to the 'troubleshooting' screen or I think it's called advanced boot options. It would never boot to windows 10. This happened after some tool requested to set to 'safe mode'. So I tried to fix it but alas very incorrectly and...