You are not logged in.

#1 2011-05-25 21:34:05

spiritwalker
Member
From: USA
Registered: 2010-07-15
Posts: 85

[SOLVED] How to remove GRUB from MBR?

Hi,
I have Mac and Arch installed side by side and I use refit to boot. I have also grub installed in both in the MBR and Arch partition. And refit shows two linux icons at startup. How do I remove grub from MBR so that I only have Mac and one Linux icons at startup?
THanks.

Last edited by spiritwalker (2011-05-26 03:50:57)

Offline

#2 2011-05-26 01:09:37

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: [SOLVED] How to remove GRUB from MBR?

If you're asking how to remove grub from mbr:

First make a backup:

sudo dd if=/dev/sdx of=/home/user/mbr.img bs=446 count=1

Then remove grub:

sudo dd if=/dev/zero of=/dev/sdx bs=446 count=1

Of course change sdx and user accordingly!

Edit:

Then if you change your mind later and want to revert the above process:

sudo dd if=/home/user/mbr.img of=/dev/sdx bs=446 count=1

Last edited by mhertz (2011-05-26 01:14:41)

Offline

#3 2011-05-26 01:22:59

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] How to remove GRUB from MBR?

spiritwalker wrote:

I have also grub installed in both in the MBR and Arch partition.

he wants to remove grub from the arch partition, not to wipe out the whole mbr.

Last edited by JokerBoy (2011-05-26 01:23:15)

Offline

#4 2011-05-26 01:39:00

spiritwalker
Member
From: USA
Registered: 2010-07-15
Posts: 85

Re: [SOLVED] How to remove GRUB from MBR?

JokerBoy wrote:
spiritwalker wrote:

I have also grub installed in both in the MBR and Arch partition.

he wants to remove grub from the arch partition, not to wipe out the whole mbr.

Wait, now I'm confused. I wanted to remove it from MBR so that refit handles the initial boot. And then have grub installed in the Arch partition so that I can boot to Arch. Do I want to keep grub in the MBR and remove it from the arch?

Offline

#5 2011-05-26 01:41:41

spiritwalker
Member
From: USA
Registered: 2010-07-15
Posts: 85

Re: [SOLVED] How to remove GRUB from MBR?

mhertz, running "sudo dd if=/dev/sdx of=/home/user/mbr.img bs=446 count=1"  gave me "dd: opening `/home/user/mbr.img': No such file or directory". But I went ahead and removed grub from MBR anyway. I'll see if it works in the next boot. Thanks.

Offline

#6 2011-05-26 03:50:37

spiritwalker
Member
From: USA
Registered: 2010-07-15
Posts: 85

Re: [SOLVED] How to remove GRUB from MBR?

mhertz, it worked great. Thank you

Offline

#7 2011-05-26 22:23:16

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: [SOLVED] How to remove GRUB from MBR?

JokerBoy wrote:
spiritwalker wrote:

I have also grub installed in both in the MBR and Arch partition.

he wants to remove grub from the arch partition, not to wipe out the whole mbr.

Yeah, I wasen't sure if he really did want to zero out the non-partition-table part of the mbr, although he _did_ state it in his post/thread-title, and that's why I just in case preliminary wrote: "If you're asking how to remove grub from the mbr then..."  + backup/reverting instructions smile

@spiritwalker

I'm glad it worked out good for you! Btw, the reason the backup routine didn't work, was because you should replace 'user' in '/home/user' with your own account name... (Doh! should've just used $HOME in the example instead!)

Last edited by mhertz (2011-05-26 22:31:27)

Offline

#8 2011-06-04 19:02:21

spiritwalker
Member
From: USA
Registered: 2010-07-15
Posts: 85

Re: [SOLVED] How to remove GRUB from MBR?

@mhertz, thanks

Offline

Board footer

Powered by FluxBB