Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > How to move BCD Boot manager files in Vista to another partition

Reply
Thread Tools Display Modes

How to move BCD Boot manager files in Vista to another partition

 
 
hnyman
Guest
Posts: n/a

 
      08-25-2008
Background:

I have Vista32 in my PC, and after some new hardware related crashes I
decided yesterday to completely restore Vista partition from backup with
Acronis. However, in the middle of the restore from USB HDD, the backup
complained about faulty archive and I ended up with no working C: partition.
I reinstalled Vista from DVD and also all the programs. The loss of the
Vista OS partition was not that hard, as all my personal data is on D: and
E: on the same drive.



However, as the reinstall started from a situation, where there was empty
space instead of C:, I realized only after the install that Vista had set
the BCD boot files to D: (the first existing partition at installation
start), while the operating system is quite correctly installed to the
recreated C:.



> C:\Users\hannu>bcdedit /v


> Windows Boot Manager


> --------------------


> identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}


> device partition=D:


> description Windows Boot Manager


> locale en-US


> inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}


> default {d7909ee9-7166-11dd-9349-98516989298b}


> displayorder {d7909ee9-7166-11dd-9349-98516989298b}


> toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}


> timeout 30


>


> Windows Boot Loader


> -------------------


> identifier {d7909ee9-7166-11dd-9349-98516989298b}


> device partition=C:


> path \Windows\system32\winload.exe


> description Microsoft Windows Vista


> locale en-US


> inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}


> osdevice partition=C:


> systemroot \Windows


> resumeobject {d7909eea-7166-11dd-9349-98516989298b}


> nx OptIn




The PC works just fine, but I do not like mixing the pure "data partition"
D: with the boot sequence. I also realized with the reinstall to have
destroyed C:, that having the BCD data on the OS partition may be
problematic at some times. Although everything works now just fine, I would
like to transfer the BCD data either to C: or, maybe even better, to a small
2 GB partition S: created for that purpose.



Thus, the status was:

C: Boot, Page file, etc. (contains actual Vista OS)

D: System, Active (contains the BCD boot manager files) and my data

E: data

S: empty (2 GB)

All partitions are primary partitions, and formatted with NTFS.



I looked for advice transferring the BCD data to another partition, but did
not found complete advice, and thatswhy I am writing this message as a guide
for others.



The following pieces of information proved useful:

http://www.vistax64.com/vista-hardwa...tml#post790775

Defines the requirements for a 'System' partition. It sounds like I need
:copy the correct BCD files to S: and mark that S: partition active. Would
that be enough?

http://www.techenclave.com/guides-an...cd-114342.html

Sounds working, but requires boot with Vista DVD. Or does it actually?

http://neosmart.net/wiki/display/EBC...r+from+the+DVD

Step Three 'Manual Repair' and Four 'Nuclear holocaust' might work. Creating
a new store on S:, and then copying the files there, and then marking the
partition active. BCDEDIT export and then modify...

http://forums.techguy.org/windows-vi...ow-system.html

Or might this actually work by using the official commands? This message
here brought the light for me:

> In my case, both the Windows Memory Diagnostic and the Windows Boot
> Manager were configured for D:, so I want to change those.


> Boot Manager is always reffered to as
> {9dea862c-5cdd-4e70-acc1-f32b344d4795} and so on, so we use the following
> commands to make things right.


>


> C:\Windows\system32>bcdedit /set {9dea862c-5cdd-4e70-acc1-f32b344d4795}
> device partition=c:


> C:\Windows\system32>bcdedit /set {b2721d73-1db4-4c62-bf78-c548a880142d}
> device partition=c:




SOLUTION:



Based on this article, it sounds like it is possible to set one attribute by
time (memory tester, etc.) to a certain disk volume (S: in my case),
provided of course that the needed files are there.

So, if

1) the other files (bootmgr, bootsect.bak and \boot-directory's files) are
copied to S:

2) current BCD system store is exported to S:

3) the function pointers in that new store file (boot manager, memory
tester, legady OS loader) are one by one set by using BCDEDIT to point to
the newly copied files on volume S: instead of D:

4) Vista Boot sector is copied to S: using Vista DVD media and 'BOOTSECT
/NT60 S: /FORCE' command from that DVD while still in normal Vista. (This
part should be done from repair console command prompt of booted Vista DVD
if the target disk has the operating system (C: for me) or is otherwise used
by Vista. Instead 'S:' also 'ALL' can be used to force the boot sector to be
copied to all partitions.)

5) Active bit in partition table is changed to S: before rebooting by using
DISKPART or Disk Management console

Might even work. or how?



Based on the previous thoughts, I wrote the needed commands to be done after
the other (non-locked) files are copied:

> bcdedit /export S:\Boot\BCD


> bcdedit /store S:\Boot\BCD /set {9dea862c-5cdd-4e70-acc1-f32b344d4795}
> device partition=S:


> bcdedit /store S:\Boot\BCD /set {b2721d73-1db4-4c62-bf78-c548a880142d}
> device partition=S:


