Results 1 to 10 of 11
Hi folks,
Ubuntu 9.10 64bit
Grub2 doesn't have menu.lst. If I want to remove on the booting screen, e.g.
Code:
Ubuntu, linux 2.6.27-2-generic
Ubuntu, linux 2.6.27-2-generic (single-user mode)
How to ...
- 03-20-2010 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
[SOLVED] About booting screen
Hi folks,
Ubuntu 9.10 64bit
Grub2 doesn't have menu.lst. If I want to remove on the booting screen, e.g.How to do it? TIACode:Ubuntu, linux 2.6.27-2-generic Ubuntu, linux 2.6.27-2-generic (single-user mode)
B.R.
satimis
- 03-20-2010 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
I run GRUB2 on Arch and it's currently configured differently than GRUB2 on Ubuntu, but you can check this guide in the Ubuntu wiki for working with their implementation of GRUB2:
https://wiki.ubuntu.com/Grub2oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 03-20-2010 #3
Do you want to hide GRUB Menu or remove a few options from it?
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-21-2010 #4
to remove menu entries for old kernel versions you're no longer using, go into synaptic (System>Administration>Synaptic) and type the kernel version (e.g. 2.6.27-2) in the quick search box. then right click all the installed packages for that specific kernel version and choose "remove". click the green check button to apply the changes.
afterwards the entries should no longer show in your grub2 menu.
NOTE: be careful not to remove the packages for the kernel you're currently using.
- 03-21-2010 #5Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
- 03-21-2010 #6Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
- 03-21-2010 #7Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
- 03-21-2010 #8
Two ways :
*1. Edit /boot/grub/grub.cfg file and comment out entry for older kernel. But it won't be permanent. update-grub command generates new grub.cfg on every execution.
*2. Create a new custom file ( /etc/grub.d/08_linux ) and add an entry of new kernel in it. Remove execution bit of /etc/grub.d/10_linux file. update-grub command will not add any entry of older kernel. There is one problem in this method only. You have to add entry of new kernel in custom file on every kernel upgrade.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-22-2010 #9Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
$ sudo nano /boot/grub/grub.cfg
Comment out following linesRebootCode:#menuentry "Ubuntu, Linux 2.6.31-19-generic" { # recordfail=1 # if [ -n ${have_grubenv} ]; then save_env recordfail; fi # set quiet=1 # insmod ext2 # set root=(hd0,1) # search --no-floppy --fs-uuid --set 4ff364c6-c510-4f46-93df-902590749a76 # linux /boot/vmlinuz-2.6.31-19-generic root=UUID=4ff364c6-c510-4f46-93df$ # initrd /boot/initrd.img-2.6.31-19-generic #} #menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" { # recordfail=1 # if [ -n ${have_grubenv} ]; then save_env recordfail; fi # insmod ext2 # set root=(hd0,1) # search --no-floppy --fs-uuid --set 4ff364c6-c510-4f46-93df-902590749a76 # linux /boot/vmlinuz-2.6.31-19-generic root=UUID=4ff364c6-c510-4f46-93df$ # initrd /boot/initrd.img-2.6.31-19-generic #}
Your advice works for me. Thanks
$ sudo update-grubThis step uncomments those lines previously commented out.Code:Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-20-generic Found initrd image: /boot/initrd.img-2.6.31-20-generic Found linux image: /boot/vmlinuz-2.6.31-19-generic Found initrd image: /boot/initrd.img-2.6.31-19-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows Vista (loader) on /dev/sdb1 done
B.R.
satimis
- 03-22-2010 #10
There is no need to execute update-grub command because it generates new grub.cfg on every execution.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First



