Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Repair Vista Boot Loader

  1. #1
    Join Date
    Jun 2006
    Location
    Fairfax, VA
    Beans
    1,482
    Distro
    Ubuntu 6.06

    Repair Vista Boot Loader

    If dual booting Windows & Linux, and also use GRUB, if you remove the Linux partition(s) you probably can no longer boot Windows. While this is very easy to fix if the Windows operating system is XP or earlier, it is a bit more complicated (but still easy to do) in Windows Vista.

    More often than not, when removing Linux partitions in a dual boot Vista-Linux environment, or when using GPARTED to resize partitions, Vista can no longer boot.

    Windows Vista uses a different boot loader than earlier versions of Windows. Fortunately the Vista bootable DVD contains a utility for repairing the MBR and boot sections of the hard drive. To repair the Vista bootloader: http://support.microsoft.com/kb/927392

    However, the utility mail fail on any action and give an error message of "Element not Found". This is because resizing the Vista partition(s) or Linux partition(s) changes the disk's file allocation table and the Vista partition may get marked as "inactive". The same holds true when removing or resizing Linux partitions. A boot partition MUST be marked as "active" to be bootable.

    The remedy for "Element not Found" is this:

    1.Put the Windows Vista installation disc in the disc drive, and then start the computer.
    2.Press a key when you are prompted.
    3.Select a language, a time, a currency, a keyboard or an input method, and then click Next.
    4.Click Repair your computer.
    5.Click the operating system that you want to repair, and then click Next. (if no Vista operating system is listed, click Next anyway)
    6.In the System Recovery Options dialog box, click Command Prompt.

    Next:

    At the command prompt, type diskpart.
    This will get you to the DiskPart prompt, which allows you to use a variety of hard disk partitioning and formatting tools similar to FDISK in older versions of Windows.

    At the DiskPart prompt, type select disk # where the # sign is the number of the hard disk drive with Vista installed on it. If your Vista drive is the only hard drive in your computer, it is Disk 0.

    Select the partition by typing select partition # where the # sign is the partition that has Vista installed on it.

    Type active and press ENTER. The Vista partition is now active. Finally, type 'exit' to close DiskPart. Reboot the computer using the Vista dvd and follow steps 1-6 above. You can now repair the Vista boot:

    Fix the Master Boot Record: (commands)

    bootrec /fixmbr
    bootrec /rebuildbcd
    bootrec /fixboot


    You should now be able to boot Vista. Then start over again and install Linux!
    Last edited by tturrisi; June 21st, 2008 at 12:50 PM.

  2. #2
    Join Date
    Oct 2008
    Beans
    8

    Re: Repair Vista Boot Loader

    What if I don't have a vista cd: it came pre-installed.

    Is there a way to activate the vista partition from Ubuntu?

  3. #3
    Join Date
    Oct 2006
    Location
    Sacramento, California
    Beans
    529
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Repair Vista Boot Loader

    I wonder the same.
    My friends laptop refuses to boot due to broken boot loader. This is however a single OS setup and it has never been a dual boot setup, so Grub or Lilo has never been installed on it. He did not bring his Vista disk with him and it just went bad while visiting.

    So I wonder if I can repair the bootloader with Ubuntu Live Disc or replace it with Grub.

  4. #4
    Join Date
    Jun 2007
    Beans
    34

    Re: Repair Vista Boot Loader

    Quote Originally Posted by monkeyface766 View Post
    What if I don't have a vista cd: it came pre-installed.

    Is there a way to activate the vista partition from Ubuntu?
    you can download a vista boot cd.
    google Bootmdr is mising

  5. #5
    Join Date
    Mar 2009
    Beans
    4

    Re: Repair Vista Boot Loader

    you should state the commands

    "list disk"

    "list partition"

  6. #6
    Join Date
    Apr 2005
    Beans
    1

    Re: Repair Vista Boot Loader

    The above steps will fail if you're working with "dynamic disks".

    - diskpart: marking as "active" says "invalid operation"
    - bootrec: /rebuildbcd reports "not possible"

    If someone runs into that problems:

    diskpart> list disk
    diskpart> select disk # <- enter correct number from listing

    diskpart> convert basic <- convert disk back to basic

    diskpart> list partition
    diskpart> select partition # <- enter correct number from listing
    diskpart> active

  7. #7
    Join Date
    Jan 2007
    Location
    Stockholm area, Sweden
    Beans
    22
    Distro
    Ubuntu Development Release

    Re: Repair Vista Boot Loader

    Thanks Tturrisi, this helped me recover my Home Vista Basic partition
    (first one on disk) after I removed my Ubuntu stuff on a laptop,
    essentially repairing the boot record.
    Using the automatic start repair command on the Vista DVD simply did a checkdisk and
    did not attempt to restore the boot stuff. But your hints helped me do it.
    The command "bootrec /rebuildbcd" indicated 0 installations detected but
    the repair worked anyway. Some hints continue to help people long after they were posted.
    Last edited by gunnar123; October 13th, 2009 at 07:14 PM.

  8. #8
    Join Date
    Dec 2009
    Beans
    1

    Re: Repair Vista Boot Loader

    Hi All,

    Many thanks for all your help here. My problem wasn't a Ubuntu/linux related one, but thought I'd post up my findings for anyone that experienced similar...

    I was upgrading the hdd on a Sony Vaio laptop running Vista.

    Ghosted the original disk off and ghosted back to new disk.

    Disk wouldn't boot to O/S - kept wanting to start the Vaio recovery partition.

    Downloaded Hiren's boot CD and used MBRWizard to set the O/S partition as active. Still came up with missing O/S on boot.

    Downloaded Vista Recovery CD, booted off it as above and selected repair and command prompt. Ran three bootrec commands (identical to gunnar where is said 0 installations detected).

    Rebooted and O/S started up!

    Thanks again to all posters for advice.

    Paul

  9. #9
    Join Date
    Apr 2010
    Beans
    16

    Re: Repair Vista Boot Loader

    You can easily get a Windows Vista Recovery Disk by following the white rabbit... Er... I mean link. Scroll down a bit, now choose your version and download the ISO image. This is NeoSmart Technologies version not an official Microsoft disk and it's only 120mb http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/

    It has all the recovery functions like in the original Vista DVD disk, yet, something feels missing, yes, there is something missing, it's the full installation of vista. Don't click that option something terrible might happen

  10. #10
    Join Date
    Mar 2009
    Beans
    242

    Re: Repair Vista Boot Loader

    No matter what I do the bootrec /fixboot keeps saying that Element is not found. Note this is a VM copy of my physical machine. I've set the partition active time and time again but it still says "Element not found".

    Help!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •