Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Raing install has corrupted Vista MBR

  1. #1
    Join Date
    Jun 2013
    Beans
    16

    Raing install has corrupted Vista MBR

    Hi could someone help please.
    I have installed the fairly new Ubuntu raring and have had my Vista MBR corrupted somehow. After reading some threads (here and everywhere) I managed to install and run boot-repair which gave the following result for the Vista partition:
    sda2: __________________________________________________ ________________________
    File system: ntfs
    Boot sector type: Grub2 (v1.99-2.00)
    Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of sda2 and looks at sector 353995848 of the same hard drive for core.img, but core.img can not be found at this location. No errors found in the Boot Parameter Block.

    Operating System: Windows Vista
    Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe /ubuntu/winboot/wubildr /ubuntu/winboot/wubildr.mbr
    1. I am sure there is something wrong with the boot files section ther-in but I am at a loss to resolve the same. Any help?
    2. When I try to load cfdisk, it give the error "FATAL ERROR: Bad logical partition 6: enlarged logical partitions overlap"

    Notwithstanding, I am able to boot into Ubuntu (both directly to the installed version AND onto the live system). Any pointer(s) on how to resolve this?
    (PS. i have been, until yesterday, still running jaunty without issue but thought to upgrade to the latest and having been up till late last night trying to resolve this, the experience is really not nice!)

  2. #2
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Raing install has corrupted Vista MBR

    Let's see the whole of the boot-info file please.

    You can just give us the postbin link that you will have been given after running the script, and that may give us a lot more detail of what the situation really is.
    DISTRO: Xubuntu 12.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  3. #3
    Join Date
    May 2007
    Beans
    12,539

    Re: Raing install has corrupted Vista MBR

    From the wubildr entries, it looks like you tried to install Wubi -- which does not work anymore, as they have dropped it staring with Ubuntu 13.04.
    Ubuntu 14.04, Mint 17; MS Win 8.1.
    Will not respond to PM requests for support -- use the forums.

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Raing install has corrupted Vista MBR

    Like ajgreeny, it would be better to have the link to the full BootInfo report as there may be other issues.

    But what you show has grub installed to the PBR of a NTFS partition boot sector. All NTFS partitions have to have NTFS in the PBR not anything else. But NTFS does keep a backup which if you only installed once can be used to restore the NTFS PBR.

    Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
    If win7 use small 'system reserved' NTFS partition instead of the partition where windows was installed for win7
    This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.
    http://sourceforge.net/apps/mediawik...ms:Boot_Sector
    You want to get to this screen:
    http://www.cgsecurity.org/wiki/TestD...ector_recovery

    OR:
    [HowTo] Repair the bootsector of a Windows partition - YannBuntu
    https://help.ubuntu.com/community/BootSectorFix
    http://ubuntuforums.org/showthread.php?t=1926510
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Jun 2013
    Beans
    16

    Re: Raing install has corrupted Vista MBR

    Thank you all for the responses, and apologies for not responding earlier (I am new to this forum and had expected to receive an email when a response was made, but none appeared!)
    I have been busy trying to rectify my predicament in the meantime, and I seem to have done more damage to my system than before, however, I will save you the details of that and just provide you with my LATEST link to the boot-repair (BootInfo?) log.
    http://paste.ubuntu.com/5799685/

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Raing install has corrupted Vista MBR

    There is a user setting somewhere that you can get emails on every new post. We upgraded Forum to vB4, so some of the details may be a bit different.
    Guide to Forum features:
    http://ubuntuforums.org/showthread.php?t=2054969
    http://ubuntuforums.org/showthread.php?t=1006656

    You have several other issues, so good to see BootInfo report.
    But you need to use testdisk as posted above to try to recover the PBR or partition boot sector of sda2. Generally you never install grub2's boot loader to a partition with BIOS/MBR configurations, just to a drive. Or you only install grub to sda, sdb etc, never sda1, sda2, sdb3 which are partitions. Only exception may be if you had another grub installed and then you still would never install to a NTFS partition's PBR.

    You also have more than one boot flag on sda. Grub does not use Boot flag, but Windows has to have a boot flag on the NTFS partition you boot from, want to repair, or install Windows into. One boot flag per hard drive and on sda you should only have boot flag on sda2. You can use gparted or Disk utility to remove flags. You can also use command line:

    set boot flag on for sda2 (off on others)
    sudo sfdisk -A2 /dev/sda

    You are missing two of the three boot files Windows needs.

    Vista/7 (with 7 the first two files are usually in a separate 100MB boot partition)
    /bootmgr /Boot/BCD /Windows/System32/winload.exe

    I have seen users just copy /bootmgr and a BCD from a repairCD or other install and then manually edit the BCD to be correct for the install with bcdEdit.

    How to fix Vista/Window 7 when the boot files are missing - rebuild BCD with bcdedit
    http://ubuntuforums.org/showpost.php...32&postcount=4

    Or after fixing boot flags you should be able to run Windows repairs. But it may take three times with the auto repair and will then overwrite grub in the MBR. So you then can use Boot-Repair or manually reinstall grub2's boot loader to the MBR.

    Not sure if anything else is an issue, but lets fix those first. I do not see an overlapping partition error?

    Do you have a Vista repairCD or flash drive?
    If you have another Vista machine.

    Make your own Windows repairCD (not vendor recovery):
    http://forums.techarena.in/guides-tutorials/1114725.htm
    Windows users only - Silverlight
    http://windows.microsoft.com/en-GB/w...em-repair-disc

    Windows 7 repair USB, Also Vista if service pack installed
    http://www.intowindows.com/how-to-re...tion-dvd-disc/
    http://www.webupd8.org/2010/10/creat...usb-drive.html
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  7. #7
    Join Date
    Jun 2013
    Beans
    16

    Re: Raing install has corrupted Vista MBR

    oldfred, thanks for the response.
    I have not had a chance to look at setting up the emails yet but will do later (more pressing issues while I have your attention!)
    1. I have managed to remove the boot flags from all partitions bar sda2 as advised using fdisk.
    2. I am missing the Backup BS option in testdisk as per intructions so I have chosen Rebuild BS - result is Extrapolated boot sector and current boot sector are identical. I assume I need to reboot before I can re-run this, which I will do.
    3. In the meantime, I do NOT have a Vista recovery disk (infact my Vista recovery partition sda1 is no longer visible / bootable, which it was yesterday!)
    I will update as soon as I finish rebooting and re-running testdisk.

  8. #8
    Join Date
    Jun 2013
    Beans
    16

    Re: Raing install has corrupted Vista MBR

    Just the update to testdisk - I re-run it after rebooting and I still do not have the Backup BS option, so I am on a dead-end on that for now.

  9. #9
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Raing install has corrupted Vista MBR

    I think the Rebuild BS creates a valid NTFS partition boot sector but it is XP type. I once used a Windows 7 repair flash drive to run chkdsk on my XP install, it worked better than XP's chkdsk, but converted the PBR to Vista/7 type. With teskdisk you can compare PBR's and structure was different and in plain text the new PBR had bootmgr and the backup (XP one) had ntldr. So I restored backup and XP then worked better.

    When grub is in PBR, Windows will not even run chkdsk on the NTFS partition. But once converted to XP NTFS then you can run Vista/7 chkdsk and it will fix it. But you still need the other boot files. And none can really be done from Linux. Or you need a Windows repair disk. Not sure what third party repair tools there are.

    May be able to run chkdsk from Hiren's boot CD. (mini xp.) But not sure if just XP?
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  10. #10
    Join Date
    Jun 2013
    Beans
    16

    Re: Raing install has corrupted Vista MBR

    OK I think I just hit a brick-wall.
    1. I have most definitely corrupted both my MFT and bootsector for sda2 (and possibly sda1 too) - I gleaned this from the testdisk manual (both MFTs are identical and so are the bootsectors, though I know now to be incorrect). Leaves me with the single option of running chkdisk from a Vista rescue disk, however, since I can no longer boot into sda1 either, I am at a loss, albeit the online rescue disk for $19 .... (but that would be a cost on Ubuntu)
    2. I have an XP pro hardisk that I have attached via USB to my laptop (I was trying to boot into XP in the hope of running chkdisk from there), however, since it was not originally installed for this laptop, it bombs on every attempt to boot-up! The same disk has a recovery partition that I think would be a better try to boot up, but does not get installed by sudo update-grub, any ideas how to achieve that?
    3. Could I get ANY Vista installation's boot sector to work on my harddrive? For example, if someone with Vista (or Win 7) did a sudo dd if=/dev/sda2 of=vistambr.mbr bs=512 count=1 and sent me the resultant vistambr.mbr file, would that work on my install?
    The last one seems a far fetched one, but gotta try something ......

Page 1 of 3 123 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
  •