You are not logged in.
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
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
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)
Arch64/DWM || My Dropbox referral link
Offline
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
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
mhertz, it worked great. Thank you
Offline
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
@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
@mhertz, thanks
Offline