[SOLVED] How to remove GRUB2 & Ubuntu from MacBook Pro with Windows 7, Ubuntu and OS X?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How to remove GRUB2 & Ubuntu from MacBook Pro with Windows 7, Ubuntu and OS X?
I really got myself into a position this time.
They finally got the MCP89 kernel patch finalized and released as a Ubuntu DVD in the daily build of Lucid Lynx (good job!). I tried it, but even after following Ubuntu's Wiki-guide to fix various problems, a lot of my Mac's functionality broke and I don't want to take up that battle yet (of trying to get everything to work perfectly {I'm a perfectionist}).
So I want to remove Ubuntu and GRUB2 from my system. But even with some experience with problems like these, I'm in the ultimate pickle. OS X uses the GUID Partition scheme and EFI, whilst bootcamp has a BIOS/MBR emulator to run Windows. I installed the GRUB bootloader to the MBR (I think {In "/dev/sda" during the install}). I use rEFIt to chainload into GRUB2 to boot Ubuntu, and I want to remove that icon, return to booting Windows 7 using it's own bootloader, and restore the GB's that Ubuntu took back to the Windows 7 partition.
I'm lost and (for the first time in a while) WAY over my head. I have no experience with EFI/GUID. (I just got my first Mac a month ago)
AFAIK efi or rEFIt in Mac is a hardware dependent system for using with gpt disks. It is needed by the operating systems with poorly engineered boot loaders having limited capabilities. None of the MS Windows with their current boot loaders can be booted from a gpt disk without the use of efi and only their 64-bit versions have that capacity too.
Grub2 does not need efi to boot partitions in a gpt disk and I have used Grub2 to boot the 128th partition of a 2TB disk in just an ordinary PC.
The efi is a hardware feature in a motherboard and your rEFIt should be the software to manage it. If rEFIt (First boot loader) has been chainloading Grub2 (Second boot loader) then you can only remove the second boot loader by configure first boot loader rEFIt.
You could choose to nuke Ubuntu, use its hard disk space for a different purpose so that Grub2 is broken and unbootable. That will be the minimum work.
But I want to get rid of the icon and GRUB bootloader as well. Like, actually gone.
And because Windows is a legacy OS, not properly erasing GRUB will result in not being able to load Windows 7 either.
I want to keep Mac OS X and Windows 7 untouched.
I don't know how to uninstall GRUB without a Windows repair disk (Win7 install disk won't let me repair, says that it can't recognize the partition {but I can still boot into and use Windows [Microsoft, that's idiotic BTW]}), but still be able to boot into Windows.
Another key problem here is that I can't use Super GRUB to fall back to Windows 7 because the MCP89 kernel patch is so new that very few, extremely bleeding edge 'daily builds' only have the patch thus far.
I have no idea how to correctly configure rEFIt to remove GRUB. I need GRUB to be removed because I won't have any need for it, and it adds another thing to click before Windows boots. Besides, if I erase Ubuntu to get those valuable GiB's back, then I can't boot Windows anymore.
So in recap, I need to:
A) Remove GRUB from my system, making sure that Windows 7 is untouched.
B) Resynchronize the GPT with the MBR.
C) Remove the icon from rEFIt so it looks nice again.
Please help. Thanks in advance guys.
Last edited by lupusarcanus; 07-17-2010 at 08:26 PM.
I nuked Ubuntu first, booted a Live CD and cleared the MBR, then had the Windows install disk fix it.
Strangely, the Windows install disc wouldn't fix the MBR until Ubuntu was completely off the system.
I saw on the Bug report that someone had a lot of success with OpenSUSE, and I'm going to give it a go.
EDIT: All I had to do to synchronize the GPT with the MBR is boot Mac OS X and open Disk Utility, let it gather disk information and voila, all is synced.
Flavor-blasted Goldfish are really good.
Last edited by lupusarcanus; 07-18-2010 at 06:40 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.