1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Windows Vista MBR question..?

Discussion in 'Legacy Windows' started by CrunchDude, 2008/02/09.

  1. 2008/02/09
    CrunchDude

    CrunchDude Inactive Thread Starter

    Joined:
    2006/07/15
    Messages:
    590
    Likes Received:
    1
    The boot record for Vista...This is what I did, so as to have a dual-boot configuration not only on two different Primary partitions, but two different hard drives. I partitioned my main 200GB drive temporarily, so that I could install Vista 64-bit from my DVD, as I obviously can't execute the installation from within the 32-bit Vista x86 environment. So I successfully install x64 onto the partition I created on the MAIN 200GB hard drive.

    I can't install anything from DVD or CD media directly onto my 2nd HD, which resides where the DVDRW drive goes, the Thinkpad Ultrabay slot.

    Sooo...After the installation was completed, I replaced the DVDRW drive with my SECOND drive that I ultimately want the Vista x64 installation on! I download the trial of Acronis True Image, and was hoping I could just do a full image of only that partition, but no, it was all (the whole drive) or nothing at all. I love Acronis products, and own Disk Director 10, which is fabulous for partitioning, boot media, etc. Could I have just copied the partition to the new drive?

    At any rate, long story short, Vista's MBR is on the FIRST of two partitons as far as my SECOND HD is concerned, and my Vista 64-bit installation is on the SECOND partition. How do I get it so that I can BOOT from Vista x64, and also delete the SECOND HD's first partition, which is a copy I only made because I was forced to by the program.

    Sorry for the long post...I'm sure someone knows what to do with the MBR!?? :(

    Thank you all...
     
  2. 2008/02/09
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,315
    Likes Received:
    252
    Windows Vista introduces a new boot loader architecture; a new firmware-independent boot configuration and storage system called Boot Configuration Data (BCD); and a new boot option editing tool, BCDEdit (BCDEdit.exe). These components are designed to load Windows more quickly and more securely.

    The traditional Windows NT boot loader, Ntldr, is replaced by Windows Boot Manager (Bootmgr.exe) and a set of system-specific boot loaders. In the new configuration, Windows Boot Manager is generic and unaware of the specific requirements for each operating system, and each system-specific boot loader is optimized for the system that it loads.

    Where is the boot.ini?
    On BIOS-based computers that are running only Windows Vista, the Boot.ini text file is gone (not hidden) and any remnants of it on interim beta test builds are ignored. On computers with both earlier versions of Windows and with Windows Vista, the Boot.ini file remains to support the older versions but it does not affect booting in Windows Vista.

    On EFI-based computers that are running Windows Vista, boot options are still stored in NVRAM. However, in Windows Vista you use BCDEdit to edit boot options on an EFI-based computer just as you would on a BIOS-based computer, instead of accessing NVRAM directly by using Windows APIs or specialized tools such as NvrBoot.

    Windows Vista also includes new BCD classes that are supported by the WMI provider and enable you to edit BCD programmatically. For information about BCD classes, see the end of this tip.



    Introduction


    The Bcdedit.exe command-line tool can be used to add, delete and edit entries in the BCD store which contains objects. Each object is identified by a GUID (Globally Unique Identifier). Every drive or partition on the system will have its own GUID and could be {legacy} (to describe a drive or partition on which a pre-Windows Vista operating system), {default} (to describe the drive or partition containing the current default operating system), or {current} (to describe the current drive or partition one is booted to), or for example {c34b751a-ff09-11d9-9e6e-0030482375e7} (to describe another drive or partition on which an operating system has been installed).

    Bcdedit.exe is located in the \Windows\System32 directory of the Windows Vista partition and can be accessed only from the Command Prompt which is found on the Windows Vista start menu at Start>All Programs>Accessories. Then right click on the dos prompt and hit "Run as Administrator ". Use basic dos commands like Cd.. (to go back a directory) and "cd windows" (to go foward to the windows directory from the current directory), once you have navigated to the C:/windows/system32 folder enter "bcdedit" in the command prompt.


    BCDEDIT Commands

    bcdedit /? Shows all commands one is able to use

    bcdedit.exe /? CREATESTORE Shows detailed information for the command CREATESTORE or any other command available in bcdedit as shown when running bcdedit /? followed by the particular command more information is required for.

    bcdedit or bcdedit /enum all Shows the current structure of your boot configuration data.
    The GUID tags {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} of all Windows installations present on your computer will be displayed.


    Create a Backup

    It is strongly recommended that one creates a backup of the BCD store before making any changes to it.

    bcdedit /export "D:\BCD Backup\Bcd Backup" Creates a backup to a pre-created folder, in this case "BCD Backup" on drive D:

    bcdedit /import "D:\BCD Backup\Bcd Backup" Restores the backup previously created


    Making Changes to the Boot Configuration Data

    bcdedit /set {legacy} Description "Windows XP Professional SP2" Changes the text description of the "Legacy" OS line in the boot menu. The quotation marks must be included in the command

    bcdedit /set {current} description "Windows Vista Build 5270 x86" Changes the text of the boot menu line for the Vista or non-Vista installation one is currently booted to, from the default "Microsoft Windows" or other description to that shown in the quotation marks

    bcdedit /set {5189b25c-5558-4bf2-bca4-289b11bd29e2} description "Windows Vista Build 5270 x64" Changes the text of the boot menu line for any other Vista installation. One must use the GUID for that particular installation as shown when one runs the bcdedit or bcdedit /enum all command

    bcdedit /default {current} Sets the current Windows installation one is booted to as the default Windows boot OS

    bcdedit /default {5189b25c-5558-4bf2-bca4-289b11bd29e2} Sets the referenced Windows OS as the {default} Windows boot OS

    bcdedit /default {legacy} Sets the legacy (Windows XP) OS as {default} boot item

    bcdedit /displayorder Sets the display order of boot menu items for example:

    bcdedit.exe /displayorder {legacy} {current}

    bcdedit /timeout 15 Changes the default 30 second time-out of the boot menu to 15 seconds or any other value inserted.


    Correcting changes to the Partition/Disk structure

    Where a partition or a hard drive has been added or removed and has caused the partition/disk structure to change, this can be corrected by running these commands in the order shown:

    X:\>X:\boot\fixntfs.exe -lh -all (Where X: is the drive/partition on which the folder "boot" is to be found)

    bcdedit /set {5189b25c-5558-4bf2-bca4-289b11bd29e2} device partition=X: Changes boot partition of the OS whose GUID is indicated. (Where X: is new drive/partition required). Must be used together with the osdevice command below

    bcdedit /set {5189b25c-5558-4bf2-bca4-289b11bd29e2} osdevice partition=X: Changes boot partition of the OS whose GUID is indicated. (Where X: is new drive/partition required). Must be used together with the device command above
     

  3. to hide this advert.

  4. 2008/02/10
    CrunchDude

    CrunchDude Inactive Thread Starter

    Joined:
    2006/07/15
    Messages:
    590
    Likes Received:
    1
    Hi Steve...Thanks for the detailed instructions...a little crazy detailed for me lol...

    What would the command line be, for me basically moving the boot record on a hard drive that's partitioned in C: and E: let's say, from C: to E:? That's what I should have asked without my unnecessarily detailed scenario. So the boot record is on the 1st of two partitions, and I need it on the 2nd. Man, I've been learning a lot lately. Thanks so much everybody!!! :)
     
  5. 2008/02/10
    McTavish

    McTavish Inactive

    Joined:
    2005/06/24
    Messages:
    576
    Likes Received:
    1
    So when you installed Vista x64 you let Windows set up its own bootmanager? In which case the Vista boot files (bootmgr and the folder 'Boot')are on the XP partition. What you need to do is move the boot files into Vista and then change the active partition on the hard drive to the Vista one.

    The Vista PBR (partition boot record) may need fixing depending on how you formatted the partition before you installed Vista. If you get the error that "ntldr is missing or corrupt…." then boot to the command prompt from the Vista DVD and run bootrec /fixboot

    BTW, it has nothing to do with the MBR.
    You can’t change the Vista drive letter now and you can’t move the starting point of the Vista partition without having to update the BCD.
     
  6. 2008/02/10
    CrunchDude

    CrunchDude Inactive Thread Starter

    Joined:
    2006/07/15
    Messages:
    590
    Likes Received:
    1
    Actually, I no longer run Windows XP. I am running a dual-boot VUx86/VUx64. I have two valid keys for it, so that's not an issue either. So again, basically I'm wanting to move the boot record on ONE hard drive that's partitioned in C: and E: , from the C: partition to the E: partition. So the boot record is on the 1st of two partitions, and I need it on the 2nd. Does that make sense, or am I missing something here? I'm probably overlooking something minor.

    Thanks! :)
     
  7. 2008/02/10
    McTavish

    McTavish Inactive

    Joined:
    2005/06/24
    Messages:
    576
    Likes Received:
    1
    Everything I said still applies if you have indeed let Windows set up its own bootmanager? Move/copy the Vista bootfiles from the root of the first partition to the second and then set the second as the active partition. You can then wipe the first partition. You will have to edit the Vista bootmenu to remove the dual boot option. (your problem is not with any "boot record ")

    The above is assuming that you are making that drive the boot hard drive in the machine. Is that your intention or do you want to leave it as a second drive? If so and you have a Windows dualboot menu at the moment where you can boot both Vistas on the first hard drive, then you can do what you want by editing the BCD to change the current boot options.
     
  8. 2008/02/11
    CrunchDude

    CrunchDude Inactive Thread Starter

    Joined:
    2006/07/15
    Messages:
    590
    Likes Received:
    1
    Yes, that's exactly what I have now. It's all fixed. I have this Acronis Disk Director, which also has a way to create some kind of boot manager. In the future, I guess I will need it, as I want to install OS X and Linux (Ubuntu 7.10). Although both of those will be installed on a different hard drive. I'm getting ahead of myself here lol...

    I want to thank everyone for their time and effort. :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.