mshlin
February 24th, 2007, 04:53 PM
Just listened to tip on how to remove previous kernels from grub menu on linux reality podcast, but i didn't work for me. I,m still learning. I played around with the idea & got it to work for me by doing the following (hope it helps somebody :) ).
How to alter grub menu in edgy
Use the Ctrl-Alt-F1 shortcut keys to switch to the console.
logon in with username & password.
enter
sudo nano /boot/grub/menu.lst
comment out kernel titles you dont want to appear when you boot up in grub
use hash key #
I commented out old kernels
title Ubuntu, kernel 2.6.17-11-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.17-11-generic
boot
#title Ubuntu, kernel 2.6.17-10-generic
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda3 ro quiet splash
#initrd /boot/initrd.img-2.6.17-10-generic
#quiet
#savedefault
#boot
#title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda3 ro single
#initrd /boot/initrd.img-2.6.17-10-generic
#boot
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
boot
Press Ctrl x to exit nano, you will be prompted to save the file, enter y
enter exit
Use the Ctrl-Alt-F7 shortcut keys,to get back to desktop mode.
reboot & check new grub menu
I assume you could do the same using the terminal by entering
sudo gedit /boot/grub/menu.lst
found good grub info @
http://users.bigpond.net.au/hermanzone/p15.htm
main site has some good info for ubuntu newbie
http://users.bigpond.net.au/hermanzone/
How to alter grub menu in edgy
Use the Ctrl-Alt-F1 shortcut keys to switch to the console.
logon in with username & password.
enter
sudo nano /boot/grub/menu.lst
comment out kernel titles you dont want to appear when you boot up in grub
use hash key #
I commented out old kernels
title Ubuntu, kernel 2.6.17-11-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.17-11-generic
boot
#title Ubuntu, kernel 2.6.17-10-generic
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda3 ro quiet splash
#initrd /boot/initrd.img-2.6.17-10-generic
#quiet
#savedefault
#boot
#title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda3 ro single
#initrd /boot/initrd.img-2.6.17-10-generic
#boot
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
boot
Press Ctrl x to exit nano, you will be prompted to save the file, enter y
enter exit
Use the Ctrl-Alt-F7 shortcut keys,to get back to desktop mode.
reboot & check new grub menu
I assume you could do the same using the terminal by entering
sudo gedit /boot/grub/menu.lst
found good grub info @
http://users.bigpond.net.au/hermanzone/p15.htm
main site has some good info for ubuntu newbie
http://users.bigpond.net.au/hermanzone/