LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-16-2012, 10:15 PM   #1
ReverendDangles
LQ Newbie
 
Registered: Apr 2012
Location: Huntsville, AL
Distribution: Fedora 16
Posts: 14

Rep: Reputation: Disabled
edit grub OS menu fedora 16


Hello, I have partitioned my old laptop to dual boot Win 7 and Fedora 16.
When I turn on the comp the grub menu has the past 3 updated fedora as well as 2 windows 7. My question is: How can I edit grub where it only shows AT MOST the current fedora and only one previous update? I would
greatly appreciate any help.
 
Old 04-16-2012, 10:42 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,093

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
you edit the /boot/grub/grub.conf ( or menu.lis ) as root
but the old kernel listings ARE AN emergency back up listing

fedora ( by default) keeps the last three kernels and the last two as BACK UP
updates can and have been known to FUBAR a fedora install ( or the user dose)

keep them

but windows should only have one and only one entry
unless YOU changed it
the "other" operating system is windows
 
Old 04-16-2012, 10:55 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,625

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Have a look at "installonly_limit" in /etc/yum.conf
Must admit I generally only increase it, not decrease. Your system, your choice.

Quote:
but windows should only have one and only one entry
Rubbish - of course you can get more than one Windows entry; the normal system, and the OEM recovery partition for example.
 
Old 04-16-2012, 11:02 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,093

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
the "recovery" partition would show as a mount point (in mstab) and not in the grub.conf as a operating system

however fedora is well known to put grub on top of the "recovery" partition ( MBR)
or mis set up the partition number(hda1) because of it
 
Old 04-17-2012, 12:12 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,625

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Quote:
Originally Posted by John VV View Post
the "recovery" partition would show as a mount point (in mstab) and not in the grub.conf as a operating system
If it has Windows boot code in the recover partition - many do, and can be invoked by using a "special" key on boot - os-prober will find it and build a boot entry for it.
End of discussion.

Mounting afterwards is irrelevant.
 
Old 04-17-2012, 01:02 AM   #6
ReverendDangles
LQ Newbie
 
Registered: Apr 2012
Location: Huntsville, AL
Distribution: Fedora 16
Posts: 14

Original Poster
Rep: Reputation: Disabled
Let me know if this will yield any negative consequences.

Under root I went to /boot and made a folder for my older
backups and moved my older versions into it and then ran:

Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
After restarting my computer the GRUB menu only showed
the latest backups that I did not put into my oldversion
folder.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I edit boot menu for Grub 2? JosephS Linux - Software 3 03-06-2011 12:41 PM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
Can't edit DSL grub menu marbobj DamnSmallLinux 2 04-13-2008 09:26 PM
Right way to edit /boot/grub/menu.lst ? eeried Linux - Software 2 02-07-2007 08:59 AM
How to remove GRUB edit menu? j1144106 Fedora 2 04-15-2005 08:12 AM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration