LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2008, 06:58 AM   #1
HolyJoe
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
How to remove Ubuntu 7.10 kernel after upgrade to 8/04


Hi,

I had upgraded to Ubuntu 8.04 from Ubuntu 7.10 via Upgrade-Manager. And I had a problem: How to remove the 7.10 kernle from current Ubuntu 8.04?
 
Old 04-26-2008, 07:09 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Um - how did you upgrade?

I just had this with an upgrade from the CD. The grub menu gives me a choise of 7.10 or 8.04 - the reason for this was that I had inadvertently configured a dual-boot (the default) and I needed to reinstall using the "guided: using whole disk" option.

So - make sure you do not have dual-boot (fdisk -l ... how many partitions?)
If you are single-booting, then there will be only one root partition. You can remove the errant kernel with synaptic.
 
Old 04-26-2008, 07:12 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Do you have an entry in /boot/grub/menu.lst for Ubuntu 8.04 and is it the kernel you are running (uname -a)? If so, you can run Synaptic (or the Add/Remove software app), search for kernel and choose the old kernel for deinstallation.
 
Old 04-26-2008, 02:00 PM   #4
p_quarles
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 0
If you upgraded only recently, I would recommend holding off on ridding yourself of the 2.6.22 kernel. The new kernel is still undergoing some bug-fixes in Ubuntu.

That said, the package is called linux-image-2.6.22-14-generic. The last word will be different if you installed Ubuntu with an architecture other than i386. The
Code:
uname -a
command mentioned earlier will tell you if this is the case.
 
Old 04-26-2008, 08:24 PM   #5
HolyJoe
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you for all warm help.

Thanks Simon Bridge. I have dual-boot, and replaced the Ubuntu 7.10 2.6.22-14 boot item in /boot/grub/menu.lst with Ubuntu 8.04 Linux kernel 2.6.24-16, then I can run into Ubuntu 8.04.

Follow p_quarles's advice, I make a full-backup for current installed Ubuntu that includes 7.10 and 8.04 both. Then, I delete the 2.6.22-14 kernel follow reddazz's instructions.
 
Old 04-27-2008, 02:53 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Um ... if you dual-booted, then you still have the old root partition taking up space. If you just want the 8.04 to be the default boot option, you can set it in menu.lst without removing the 7.10 entry.
 
Old 05-10-2008, 06:10 AM   #7
HolyJoe
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge View Post
Um ... if you dual-booted, then you still have the old root partition taking up space. If you just want the 8.04 to be the default boot option, you can set it in menu.lst without removing the 7.10 entry.
Thank for your help.

Now, I modified the menu.lst for 8.04 kernel entry and remains the old 7.10 kernel.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to remove old versions of Ubuntu kernel joe3eagles Ubuntu 20 01-20-2013 01:57 AM
LXer: Upgrade Your Ubuntu Kernel LXer Syndicated Linux News 0 12-04-2007 08:50 PM
How to remove the previous Ubuntu linux kernel. ussr_1991 Ubuntu 5 07-20-2007 08:24 AM
Can I remove old kernel sources after kernel upgrade(to 2.6.17.13) on Slackware 11? ErV Slackware 7 05-04-2007 12:06 PM
Is it possible to upgrade to a pristine kernel in ubuntu 6.06? sleekmason Linux - Kernel 6 09-29-2006 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration