Managing Back up image start up list

Asked by John Snape

Would you explain step by step how to edit the list of OS images that appear on boot screen on system start for Ubuntu?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you uninstall tehe old kernels they will go. If you can give the output of:

lsb_release -a; uname -a; echo; dpkg -l | grep linux-image | awk '{print $2}'

Thanks

Revision history for this message
John Snape (snapejii) said :
#2

 lsb_release -a; uname -a; echo; dpkg -l | grep linux-image | awk '{print $2}'
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
Linux BigHP-desktop 2.6.38-13-generic-pae #53-Ubuntu SMP Mon Nov 28 19:41:58 UTC 2011 i686 athlon i386 GNU/Linux

linux-image-2.6.31-20-generic-pae
linux-image-2.6.31-21-generic-pae
linux-image-2.6.32-24-generic-pae
linux-image-2.6.32-25-generic-pae
linux-image-2.6.32-29-generic-pae
linux-image-2.6.32-30-generic-pae
linux-image-2.6.32-35-generic-pae
linux-image-2.6.32-37-generic-pae
linux-image-2.6.35-31-generic-pae
linux-image-2.6.38-13-generic-pae
linux-image-generic-pae

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

cd $HOME
dpkg -l | grep linux-image | grep -v `uname -r` | grep -v linux-image-generic-pae | awk '{print $2}' > list.txt
sudo apt-get --purge remove `cat ./list.txt`

Will remove all kernels except the current one and clean up the Grub menu for you

Revision history for this message
John Snape (snapejii) said :
#4

Thanks actionparsnip, that solved my question.