ubuntuforums-unanswered team mailing list archive
-
ubuntuforums-unanswered team
-
Mailing list archive
-
Message #09083
Re: [Question #78588]: Removing old versions of Ubuntu 9.04 from boot list.
Question #78588 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/78588
actionparsnip proposed the following answer:
if you run:
uname -a
you will see your kernel version.
if you then run:
dpkg -l | grep linux | grep image
You will see a list of linux images (which are the kernels). You want to
keep the kernel that outputted in uname -a as well as linux-image-
generic. Also, DO NOT remove packages with the word 'modules' in, those
will be automagically handled for you.
once you have uninstalled the packages representing the kernels you no
longer need:
e.g.
sudo apt-get --purge remove linux-image-2.6.31-4-generic
(i use karmic and that is my ONLY kernel so I'm not going to do that,
its just an example command). It will remove the kernel. You can keep
rerunning the dpkg command above to verify but tread VERY carefully and
do NOT remove the running kernel you saw in the uname -a output (I am
stressing this as much as I can and it's still not enough, this is some
low level dangerous stuff)
once all the images you do not want are gone (you will harvest ~100Mb
per kernel) you can then run:
sudo apt-get --purge autoremove
and it will clear out all the kernel modules for the kernels you just
removed (another 50Mb per kernel here too)
This will also update menu.lst so your boot menu will be slicker and
less cluttered.
--
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.