Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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


27 Dec 2013   #1

Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.8
 
 
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 System SpecsSystem Spec
.

27 Dec 2013   #2

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

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 System SpecsSystem Spec
27 Dec 2013   #3

Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.8
 
 

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 System SpecsSystem Spec
.


27 Dec 2013   #4

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

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 System SpecsSystem Spec
27 Dec 2013   #5

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by NeilPaisnel View Post
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 System SpecsSystem Spec
27 Dec 2013   #6

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

So you booted to winpe from usb? From that situation you want to modify the bcd store?
My System SpecsSystem Spec
27 Dec 2013   #7

Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.8
 
 

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
Quote:
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 Windows 7..bootmgr, and not ntldr and the path to the winre.wim filr being at
drive letter:\Recovery\WindowsRE\winre.wim.


Quote:
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 System SpecsSystem Spec
27 Dec 2013   #8

Many: XP, 7, Home & Pro, Slax, FreeNAS, OS-X 10.9 10.6.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 System SpecsSystem Spec
27 Dec 2013   #9

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

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 System SpecsSystem Spec
27 Dec 2013   #10

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by NeilPaisnel View Post
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 System SpecsSystem Spec
Reply

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




Thread Tools



Similar help and support threads for2: CMD line BCDEDIT to point to winre.wim and Disk letter assignment
Thread Forum
Solved Disk letter problem Hardware & Devices
Solved Drive letter assignment problem Installation & Setup
Drive Letter not showing up in disk management Hardware & Devices
Save drive letter assignment? General Discussion
Trying to Add a Drive Letter Assignment General Discussion

Our Sites

Site Links

About Us

Find 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 03:55 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33