> bcdedit /store S:\Boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c}
> device partition=S:


> bcdedit /store S:\Boot\BCD /enum all /v


>


> VistaDVD:\BOOT\BOOTSECT /NT60 S: /FORCE


>


> DISKPART


> select disk 0


> select partition 4


> active




After copying the non-locked other BCD files to the new partition,

first the system store is exported to S:,

then the references in that store file to partition D: are replaced by
references to S:,

then the contents are printed out just for verification, just in case

then the boot sector was copied from DVD to S:

and finally DISKPART is used to mark the S: as active.

Then a simple reboot.



IT WORKED!!!



Now I have S: as Active & System containg the BCD files, and D: is just a
normal data partition.



So, this is a way to move Vista BCD boot manager data to another partition,
using only Microsoft's own tools for the transfer and remaining inside a
normally running Vista. The Vista DVD media is needed at just one point for
running the BOOTSECT command from the media. Requires knowledge and careful
operations, but can be done.


 
Reply With Quote
 
 
 
 
The Illusionist
Guest
Posts: n/a

 
      11-10-2008

Many MANY thanks for this post !

This saved me from another Vista install.:

Damn the developer that wrote the installer, as I had many problem
with a brand new laptop and Vista install on it

~T

--
The Illusionis
Posted via http://www.vistaheads.co

 
Reply With Quote
 
saber0091
Guest
Posts: n/a

 
      07-14-2009

That's great dude, cheers on figuring it out. It's interesting to se
your process, and I hope that you are still following this threa
because I would be immensely grateful if you could condense all of tha
long post into a simple how-to from start to finish. It's a bit hard t
follow you in some places

--
saber0091
 
Reply With Quote
 
Bill Daggett
Guest
Posts: n/a

 
      07-14-2009
saber0091 <> wrote:

>
>That's great dude, cheers on figuring it out. It's interesting to see
>your process, and I hope that you are still following this thread
>because I would be immensely grateful if you could condense all of that
>long post into a simple how-to from start to finish. It's a bit hard to
>follow you in some places.


You hope the person is still following the thread AFTER NEARLY A YEAR
has passed AND that person has solved the problem?

You then have the balls to ask that person to re-write his post that
listed what he did to correct the problem because you are having a
problem following it?

You're a complete freaking idiot.

 
Reply With Quote
 
saber0091
Guest
Posts: n/a

 
      07-14-2009

And you, sir, are horribly impolite, mister Bill Daggett

--
saber0091
 
Reply With Quote
 
Gene E. Bloch
Guest
Posts: n/a

 
      07-14-2009
On Tue, 14 Jul 2009 13:11:40 -0500, saber0091 wrote:

> And you, sir, are horribly impolite, mister Bill Daggett.


He was certainly impolite, but he does have a point.

--
Gene E. Bloch letters0x40blochg0x2Ecom
 
Reply With Quote
 
s0121
Guest
Posts: n/a

 
      08-05-2009
Great - my {bootmgr} shows
Windows Boot Manager
--------------------
identifier {bootmgr}
device unknown
description Windows Boot Manager

How do I rename it to partition=C:

Many thanks


"hnyman" wrote:

> "saber0091" <> wrote in message
> news:...
> >
> > That's great dude, cheers on figuring it out. It's interesting to see
> > your process, and I hope that you are still following this thread
> > because I would be immensely grateful if you could condense all of that
> > long post into a simple how-to from start to finish. It's a bit hard to
> > follow you in some places.

>
> As it is a complicated process and you need to understand, I wanted to give
> the background how I found the solution. The walk-through of the solution is
> pretty clearly labeled as SOLUTION there in the bottom part of my original
> message...
>
> But in any case, here is just the "Solution" part a bit reformatted:
>
> SOLUTION
>
> 1) The other non-locked files (bootmgr, bootsect.bak and \boot-directory's
> files) are manually copied to S: drive. Be careful to copy all hidden files,
> and to copy to correct places...
>
> 2) Current BCD system store is exported to S:
>
> > bcdedit /export S:\Boot\BCD

>
> 3) The function pointers in that new store file (boot manager, memory
> tester, legacy OS loader) are one by one set by using BCDEDIT to point to
> the newly copied files on volume S: instead of D:
>
> > bcdedit /store S:\Boot\BCD /set {9dea862c-5cdd-4e70-acc1-f32b344d4795}
> > device partition=S:
> > bcdedit /store S:\Boot\BCD /set {b2721d73-1db4-4c62-bf78-c548a880142d}
> > device partition=S:
> > bcdedit /store S:\Boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c}
> > device partition=S:

>
> 4) Vista Boot sector is copied to S: using Vista DVD media and 'BOOTSECT
> /NT60 S: /FORCE' command from that DVD while still in normal Vista. (This
> part should be one from repair console command prompt of booted Vista DVD if
> the target disk has the operating system (C: for me) or is otherwise used by
> Vista. Instead 'S:' also 'ALL' can be used to force the boot sector to be
> copied to all partitions.)
>
> > VistaDVD:\BOOT\BOOTSECT /NT60 S: /FORCE

