| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. |
 |
07-22-2006, 10:32 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2005
Location: Fort Collins, Colorado, USA
Distribution: Ubuntu
Posts: 2
|
Need to remove old versions of Ubuntu kernel
[ Log in to get rid of this advertisement]
Hey folks,
I'm looking to clean up older versions of Ubuntu from my hard drive as well as merely from the GRUB menu. I know that editing the /boot/grub/menu.lst file will clean up the menu, but what about the actual older kernels and other related stuff? Shouldn't those also be removed? I found the /lib/modules/ directory. Do those and/or other files need to be deleted? Would deleting them cause problems?
Thanks for any pointers!
Joe
|
|
|
|
07-22-2006, 10:40 PM
|
#2
|
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,822
|
Go to Synaptic Package Manager or Adept and search for linux-image.
|
|
|
|
07-22-2006, 10:57 PM
|
#3
|
|
Guru
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 5,489
|
... and select the ones you want deleted.
You'll get an option to remove completely - will get rid of any modules (including restricted) as well.
|
|
|
|
06-10-2008, 09:04 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2008
Posts: 1
|
OK. I notice that this thread has been viewed 18,510 times but I appear to be the only one with a further question!
Having looked-up 'linux-image' in Synaptics Package Manager, how do I know which ones are safe to remove?
Am I to be guided by the checkboxes on the left (some grayed-out, some with an icon?) or if they don't have an entry in the 'Installed Version' column?
Complete noob to any form of linux and do not want to risk any harm to system!
Any advice much appreciated.
|
|
|
|
06-21-2008, 11:07 AM
|
#5
|
|
Member
Registered: Oct 2007
Posts: 98
|
If you remove the linux-images for a particular kernel, shouldn't you remove the linux-headers for that version as well?
|
|
|
|
06-21-2008, 11:38 AM
|
#6
|
|
Senior Member
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 2,878
|
@Tim Silver,
The command uname -a in a terminal will tell you which kernel you are running as opposed to which kernels you may have available. Mine looks like this:
Code:
tred@vaio:~$ uname -a
Linux vaio 2.6.24-19-generic #1 SMP Wed Jun 4 16:35:01 UTC 2008 i686 GNU/Linux
tred@vaio:~$
So I can remove all kernels, and headers and sources except 2.6.24-19-generic
In practice, I like to keep at least one "old" kernel, in case I find that the latest one has broken something that used to work with the older kernel.
HTH &
Welcome to LQ!
|
|
|
|
07-14-2008, 12:14 PM
|
#7
|
|
LQ Newbie
Registered: Jul 2008
Posts: 1
|
I hope I'm not hijacking a thread - but this is very related.
I'm running dual boot Ubuntu 8.04 and Windows Vista. I understand that when Ubuntu 8.04 is replaced by the next full incarnation of Ubuntu - it can be installed by simply 'updating' - which I understand. However, I have grub set up to launch Vista/Longhorn as default, and have edited grub's menu.list so that this remains the case when new kernels of Hardy are introduced, removing the old kernels, as suggested above. My question is, would the new full version of Ubuntu retain my grub settings, or will I need to edit a new version of grub, as I did the old one?
|
|
|
|
08-22-2008, 04:31 AM
|
#8
|
|
LQ Newbie
Registered: Aug 2008
Posts: 1
|
haha I just did the same thing...
Ok so without apt- and without anything else
ok so maybe you screwed up and deleted it in dolphin like I did...
so I did this
su -s -H
gives you a root screen
go to /boot
ls -a
will show you everything
go into your trash folder
ls .Trash-0
rm both files and then mkdir both of them back
Alright so then I ran the dpkg --configure -a
everything worked!
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:44 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
LQ Podcast
LQ Radio
|
|