Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd June 2012, 07:35 PM
PompeyBlue's Avatar
PompeyBlue Offline
Registered User
 
Join Date: Jun 2004
Location: Portsmouth, UK
Posts: 444
linuxfirefox
Removing some OSs from grub

I have a triple booted Macbook air, and grub is picking up the Mac partition. I don't want it there, since I use ReFIT to boot the Mac OS (it has nicer icons). How can I stop grub from picking up these OSs?

menuentry 'Mac OS X (32-bit) (on /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-32-5a4779994bd968ab' {
menuentry 'Mac OS X (64-bit) (on /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-64-5a4779994bd968ab' {

I'd also like to get rid of the "Advanced Options" too.
Reply With Quote
  #2  
Old 3rd June 2012, 08:03 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxchrome
Re: Removing some OSs from grub

I can only presume that maybe you're using F17. I'm still with F16. I had grub2 (os-prober) picking up my old W2K install from another hdd and putting it in the menu. Thank you grub2, but "no thankyou". I found this Ubuntu guide on how to remove Windows OS filesystems from showing up in the grub2 menu and used it to good effect to remove, and keep removed, that long unused W2K OS from the grub2 menu.

That same guide, in section 9 "Hiding the 32/64 bit OSX Entry When Both Appear" should probably work for you. It involves edits to the /etc/grub.d/30_os-prober shell script file. The only "problem" using this method is that any "update" to the grub2 program writes a new 30_os-prober file, but saves your modified file as 30_os-prober.rpmsave. But since both are still "executable", both are run when the "grub2-mkconfig -o /boot/grub2/grub.cfg" command is given.

After a grub2 update, you then would then have to either unset the execute bist on the "new" 30_os-prober file, or add the edit to the new file and then delete or unset the execute bits to the *.rpmsave file.

If you never manually run the "grub2-mkconfig -o /boot/grub2/grub.cfg" command, then you can then just simply delete the entries for those menu entries from your /boot/grub2/grub.cfg file, and not worry about editing any other files.

I'm not sure about the "Advanced Options" bit you're referring to.
Reply With Quote
  #3  
Old 4th June 2012, 08:37 PM
PompeyBlue's Avatar
PompeyBlue Offline
Registered User
 
Join Date: Jun 2004
Location: Portsmouth, UK
Posts: 444
linuxfirefox
Re: Removing some OSs from grub

Thanks for the reply. I think I'll just edit grub.cfg, it just worries me there's the big thing at the top saying "DO NOT EDIT THIS FILE"
Reply With Quote
  #4  
Old 4th June 2012, 08:58 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxchrome
Re: Removing some OSs from grub

It's OK to do direct edits to the /boot/grub2/grub.cfg file... if, you understand two things:

1) What your doing.

2) That running the command "grub2-mkconfig -o /boot/grub2/grub.cfg" will wipe out your direct edits in that file.
Reply With Quote
Reply

Tags
grub, oss, removing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Grub Loader r-debuhr Using Fedora 2 14th November 2005 09:49 PM
Removing the splashscreen in Grub NiTr8 Guides & Solutions (No Questions) 1 6th August 2005 12:55 AM
removing grub pravvish Using Fedora 2 29th June 2005 01:27 AM
Removing GRUB? Unlimited Using Fedora 2 15th June 2005 03:15 PM


Current GMT-time: 08:16 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat