partition/mbr trouble after trying ubuntu

Discussion in 'Windows, Linux & Others on the Mac' started by xemino, Mar 20, 2011.

  1. xemino Guest

    Joined:
    Aug 28, 2009
    #1
    hello,

    i had a three boot system w/ osx, ubuntu and win7. now i removed ubuntu and restored my time machine backup.

    grub is gone ofc and so is the windows mbr. i tried messing w/ the bootcamp partition used the repair startup function from the win7 dvd, didn't fix it. tried testdisk under osx, couldn't save the partition layout nor rebuilt the boot sector.
    i made it worse i guess, because now the bootcamp partition isn't recognized anymore. fiddling w/ gparted didn't help either.

    all the data is still there, checked that via testdisk, i'd like to avoid re-installing and having to retrieve my files from the borked partition.

    this is my partition inspector output from the refit tool:
    Code:
    *** Report for internal hard disk ***
    
    Current GPT partition table:
     #      Start LBA      End LBA  Type
     1             40       409639  EFI System (FAT)
     2         409640    868370423  Mac OS X HFS+
     3      868632576    976773119  MBR partition scheme
    
    Current MBR partition table:
     # A    Start LBA      End LBA  Type
     1              1       409639  ee  EFI Protective
     2 *       409640    868370423  af  Mac OS X HFS+
     3      868632576    976773119  07  NTFS/HPFS
    
    MBR contents:
     Boot Code: GRUB
    
    Partition at LBA 40:
     Boot Code: None (Non-system disk message)
     File System: FAT32
     Listed in GPT as partition 1, type EFI System (FAT)
    
    Partition at LBA 409640:
     Boot Code: None
     File System: HFS Extended (HFS+)
     Listed in GPT as partition 2, type Mac OS X HFS+
     Listed in MBR as partition 2, type af  Mac OS X HFS+, active
    
    Partition at LBA 868632576:
     Boot Code: Unknown, but bootable
     File System: NTFS
     Listed in GPT as partition 3, type MBR partition scheme
     Listed in MBR as partition 3, type 07  NTFS/HPFS
    
    
    any help in getting my partition back and fixing the mbr would be very appreciated.
    best
    x
     
  2. Detrius macrumors 68000

    Joined:
    Sep 10, 2008
    Location:
    Asheville, NC
    #2
    If you can still mount the Windows volume, you can use WinClone to make an image of it. If not, you can use "gpt" at the command line to rebuild your partition table, but it looks like the partition table is probably OK.

    You can copy the MBR from another system using "dd" at the command line. Google it. There are directions out there for copying the MBR to a file on a Mac using dd.
     
  3. xemino thread starter Guest

    Joined:
    Aug 28, 2009
    #3
    as i said, i can't mount the partition no more, so fixing the mbr is only one thing.
     

Share This Page