BCDEDIT confusion

johne53

New member
Member
Local time
6:19 AM
Messages
48
My old PC could boot into either of two completely independent OS's - Windows XP and Windows 2000. Selection was controlled by the boot.ini file on the XP partition.

Neither OS could see the other. So when I booted into WinXP, XP became my C: drive whereas Win2K had no drive letter assigned. Conversely, when I booted into Win2K, 2K became my C: drive whereas WinXP had no drive letter assigned.

I'd like to replicate this arrangement on my new PC which currently has only Windows 7 installed (but I'd like to add WinXP as a second bootable OS).

As I understand it, Windows 7 no longer uses boot.ini. Instead, it uses a command line utility called bcdedit. However, unless I've missed something, bcdedit cannot boot from a drive unless Windows 7 has allocated it a drive letter. This is a seriously backward step from the old boot.ini philosophy, since it makes it impossible to have two boot OS's completely isolated from each other.

What am I missing here? Surely this isn't true??
 

My Computer

Computer Manufacturer/Model Number
Mac Mini
OS
Windows 7
Memory
4GB
Hello johne53.



If you want to 'hide' one OS from another in a Windows managed dual boot; once both are installed ...


In Windows 7 remove the XP drive letter.

In XP remove the Windows 7 drive letter, if Windows 7 is the "System" partition XP may not let you remove its drive letter.



The real way to 'hide' one OS/HDD from another is to install each OS to its own Hard Disk Drive (HDD) one at a time.

Start by disconnecting all HDDs except the one to install Windows 7 to from the motherboard; when that's installed, disconnect that one and connect a second HDD to install XP to; then power down the PC and connect both HDDs; then set the OS/HDD you want as default in the BIOS, then when you want to boot/start the second OS/HDD use the BIOS one-time boot menu specific to your mobo to make the selection.
Asus - F8
HP/Compaq - Esc
Sony - F2
Acer - F2
Gateway - F10
eMachnes - F10
Toshiba - F12
Dell - F12
IBM/Lenovo - the blue Thinkvantage button


 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Many thanks for the quick reply. I only have one internal hard drive, so let's see if I understood you correctly....

Suppose I temporarily allocated the letter Z: to WinXP and used bcdedit to set it up as an alternative boot option. Are you saying that once it's set up, I can remove the Z: allocation and the dual-boot feature will still work?
 

My Computer

Computer Manufacturer/Model Number
Mac Mini
OS
Windows 7
Memory
4GB
One thing, Windows will not allow the system volume drive letter to be removed and XP will not boot if it is.



Sorry I mislead you, I didn't remember the XP limitations until after I posted that. :o
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Just as a test I decided to copy my Windows 7 partition so that I now have two of them (I copied it using Paragon's Drive Backup 10, which performs a full, block-level copy as opposed to simply coping the files). I assumed that I'd be able to dual-boot between the two Win7 partitions but that doesn't seem to be possible. :sick:

AFAICT the Windows 7 boot manager only permits one bootmgr partition and one ntldr partition. You can't have two of either. Therefore I couldn't (for example) dual-boot between Win7 and Vista if I wanted to. If this is true, it's utter crap. The old boot.ini scheme was much more flexible.
 

My Computer

Computer Manufacturer/Model Number
Mac Mini
OS
Windows 7
Memory
4GB
That's not correct; this from my system when I was testing various Windows 7 releases.


118608-dual-booting-win7x64-server-2k8-boot-menu.jpg

 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Hmmm.... how did you create the extra entries using bcdedit? In my case I created a second Win7 partition and mounted it as drive Z: I intended to call it "Windows 7 Fallback" by following these instructions which I adapted from some instructions I found elsewhere on this forum:-

bcdedit /create {bootmgr} /d "Windows 7 Fallback"

bcdedit /set {bootmgr} device partition=Z:

bcdedit /set {bootmgr} path \Windows\system32\winload.exe

bcdedit /displayorder {bootmgr} /addlast
However, the very first command failed because there was already an entry with the bootmgr identifier. I also tried using the identifier current but that failed too. How do I create a new identifier for the Fallback partition? I'm guessing I need to create a UID identifier but how do I find the correct UID for my copied partition?
 

My Computer

Computer Manufacturer/Model Number
Mac Mini
OS
Windows 7
Memory
4GB
http://www.sevenforums.com/tutorials/8057-dual-boot-installation-windows-7-xp.html

When you install Win7 last after the legacy OS's or itself, it will auto-configure a Windows-managed Multi-Boot menu.

If for some reason this doesn't work or you already have OS's which need configured into Dual- or Multi-Boot Menu, install EasyBCD 2.0 and add the missing OS's on its Add OS tab. Welcome to EasyBCD 2.0! — The NeoSmart Files

If you have further problems please post back a screenshot of your full Disk Management drive map and listings and the EasyBCD listings, using Snipping Tool in Start Menu.
 
In Windows 2000, XP the three key boot manager loading files are:
ntldr, Ntdetect.com, and boot.ini
All 3 are in the root of active, system primary partition.

In Vista, Windows 7 the booting functionality (above 3 files if you like) have been replaced by:
bootmgr, BCD, and winload.exe
Only bootmgr and BCD stay in the root of the system partition. Winload.exe resides in windows/system32 folder of the boot partition. These can be separate partitions and by default MS/Windows places bootmgr and BCD in a separate 100MB partition (System reserved, active, primary). Winload.exe is in a separate Boot, OS partition. They can coexist in the one partition and many people appear passionate about making this happen (read the forum threads).

For Bios booting, the role of the MBR (Master Boot Record) on the first physical 512 bytes of booting device (typically HDD) remains the same.

Boot.ini can be edited with a text editor. BCD requires bcdedit.exe or via 3rd party programs like EasyBCD.

The move by MS in booting architecture has positives and some negatives (which can be overcome). It is thought to be consistent with a more widespread move to a UEFI (Unified Extensible Firmware Interface) architecture. The MBR is part of a 25 year old architecture and a change is probably overdue.

Read some more here.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
Thanks for the info, mjf. That link in particular was very helpful. Maybe part of my problem is that I'm running Windows 7 on an Apple Mac (which I configured for dual-booting using Apple's "Boot Camp" utility). Internally, Macs use a GPT partitioning scheme but Boot Camp effectively "fudges" a fake MBR scheme to present to Windows. In other words, Windows thinks that the underlying drive is MBR when in fact, it's GPT.

When I first copied my Win7 partition and used bcdedit, both menu options were taking me to the same boot partition. This ties in with that article's comments about moving a partition to a new offset. I suspect that the copied partition originally had the same GUID. Therefore in both cases, my Windows 7 boot manager was simply jumping to the first offset it found for that particular GUID.

I've now changed the GUID of the copied partition and switched to EasyBCD instead of bcdedit. This time I get a little further, though not much.... I can still boot into my original Win7 partition but when I try to select the copied partition my boot fails with the error "autochk program not found - skipping AUTOCHECK" (at which point, the system resets itself). Interestingly, this isn't the error that I'd expect from reading that article if I had an offset problem ("winload.exe.....is missing or corrupt"). So I'm guessing that my GUIDs and offsets are now fine but I must have some other kind of problem. :sick:
 

My Computer

Computer Manufacturer/Model Number
Mac Mini
OS
Windows 7
Memory
4GB
Back
Top