Go Back   MacRumors Forums > Apple Systems and Services > Windows, Linux & Others on the Mac

Reply
 
Thread Tools Search this Thread Display Modes
Old May 24, 2009, 07:40 PM   #1
dimme
macrumors 6502a
 
Join Date: Feb 2007
Location: SF, CA
Boot record repair tools for OS X

I was bored a few weeks ago and installed ubuntu on my mac pro. I forgot it will install grub so it totally messed my OSX boot partition I thought I fixed it buy using rEFIt. Until today when my osx disk would not boot at all. I tried repairing permissions, disk utility , drive genius, rEFIt you name it nothing worked. I had to reformat and reload from my backup. So what is odd now is my windows disk which is in bay 2 shows up in disk utility as the first disk. Do anyone know of a repair tool I can run on my OSX disk.
Terminal gpt -r show -l /dev/disk0 gives me this
gpt show: /dev/disk0: Suspicious MBR at sector 0
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - "EFI System Partition"
409640 624470624 2 GPT part - "Untitled"
624880264 262151
625142415 32 Sec GPT table
625142447 1 Sec GPT header
And rEFit partition inspector gives me this

*** Report for internal hard disk ***

Current GPT partition table:
# Start LBA End LBA Type
1 40 409639 EFI System (FAT)
2 409640 624880263 Mac OS X HFS+

Current MBR partition table:
# A Start LBA End LBA Type
1 1 409639 ee EFI Protective
2 * 409640 624880263 af Mac OS X HFS+

MBR contents:
Boot Code: Unknown, but bootable

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
__________________
dimme is offline   0 Reply With Quote
Old May 25, 2009, 07:03 AM   #2
dimme
Thread Starter
macrumors 6502a
 
Join Date: Feb 2007
Location: SF, CA
I fixed the problem! I used a Gpart Live CD It is a very god and free partition editor.
__________________
dimme is offline   0 Reply With Quote
Old Mar 16, 2011, 09:03 AM   #3
seventyeight
macrumors newbie
 
Join Date: Mar 2011
I have the same problem here. Do you remember what you did with gParted? Can you give me an detailed explanation what i have to do to repair my MBR?
seventyeight is offline   0 Reply With Quote
Old Mar 17, 2011, 10:57 AM   #4
dimme
Thread Starter
macrumors 6502a
 
Join Date: Feb 2007
Location: SF, CA
Quote:
Originally Posted by seventyeight View Post
I have the same problem here. Do you remember what you did with gParted? Can you give me an detailed explanation what i have to do to repair my MBR?
I really can't remember what I did to fix it but it was pretty easy. Sorry I can't be of any help.
__________________
dimme is offline   0 Reply With Quote
Old Mar 17, 2011, 11:04 AM   #5
balamw
Moderator
 
balamw's Avatar
 
Join Date: Aug 2005
Location: New England, USA
Quote:
Originally Posted by seventyeight View Post
I have the same problem here. Do you remember what you did with gParted? Can you give me an detailed explanation what i have to do to repair my MBR?
Download showpart (the rEFIt partition inspector) from this thread http://forums.macrumors.com/showthread.php?t=1070175 and post the output. This will help us figure out what the next steps should be.

B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme
balamw is offline   0 Reply With Quote
Old Dec 14, 2011, 09:04 PM   #6
gmiller1018
macrumors newbie
 
Join Date: Dec 2011
Attempting a recover

My mac is setup for triple boot (OSx, Linux, Windows 7) or at least was till I tried to install Fedora core 16 with grub2. I can still boot OSx but the others are in a non bootable state (I can read the files but I can't get rEFIt to fix the MBR at this point. When I rub te Partition Inspector that is part of rEFIt I get the following:


*** Report for internal hard disk ***

Current GPT partition table:
# Start LBA End LBA Type
2 409640 163725351 Mac OS X HFS+
3 163989504 226902015 Basic Data
4 226904064 312580095 Basic Data
5 163725352 163989503 Linux Swap

Current MBR partition table:
# A Start LBA End LBA Type
1 1 409639 ee EFI Protective
2 409640 163725351 af Mac OS X HFS+
3 * 163989504 226902015 83 Linux
4 226904064 312580095 07 NTFS/HPFS

MBR contents:
Boot Code: Unknown, but bootable

Partition at LBA 409640:
Boot Code: None
File System: HFS Extended (HFS+)
Listed in GPT as partition 1, type Mac OS X HFS+
Listed in MBR as partition 2, type af Mac OS X HFS+

Partition at LBA 163989504:
Boot Code: GRUB
File System: ext3
Listed in GPT as partition 2, type Basic Data
Listed in MBR as partition 3, type 83 Linux, active

Partition at LBA 226904064:
Boot Code: Windows BOOTMGR (Vista)
File System: NTFS
Listed in GPT as partition 3, type Basic Data
Listed in MBR as partition 4, type 07 NTFS/HPFS

Partition at LBA 163725352:
Boot Code: None
File System: Unknown
Listed in GPT as partition 4, type Linux Swap

Any suggestion for what I can do to fix this, I got into this problem by using a linux partition editor to try to fix an original issue with the failure of grub2 to install and now have this mess. Any help would be appreciated,
gmiller1018 is offline   0 Reply With Quote
Old Dec 15, 2011, 07:20 AM   #7
gmiller1018
macrumors newbie
 
Join Date: Dec 2011
I have noticed that the MBR table has an EFI protected section that I DO NOT have in the GPT table so I am assuming that is the real issue. The MBR has the same number of partitions but it INVENTS an EFI protected partition so I have to assume I need to get one on the GPT side to get the "generated" MBR to be correct. This I am unsure how to do since I guess I don't know what purpose it serves. :-(

Last edited by gmiller1018; Dec 15, 2011 at 08:54 AM.
gmiller1018 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Windows, Linux & Others on the Mac

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Ran Repair Disk on Boot Camp partition and Windows won't boot sneak3 Windows, Linux & Others on the Mac 0 May 26, 2014 08:22 AM
How to repair Boot Camp Utility SCOLANATOR OS X Mavericks (10.9) 2 Feb 24, 2014 07:10 AM
Best tools for iPhone and iPad repair? tekboi iPhone Accessories 4 Feb 3, 2014 01:41 AM
iPad: Same repair tools used on iPad? patent10021 iPad 2 Feb 1, 2014 05:09 PM
Create partition on master boot record external drive? igneousc OS X 10.8 Mountain Lion 1 Nov 28, 2012 12:06 AM

Forum Jump

All times are GMT -5. The time now is 07:31 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC