CMD line BCDEDIT to point to winre.wim and Disk letter assignment

Page 1 of 3 123 LastLast

  1. Posts : 63
    Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.8
       #1

    CMD line BCDEDIT to point to winre.wim and Disk letter assignment


    Now, i have already 'solved' this issue by installing a temporary copy of Win 7 to the c:\ and using EasyBCD to add an entry to the bcd file, to point to winre.wim to run the HP Recovery factory software.

    But I should be able to create the bootmgr file just with the command line bcdedit command , but no matter how many threads I have read here, and how many different options i have tried. I can't get the commands correct to create a working BCD file to point to winre.wim

    The path to winre.wim is:

    drive letter:\Recovery\WindowsRE\winre.wim.


    This brings me to my second question, DRIVE LETTER allocation.

    I have read somewhere (on here?) that Diskpart often reports different drive letters per partition compared to what Windows Disk manager reports /sees..so what letter do we put in the BCD file?




    As I said, i already have created a BCD file by installing Windows, but it is a long winded method compared to just booting from a WinPE stick and creating the BCD via command line.

    Thanks

    Neil
      My Computer


  2. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #2

    What exactly do you want?
    • Create bcd from scratch?
    • Create an extra entry in BCD that runs winre?
    Be more specific what you want please
      My Computer


  3. Posts : 63
    Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.8
    Thread Starter
       #3

    Now I look back, maybe not as clear as intended, sorry,
    The last line of my post was attempting to say that I wanted to create from scratch.

    I know how and have used the create command to create the BCD, but have not had any success in getting it to boot.

    So to be totally straight, I want to create the BCD file, from the CMD line, once booted via USB Win PE boot stick, to point the boot sequence to winre.wim, located at the path given in the first post.

    Thanks
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #4

    please post bcdedit output you have created so far.

    Code:
    bcdedit /store c:\boot\bcd   /enum all
    replace c:\boot\bcd with actual location.
      My Computer


  5. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #5

    NeilPaisnel said:
    Now, i have already 'solved' this issue by installing a temporary copy of Win 7 to the c:\ and using EasyBCD to add an entry to the bcd file, to point to winre.wim to run the HP Recovery factory software.

    But I should be able to create the bootmgr file just with the command line bcdedit command , but no matter how many threads I have read here, and how many different options i have tried. I can't get the commands correct to create a working BCD file to point to winre.wim

    The path to winre.wim is:

    drive letter:\Recovery\WindowsRE\winre.wim.


    This brings me to my second question, DRIVE LETTER allocation.

    I have read somewhere (on here?) that Diskpart often reports different drive letters per partition compared to what Windows Disk manager reports /sees..so what letter do we put in the BCD file?




    As I said, i already have created a BCD file by installing Windows, but it is a long winded method compared to just booting from a WinPE stick and creating the BCD via command line.

    Thanks

    Neil
    Here's an example:

    Code:
     
    id                      {dd7283fe-b052-11e2-adc3-cdc89ac63bc5}
    device                  ramdisk=[C:]\Recovery\dd7283fe-b052-11e2-adc3-cdc89ac63bc5\Winre.wim,{dd7283ff-b052-11e2-adc3-cdc89ac63bc5}
    path                    \windows\system32\winload.exe
    description             Windows Recovery Environment
    inherit                 {bootloadersettings}
    osdevice                ramdisk=[C:]\Recovery\dd7283fe-b052-11e2-adc3-cdc89ac63bc5\Winre.wim,{dd7283ff-b052-11e2-adc3-cdc89ac63bc5}
    systemroot              \windows
    nx                      OptIn
    winpe                   Yes
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #6

    So you booted to winpe from usb? From that situation you want to modify the bcd store?
      My Computer


  7. Posts : 63
    Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.8
    Thread Starter
       #7

    This is one of these situations, where in trying to keep the initial post brief and too the point and not waffling too much, I have obviously left too much out.

    Trouble is too much explanation often ends up masking the question..so I'll try again.

    I can't show any examples of what i had tried, as, as I mentioned in the first post, I now have solved the problem by doing a install from a Win 7 disk, running EasyBCD, then that having allowed access to the GUI version of BCDEdit, I changed the BCD file to allow booting in to the Windows factory recovery environment.
    So I cant show any examples of what I tried because they all were deleted when the 1st install from disk was created, and then the factory recovery overwrote the lot.

    But in future if I come across this I would like to be able to create the BCD from scratch, from booting from the Win PE USB disk...or the Win RE via the Install CD.

    So the partition system on the disk would be
    100mb system, no drive letter
    XYZ GB C:\..blank for Windows
    20GB Recovery Partition HP_Recovery..this is the partition with the winre.wim file
    5GB HP_Tools partition.

    These partitions created on a fresh HDD, using DISKPART to CLEAN and reformat and then ImageX to re image the recovery, system and tools partitions back to the correct locations

    I have seen plenty of examples of the BCD files as shown above, and I have seen the 'Create ' command used to create the empty BCD file.

    But the issue comes when I try to populate the BCD with the required data:

    take for instance the device ID
    id {dd7283fe-b052-11e2-adc3-cdc89ac63bc5}
    device ramdisk=[C:]\Recovery\dd7283fe-b052-11e2-adc3-cdc89ac63bc5\Winre.wim,{dd7283ff-
    I cannot seem to find how that is obtained...DISKPART maybe. I have been Googling around and trying so many things to get this to work by myself in the past ...2-3? weeks that I now no longer now where i am or what I can try next... Yes I can do it by installing windows in order to access BCDEdit GUI interface, but that does seem to be a long way around it.


    Things I have either got consistently wrong seem to be the path to the winre.wim file or other unspecified errors that I relate to my second point in my first post, that of volume naming

    So what I would really like is a sample of something like the following taken from the thread; BCDEDIT - How to Use, but corrected/ adjusted for my situation, ..so for Win7..bootmgr, and not ntldr and the path to the winre.wim filr being at
    drive letter:\Recovery\WindowsRE\winre.wim.


    bcdedit /create {ntldr} /d "Windows XP"

    bcdedit /set {ntldr} device partition=F:

    bcdedit /set {ntldr} path \ntldr

    bcdedit /displayorder {ntldr} /addlast

    I have tried the various commands as listed above, substituting what I thought were my variables, but never go anywhere.

    What other information can I supply / is needed to get help on this.?

    I can not try anything tonight, as I am now out of spare HDD's to try again. I do not want to reformat my now working system, but will happily try on a blank HDD as soon as I can scrounge another.

    Thanks once more for your time in helping on this. For me this is a learning process rather than a necessity..just do not like to be beaten
      My Computer


  8. Posts : 63
    Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.8
    Thread Starter
       #8

    So, yes
    Create BCD from scratch after booting from WinPE
    where the c:\ is blank
    winre.wim file is at sourceDrive letter:\Recovery\WindowsRE\winre.wim.

    How do I discover the source drive letter if Diskpart and Windows often allocate different drive letters
      My Computer


  9. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #9

    So it's working now. Can you post the current situation?
    Code:
    bcdedit/enum all
    If I see that I can give you instructions how to create from scratch.
      My Computer


  10. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #10

    NeilPaisnel said:
    So, yes
    Create BCD from scratch after booting from WinPE
    where the c:\ is blank
    winre.wim file is at sourceDrive letter:\Recovery\WindowsRE\winre.wim.

    How do I discover the source drive letter if Diskpart and Windows often allocate different drive letters
    Use the correct drive letter used in winpe and pointing to the disk you want. It's just a drive letter ... kind of synonym. Actually in bcd will be stored: "disk signature" (kind of unique barcode to identify the disk) and "start sector of partition".
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:27.
Find Us