Fedora Linux Support Community & Resources Center
  #1  
Old 26th March 2012, 06:44 AM
JohnnyF Offline
Registered User
 
Join Date: Mar 2012
Location: Australia
Posts: 33
linuxfirefox
Grub menu

I was thinking that I would like to remove old linux entries from my Grub menu...I did it with Ubuntu but can't quite see how with Fedora. Thank you
Reply With Quote
  #2  
Old 26th March 2012, 07:14 AM
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 790
linuxfirefox
Re: Grub menu

Quote:
Originally Posted by JohnnyF View Post
I was thinking that I would like to remove old linux entries from my Grub menu...I did it with Ubuntu but can't quite see how with Fedora. Thank you
Which version of Fedora?

In my Fedora 15, I would update my grub.conf -

[root@localhost grub]# pwd
/boot/grub

[root@localhost grub]# ll grub.conf
-rw-------. 1 root root 1447 Mar 22 10:44 grub.conf

"...
title Fedora (2.6.42.12-1.fc15.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.42.12-1.fc15.x86_64 ro root=/dev/mapper/VolGroup-lv_
root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD r
d_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.42.12-1.fc15.x86_64.img
title Fedora (2.6.42.10-3.fc15.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.42.10-3.fc15.x86_64 ro root=/dev/mapper/VolGroup-lv_..."

In Fedora 16 -

There is the /boot/grub2/grub.cfg file

Hope this helps.
__________________
2 dual cores, 11 GB RAM, F18 Spherical Cow - 3.11.10-100.fc18.x86_64 / i686
2 dual cores, 11 GB RAM, F19 Schrödinger's Cat - 3.14.22-100.fc19.x86_64 / i686
2 dual cores, 11 GB RAM, F20 Heisenbug - 3.16.6-200.fc20.x86_64 / i686
2 dual cores, 11 GB RAM, F21 - 3.17.1-302.fc21.x86_64 / i686
80 x86_64 computing cores, 144 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks

Last edited by diamond_ramsey; 26th March 2012 at 07:45 AM.
Reply With Quote
  #3  
Old 26th March 2012, 07:20 AM
JohnnyF Offline
Registered User
 
Join Date: Mar 2012
Location: Australia
Posts: 33
linuxfirefox
Re: Grub menu

Thanks. I have been upgraded to F16. Would I use gedit to alter the grub.conf file? Thanks John
Reply With Quote
  #4  
Old 26th March 2012, 07:40 AM
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 790
linuxfirefox
Re: Grub menu

Quote:
Originally Posted by JohnnyF View Post
Thanks. I have been upgraded to F16. Would I use gedit to alter the grub.conf file? Thanks John
Good question, may need to check.

For Fedora 16 -

[root@localhost ~]# uname -airvn
Linux localhost.localdomain 3.3.0-4.fc16.x86_64 #1 SMP Tue Mar 20 18:05:40 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

* Do you have a Fedora 16 kernel installed?

[root@localhost ~]# more /boot/grub2/grub.cfg

"...
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (3.3.0-4.fc16.x86_64)' --class fedora --class gnu-linux --clas
s gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 5976521c-e5cc-4f28-a4cd-69cf16c6
ffdd
echo 'Loading Fedora (3.3.0-4.fc16.x86_64)'
linux /vmlinuz-3.3.0-4.fc16.x86_64 root=/dev/mapper/VolGroup-lv_root r
o rd.md=0 rd.dm=0 rd.lvm.lv=VolGroup/lv_swap KEYTABLE=us quiet SYSFONT=latarcyr
heb-sun16 rhgb rd.lvm.lv=VolGroup/lv_root rd.luks=0 LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.3.0-4.fc16.x86_64.img
}
..."
__________________
2 dual cores, 11 GB RAM, F18 Spherical Cow - 3.11.10-100.fc18.x86_64 / i686
2 dual cores, 11 GB RAM, F19 Schrödinger's Cat - 3.14.22-100.fc19.x86_64 / i686
2 dual cores, 11 GB RAM, F20 Heisenbug - 3.16.6-200.fc20.x86_64 / i686
2 dual cores, 11 GB RAM, F21 - 3.17.1-302.fc21.x86_64 / i686
80 x86_64 computing cores, 144 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Reply With Quote
  #5  
Old 26th March 2012, 08:02 AM
JohnnyF Offline
Registered User
 
Join Date: Mar 2012
Location: Australia
Posts: 33
linuxfirefox
Re: Grub menu

Gosh! I thought that if I opened the grub.conf I would be able to delete those lines not needed, however, gedit won't let me open the file (restricted) so I would have to edit via the terminal. I will re-read your directions to see if I understand what I am going to do....
Reply With Quote
  #6  
Old 26th March 2012, 10:07 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 912
linuxfirefox
Re: Grub menu

Yes, (annoyingly) by default the grub.cfg file is set as read-only even for root. You can fix that first with
Code:
su -c 'chmod 600 /boot/grub2/grub.cfg'
After that, you can edit it with
Code:
su -c 'gedit /boot/grub2/grub.cfg'
but I would be very tempted to make a backup copy first in case a finger slips during the editing!

If you want to remove old versions of the linux kernel for Fedora, you can use
Code:
rpm -q kernel
to list which ones are installed, then remove the ones you don't need with something like
Code:
su -c 'yum erase kernel-3.1.0-7.fc16.x86_64 kernel-3.1.6-1.fc16.x86_64'
The removed kernels will be removed from the grub.cfg file without you needing to do that manually.
Reply With Quote
Reply

Tags
grub, menu

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
[SOLVED] GRUB :: menu.lst :: GRUB starts in command line cinsevarg Using Fedora 4 3rd December 2010 07:21 PM
Why GRUB does not display menu based on grub.conf/menu.lst? hobbieman Using Fedora 3 1st August 2009 06:37 PM
Grub prompt instead of grub menu and splash screen Alan Installation, Upgrades and Live Media 5 29th May 2006 04:56 PM
FC4 and /boot/grub/menu.lst and /etc/grub.conf zillah Using Fedora 33 13th January 2006 06:57 AM


Current GMT-time: 07:46 (Friday, 31-10-2014)

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
Bethany Photos on Instagram - Turhal - Ofaqim Photos on Instagram