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   #11
NeilPaisnel

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

OK, thanks..I'll get back on to that tomorrow...

I have the HDD out back at the workshop now and i am at home.

This particular machine is a HP4530s that I run 'Dual Boot' ...via removing the HDD and sticking another SSD HDD in to run OS-X. Got it here with me now , but with the OS-X HDD in place.

I'll get back on to it tomorrow

Many thanks


My System SpecsSystem Spec
.
27 Dec 2013   #12
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Use the letter you see from winpe, it is an alias.
You also need to point at boot.sdi.

Example:

1. Create {ramdisktoptions} object in the bcd store:

bcdedit /create {ramdiskoptions} /d "Ramdisk options"

bcdedit /set {ramdiskoptions} ramdisksdidevice partition=Drive:

2. Add sdipath:

bcdedit /set {ramdiskoptions} ramdisksdipath \Recovery\WindowsRE\boot.sdi

3. Create boot application entry:

for /f "tokens=1-3" %%a in ('Bcdedit /create /d "Boot from Wim" /application osloader') do set PE_GUID=%%c

bcdedit /set %PE_GUID% device ramdisk=[Drive:]\Recovery\WindowsRE\winre.wim,{ramdiskoptions}

bcdedit /set %PE_GUID% osdevice ramdisk=[Drive:]\Recovery\WindowsRE\winre.wim,{ramdiskoptions}

bcdedit /set %PE_GUID% path \windows\system32\winload.exe

(note - use winload.efi for efi boot )

bcdedit /set %PE_GUID% systemroot \windows

3. Specify winpe:

bcdedit /set %PE_GUID% winpe yes

bcdedit /set %PE_GUID% detecthal yes

4. Add new entry to display order:

bcdedit /displayorder %PE_GUID% /addlast
My System SpecsSystem Spec
27 Dec 2013   #13
Kaktussoft

Microsoft Community Contributor Award Recipient

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

Here are a few examples: Johan Arwidmark - Booting WinPE 2.0 from a third party PXE Server

for /f "tokens=1-3"
Works in english version. In some foreign languages it is: for /f "tokens=1-2"
My System SpecsSystem Spec
.

28 Dec 2013   #14
NeilPaisnel

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

Here are the BCD files I currently have on the now removed HDD.

This is a working system.

I am not going to touch this system.
Will need to find another HDD to try a recovery too, as I wan't to avoid screwing with this now I have got it working..but want the knowledge to do it again when necessary...as I am sure that will occur. The only thing that is going to stop me is if it turns out not to be possible to get Win7 to see the network and FreeBSD CIFS SMB and Mac AFP shares. If Win7 cant be set up to do that then it is not going to be worth the effort to use Win7


HP_Recovery PARTITION BCD
Code:
Windows Boot Manager
--------------------
identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device                  boot
path                    \bootmgr
description             Windows Boot Manager
locale                  en-US
default                 {572bcd55-ffa7-11d9-aae0-0007e994107d}
displayorder            {572bcd55-ffa7-11d9-aae0-0007e994107d}
timeout                 30

Windows Boot Loader
-------------------
identifier              {572bcd55-ffa7-11d9-aae0-0007e994107d}
A device attached to the system is not functioning.
System PARTITION BCD's

Code:
Windows Boot Manager
--------------------
identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device                  unknown
description             Windows Boot Manager
locale                  en-US
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
extendedinput           Yes
default                 {c0e849d1-6e89-11e3-aa17-c4df00072efd}
resumeobject            {c0e849d0-6e89-11e3-aa17-c4df00072efd}
displayorder            {c0e849d1-6e89-11e3-aa17-c4df00072efd}
toolsdisplayorder       {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout                 30
customactions           0x1000085000001
                        0x5400000f
custom:5400000f         {c0e849d4-6e89-11e3-aa17-c4df00072efd}

Windows Boot Loader
-------------------
identifier              {c0e849d1-6e89-11e3-aa17-c4df00072efd}
device                  unknown
path                    \windows\system32\winload.exe
description             Windows 7
locale                  en-US
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence        {c0e849d4-6e89-11e3-aa17-c4df00072efd}
recoveryenabled         Yes
osdevice                unknown
systemroot              \windows
resumeobject            {c0e849d0-6e89-11e3-aa17-c4df00072efd}
nx                      OptIn

FROM WORKING C:\

Code:
Windows Boot Manager
--------------------
identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device                  locate=custom:12000002
description             Windows Boot Manager
locale                  en-US
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default                 {b5c086aa-359d-11e0-ae5e-82634f96898b}
resumeobject            {b5c086a9-359d-11e0-ae5e-82634f96898b}
displayorder            {b5c086aa-359d-11e0-ae5e-82634f96898b}
toolsdisplayorder       {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout                 30

Windows Boot Loader
-------------------
identifier              {b5c086aa-359d-11e0-ae5e-82634f96898b}
device                  unknown
path                    \windows\system32\winload.exe
description             Windows 7
locale                  en-US
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
truncatememory          0x100000000
recoveryenabled         No
osdevice                unknown
systemroot              \windows
resumeobject            {b5c086a9-359d-11e0-ae5e-82634f96898b}
nx                      OptIn
My System SpecsSystem Spec
28 Dec 2013   #15
Kaktussoft

Microsoft Community Contributor Award Recipient

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

HP_Recovery PARTITION BCD: Is that really the bcd located on that partition?
identifier {572bcd55-ffa7-11d9-aae0-0007e994107d}
A device attached to the system is not functioning.
--is that realy end of output??


System PARTITION BCD's: Where is that bcd located?

FROM WORKING C:\: That bcd is on C?


Post bcdedit/enum all output.
My System SpecsSystem Spec
28 Dec 2013   #16
NeilPaisnel

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

Quote   Quote: Originally Posted by Kaktussoft View Post
HP_Recovery PARTITION BCD: Is that really the bcd located on that partition?
identifier {572bcd55-ffa7-11d9-aae0-0007e994107d}
A device attached to the system is not functioning.
--is that realy end of output??
Yes, that is it..
it is located
HP_RECOVERY\boot\bcd

maybe because that is created initially at the point where there is no data on the c:\..it is just a blank partition


CMD line BCDEDIT to point to winre.wim and Disk letter assignment-screen-shot-2013-12-28-12.02.50.png







Quote   Quote: Originally Posted by Kaktussoft View Post
System PARTITION BCD's: Where is that bcd located?
in a boot folder on the SYSTEM drive..the 300mb 1st partition

System\Boot\bcd
CMD line BCDEDIT to point to winre.wim and Disk letter assignment-screen-shot-2013-12-28-12.07.10.png



Quote   Quote: Originally Posted by Kaktussoft View Post
FROM WORKING C:\: That bcd is on C?
Yes on c:
c:\boot\bcd

CMD line BCDEDIT to point to winre.wim and Disk letter assignment-screen-shot-2013-12-28-12.10.01.png




Quote   Quote: Originally Posted by Kaktussoft View Post
Post bcdedit/enum all output.
have mounted the drive on an external USB adapter and pulled the BCD's off it from there and viewed the output via EasyBCD running on a VM machine.

Will booting the real machine from this HDD and running bcdedit/enum all give a different output? If so , i'll get on with it.


My System SpecsSystem Spec
28 Dec 2013   #17
Kaktussoft

Microsoft Community Contributor Award Recipient

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

From Elevated Command Prompt
Code:
bcdedit /store  C:\boot\bcd  /enum all
Replace C with actual drive letter of HP_RECOVERY, C drive, SYSTEM RESERVED.
Post output.

Which of the 3 partitions has been marked as ACTIVE btw?
My System SpecsSystem Spec
28 Dec 2013   #18
NeilPaisnel

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

Should I do this from within elevated cmd prompt of the running system? or boot from Win PE USB or Win7 Install disk Repair console?
My System SpecsSystem Spec
28 Dec 2013   #19
Kaktussoft

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
Should I do this from within elevated cmd prompt of the running system? or boot from Win PE USB or Win7 Install disk Repair console?
From any system that can run bcdedit. And of course it must be able to access the HP_RECOVERY, SYSTEM and C partition.
My System SpecsSystem Spec
28 Dec 2013   #20
NeilPaisnel

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

OK, well I have it running now from within win7...

just having issues with exporting to text.

reading this now
BCDedit output to text ?

It is the 300mb System partition that is the active one
My System SpecsSystem Spec
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Vbs Object required: '' (error on Line 5)(letter 1)
as it says in the title Option Explicit dim custFolder, folder custFolder=InputBox("Type custom path") Folder.CreateFolder "C:\" & custFolder & "folder1"
General Discussion
Drive Letter assignment for OS, want multiple OSs to think they are C:
Hi All First post here. This is the system that I used to have. An SSD with XP32, and another HDD with Win7x64. I first started with XP and then later installed 7. When I installed Win7 it called the partition that it was installed on "C:" (even though the XP installation claimed its...
Installation & Setup
Changing Hard disk Letter through Disk Manament
Hey guys quick question 1. I have a 1TB Drive Partitoned in half C:5OOGB and F:500GB Now I recently Purchased another 1TB Drive and its already setup. 2. Id like to Change the Drive letter F: wich would be the Second Partition of The Drive C: and assign this Letter to the New Drive. 3.The...
Hardware & Devices
Disk letter problem
I have a big problem with a disk letter on my external hdd .Recently I've added a new internal hard disk and all my partition letters changed.No problem until i noticed that i really need the partition F for my external drive.No problem , so i go : right click on my computer -> Manage -> disk...
Hardware & Devices
Drive letter assignment problem
My laptop computer has a built-in card reader for Memory Sticks and SD cards to which Windows 7 assigns two drive letters. As I never use the Memory Stick reader I would like to use the drive letter assigned to it for one of the partitions of the hard disk. The problem is that the Memors Stick...
Installation & Setup
Save drive letter assignment?
Hi there, I installed Windows 7 to test it on my PC (I still use XP for most purposes). Now I want to reinstall it because I want to try a different version. Unfortunately, I would have to re-assign all drives again and I have a lot of them. So my question is this: Is there any way to save...
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 20:14.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App