>
> 5) Active bit in partition table is changed to S: before rebooting by using
> DISKPART (or Disk Management console)
>
> > DISKPART
> > select disk 0
> > select partition 4

>
> Then a reboot.
>
> ----
>
> So, this is a way to move Vista BCD boot manager data to another partition,
> using only Microsoft's own tools for the transfer and remaining inside a
> normally running Vista. The Vista DVD media is needed at just one point for
> running the BOOTSECT command from the media.
>
> As your config is likely slightly different, i.e. regarding drive letters,
> you may need to modify commands correspondingly.
>
>
>

 
Reply With Quote
 
SIW2
Guest
Posts: n/a

 
      08-06-2009

s0121;1106516 Wrote:
> Great - my {bootmgr} shows
> Windows Boot Manager
> --------------------
> identifier {bootmgr}
> device unknown
> description Windows Boot Manager
>
> How do I rename it to partition=C:
>
> Many thanks
>
>
> "hnyman" wrote:
> > > >
> > > "saber0091" <> wrote in message
> > > news:...> > > > >
> > > > >
> > > > > That's great dude, cheers on figuring it out. It's interesting to
> > > see
> > > > > your process, and I hope that you are still following this thread
> > > > > because I would be immensely grateful if you could condense all of
> > > that
> > > > > long post into a simple how-to from start to finish. It's a bit
> > > hard to
> > > > > follow you in some places.> > > > >
> > > As it is a complicated process and you need to understand, I

> > wanted to give
> > > the background how I found the solution. The walk-through of the

> > solution is
> > > pretty clearly labeled as SOLUTION there in the bottom part of my

> > original
> > > message...
> > >
> > > But in any case, here is just the "Solution" part a bit

> > reformatted:
> > >
> > > SOLUTION
> > >
> > > 1) The other non-locked files (bootmgr, bootsect.bak and

> > \boot-directory's
> > > files) are manually copied to S: drive. Be careful to copy all

> > hidden files,
> > > and to copy to correct places...
> > >
> > > 2) Current BCD system store is exported to S:
> > >
> > >
> > > 3) The function pointers in that new store file (boot manager,

> > memory
> > > tester, legacy OS loader) are one by one set by using BCDEDIT to

> > point to
> > > the newly copied files on volume S: instead of D:
> > >
> > >
> > > 4) Vista Boot sector is copied to S: using Vista DVD media and

> > 'BOOTSECT
> > > /NT60 S: /FORCE' command from that DVD while still in normal

> > Vista. (This
> > > part should be one from repair console command prompt of booted

> > Vista DVD if
> > > the target disk has the operating system (C: for me) or is

> > otherwise used by
> > > Vista. Instead 'S:' also 'ALL' can be used to force the boot

> > sector to be
> > > copied to all partitions.)
> > >
> > >
> > > 5) Active bit in partition table is changed to S: before

> > rebooting by using
> > > DISKPART (or Disk Management console)
> > >> > > > >
> > > > > DISKPART
> > > > > select disk 0
> > > > > select partition 4> > > > >
> > > Then a reboot.
> > >
> > > ----
> > >
> > > So, this is a way to move Vista BCD boot manager data to another

> > partition,
> > > using only Microsoft's own tools for the transfer and remaining

> > inside a
> > > normally running Vista. The Vista DVD media is needed at just one

> > point for
> > > running the BOOTSECT command from the media.
> > >
> > > As your config is likely slightly different, i.e. regarding drive

> > letters,
> > > you may need to modify commands correspondingly.
> > >
> > >
> > > > >



Hi,

I have done this numerous times and it always worked for me.

To change System partition ( if it is on the same HD as existing System
partition):

To change it to C:

1. Copy and paste bootmgr and pale yellow boot folder from existing
system partition to C:

(You get a message bcd is in use and can't be copied - skip it and copy
the rest.)

2. Open an elevated cmd and type :

bcdedit /export C:\Boot\bcd {enter}

3. In Disk Management , mark C Active. Reboot to hand system status to
C.

That's it.

Afaik it doesn't matter where bcd declares bootmgr is - the bootsector
code on the Active partition does not parse the bcd store - it will
always hand control to bootmgr on that same Active partition.

If you wish to change it for completeness:

bcdedit /set {bootmgr} device partition=C:

Hope it helps

SIW2


--
SIW2
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How move Vista boot MANAGER? Kris Windows Vista General Discussion 12 03-26-2008 04:49 PM
Re: How Do I Change Boot Manager Partition From D: to C: john Windows Vista Installation 2 03-25-2007 10:20 PM
How Do I Change Boot Manager Partition From D: to C: Kelly Windows Vista Installation 7 03-24-2007 06:21 PM
Partition for Vista and boot manager Tom Windows Vista General Discussion 5 02-10-2007 05:26 PM
Move the actual boot loader to different partition? Gerry Hickman Windows Vista Installation 1 05-21-2006 02:57 PM



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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59