How To: Upgrade your kernel, painlessly.

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Re: How To: Upgrade your kernel, painlessly.

Postby antikythera on Fri Jul 29, 2011 3:33 pm

mint123 wrote:Are there certain kernel versions that aren't yet stable or simply won't work well with certain Mint versions? I'd like to upgrade Julia from 2.6.35-22 to 2.6.39.3. Would this be a problem? The hardware is a 2 year old Core 2 Duo & ATI Radeon HD laptop. Do these steps also apply to Mint Debain?

best way to get a compatible kernel is to use the folder names in the repository like I found. lucid for Isadora, maverick for Julia etc. and stick to ones without 'RC' status.
A fact is a simple statement that everyone believes. It is innocent, unless found guilty. A hypothesis is a novel suggestion that no one wants to believe. It is guilty, until found effective.
Image
User avatar
antikythera
Level 3
Level 3
 
Posts: 115
Joined: Tue May 31, 2011 9:44 am
Location: United Kingdom

Linux Mint is funded by ads and donations.
 

Re: How To: Upgrade your kernel, painlessly.

Postby project1017 on Sun Sep 18, 2011 9:03 am

Thanks for the Tutorial it worked like a charm :)
project1017
Level 1
Level 1
 
Posts: 2
Joined: Mon Nov 22, 2010 7:28 am

Re: How To: Upgrade your kernel, painlessly.

Postby jesper85m on Sat Oct 15, 2011 6:22 pm

Hi thanks for nice guide.

Got a problem, i wounder why i did get a blackscreen after installing kernel 3.0.4? i installed it on my Acer Aspire 5552g and got a blackscreen after restart. but it worked like a charm on my old netbook.
jesper85m
Level 1
Level 1
 
Posts: 1
Joined: Sat Oct 15, 2011 6:18 pm

Re: How To: Upgrade your kernel, painlessly.

Postby d00med on Wed Dec 14, 2011 5:18 pm

How do you safely remove a kernel? The one I installed isn't listed in the synaptic package manager.
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: How To: Upgrade your kernel, painlessly.

Postby hotshot247 on Wed Dec 14, 2011 6:02 pm

d00med wrote:How do you safely remove a kernel? The one I installed isn't listed in the synaptic package manager.


i am having the same problem also because the kernel that i patched and compiled doesn't show up in the package manager like everybody tells me that it does so i can't delete it.
hotshot247
Level 1
Level 1
 
Posts: 28
Joined: Sat Jul 31, 2010 10:12 am

Re: How To: Upgrade your kernel, painlessly.

Postby wyrdoak on Wed Dec 14, 2011 6:35 pm

-Dell Mini Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(Maya-Xfce) LInux 3.2.0.57-generic(i686)
SolydX (32bit)
User avatar
wyrdoak
Level 6
Level 6
 
Posts: 1313
Joined: Thu May 19, 2011 1:32 pm
Location: USA

Re: How To: Upgrade your kernel, painlessly.

Postby Kevin108 on Wed Dec 14, 2011 7:29 pm

Is there any reason for/against upgrading to the latest kernel on Mint 11?
User avatar
Kevin108
Level 4
Level 4
 
Posts: 318
Joined: Fri Nov 18, 2011 11:07 am
Location: Virginia Beach, VA

Re: How To: Upgrade your kernel, painlessly.

Postby tdockery97 on Wed Dec 14, 2011 7:39 pm

Kevin108 wrote:Is there any reason for/against upgrading to the latest kernel on Mint 11?

For: You may get better hardware support.

Against: You may get worse hardware support on an old computer.

It doesn't hurt to try, because you will still have the option in the Grub Menu to boot into your previous kernel.
Image
Mint 17 Cinnamon
HP Pavilion 17 Notebook, 8GB DDR3, 2.5GHZ A10-APU, Radeon HD 8650G
Registered Linux User #520972
User avatar
tdockery97
Level 13
Level 13
 
Posts: 4862
Joined: Sun Jan 10, 2010 8:54 am
Location: Salem, Oregon

Re: How To: Upgrade your kernel, painlessly.

Postby d00med on Wed Dec 14, 2011 8:29 pm

hotshot247 wrote:
d00med wrote:How do you safely remove a kernel? The one I installed isn't listed in the synaptic package manager.


i am having the same problem also because the kernel that i patched and compiled doesn't show up in the package manager like everybody tells me that it does so i can't delete it.


Turns out I already had a command to clean unused kernels.

List unused headers, images and modules
Code: Select all
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'

Remove unused kernel headers, images and modules
Code: Select all
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge


Can anyone recommend a 3.x kernel from here that would be compatible with Mint 11? [edit] 3.1.5 Precise is working fine.
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: How To: Upgrade your kernel, painlessly.

Postby podagee on Wed Dec 14, 2011 10:57 pm

or you could use ubuntu tweak to clean old kernels from the janitor that comes with it.after that just do a sudo update-grub from terminal and it should be gone.if trying to remove a newer one you installed,what i do is...gksu nautilus /boot/ and erase the kernel and all affiliated files with the unwanted kernel and do a sudo update-grub.this works for me
Say it with me,"podagee,....(poh-duh-gee),"
got it?GOOD!

Toshiba Satellite P755-S5393 Intel i7
octo-core @ 2.20ghz
750gb hdd
8gb ram
Windows 8 PRO w/WMC 64bit
User avatar
podagee
Level 5
Level 5
 
Posts: 801
Joined: Mon Sep 26, 2011 1:45 pm
Location: hawaii

Re: How To: Upgrade your kernel, painlessly.

Postby hotshot247 on Tue Dec 20, 2011 11:27 am

Kendall wrote:If in the outside chance you feel you need to upgrade your kernel for any particular reason, this is how you do it THE EASY WAY. Note that this guide requires no compiling and works for Mint and Ubuntu only (it's probable that this works for other Ubuntu derivatives, but I haven't tested it and can therefore offer no opinion).

- 1 - Go to this website http://kernel.ubuntu.com/~kernel-ppa/mainline/ and you'll see a huge directory tree of kernels. Find the directory for the kernel you want/need and click on it.

- 2 - In each of these directories you're going to see "BUILD.LOG", "CHANGES", three items that begin with "linux-headers", two that begin with "linux-image" and one that begins with "linux-source". The "BUILD.LOG", "CHANGES", and "linux-source" are completely unimportant right now. We're only worried about "linux-headers" and "linux-image".

- 3 - Download and then install the following IN THIS ORDER: first get the linux-headers file that ends with "all.deb". Second get the linux-headers file that ends with "i386.deb" or "amd64.deb" depending upon what architecture you need. Finally get the linux-image file that ends with "i386.deb" or "amd64.deb" again depending upon what architecture you need. Honestly it doesn't really matter what order you download them in, but you need to make absolutely sure that you install them in this order.

- 4 - Reboot your computer and you're done.

Image

Disclaimer: I do this all the time and it's yet to not work for me. You do need to understand that there is an inherent risk associated with all low level system stuff like this. If it borks your system, I claim no responsibility.


i followed your instructions perfectly but it's still kinda buggy...i don't know if it's not fully optimized for linux mint yet but when i tried to get a later kernel and after i booted it up..it had an error message and then i had to hit ctrl + alt + F8 to get into linux and when i tried to shut it down, it had another error and wouldn't shut down until i held the power button. what can i do to fix that?
hotshot247
Level 1
Level 1
 
Posts: 28
Joined: Sat Jul 31, 2010 10:12 am

Re: How To: Upgrade your kernel, painlessly.

Postby chazdg24 on Mon Dec 26, 2011 9:45 am

hotshot247 wrote:
Kendall wrote:If in the outside chance you feel you need to upgrade your kernel for any particular reason, this is how you do it THE EASY WAY. Note that this guide requires no compiling and works for Mint and Ubuntu only (it's probable that this works for other Ubuntu derivatives, but I haven't tested it and can therefore offer no opinion).

- 1 - Go to this website http://kernel.ubuntu.com/~kernel-ppa/mainline/ and you'll see a huge directory tree of kernels. Find the directory for the kernel you want/need and click on it.

- 2 - In each of these directories you're going to see "BUILD.LOG", "CHANGES", three items that begin with "linux-headers", two that begin with "linux-image" and one that begins with "linux-source". The "BUILD.LOG", "CHANGES", and "linux-source" are completely unimportant right now. We're only worried about "linux-headers" and "linux-image".

- 3 - Download and then install the following IN THIS ORDER: first get the linux-headers file that ends with "all.deb". Second get the linux-headers file that ends with "i386.deb" or "amd64.deb" depending upon what architecture you need. Finally get the linux-image file that ends with "i386.deb" or "amd64.deb" again depending upon what architecture you need. Honestly it doesn't really matter what order you download them in, but you need to make absolutely sure that you install them in this order.

- 4 - Reboot your computer and you're done.

Image

Disclaimer: I do this all the time and it's yet to not work for me. You do need to understand that there is an inherent risk associated with all low level system stuff like this. If it borks your system, I claim no responsibility.


i followed your instructions perfectly but it's still kinda buggy...i don't know if it's not fully optimized for linux mint yet but when i tried to get a later kernel and after i booted it up..it had an error message and then i had to hit ctrl + alt + F8 to get into linux and when i tried to shut it down, it had another error and wouldn't shut down until i held the power button. what can i do to fix that?


I had the same issues you did so I removed that kernel. The instructions worked fine but for some reason issues occurred that just didn't seem using it worthwhile. I even tried Kernel 3.0.0.14 in Synaptic. That Kernel gave me a black screen at boot so I removed that as well. Oh well, I tried.
chazdg24
Level 3
Level 3
 
Posts: 141
Joined: Mon Jun 06, 2011 5:11 pm

Re: How To: Upgrade your kernel, painlessly.

Postby hotshot247 on Mon Dec 26, 2011 10:47 am

I had the same issues you did so I removed that kernel. The instructions worked fine but for some reason issues occurred that just didn't seem using it worthwhile. I even tried Kernel 3.0.0.14 in Synaptic. That Kernel gave me a black screen at boot so I removed that as well. Oh well, I tried.


yea, it installed just fine but it's a pain to try to run. i'm trying to figure out if i just need to download the source code and configure it a certain way then compile if that would make a difference. everybody that i talk to seem to know how to install it but when it comes to problems, i haven't found anybody to help me yet.
hotshot247
Level 1
Level 1
 
Posts: 28
Joined: Sat Jul 31, 2010 10:12 am

Re: How To: Upgrade your kernel, painlessly.

Postby d00med on Sun Jan 08, 2012 8:05 pm

3.1.5 is working great here still (Mint 11). Has anyone gotten 3.2 to work in Mint?
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: How To: Upgrade your kernel, painlessly.

Postby stefanheijnen on Tue Jan 10, 2012 5:00 am

3.2.0 is working just fine @ Mint 12.

Also http://duopetalflower.blogspot.com is a nice source for the latest kernel (optimized for i3, i5, i7), although it hasn't been updated for over a month.
Image
stefanheijnen
Level 1
Level 1
 
Posts: 3
Joined: Mon Dec 12, 2011 4:21 pm
Location: NL, Zevenhuizen

Re: How To: Upgrade your kernel, painlessly.

Postby AlbertP on Tue Jan 10, 2012 9:32 am

I'm still running 3.2.0-rc7. No problems at all, it works fine even though it's an -rc release.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6514
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: How To: Upgrade your kernel, painlessly.

Postby d00med on Thu Jan 19, 2012 7:43 am

I've tried the 3.2 kernel versions from here in Mint 11 and get kernel panics with all of them. Hmm.
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: How To: Upgrade your kernel, painlessly.

Postby AlbertP on Thu Jan 19, 2012 8:57 am

Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6514
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: How To: Upgrade your kernel, painlessly.

Postby ArminasAnarchy on Thu Jan 26, 2012 5:14 pm

I followed the guide, and got the first two packages (linux-header files) installed. The third however (the image) doesn't want to install. I double click on it to run it, but the "Install" button remains greyed out :(. Has anyone else had this problem? I'm running Lisa KDE RC.

I continued to reboot anyway, and I'm up and running. Is it a case of "if it ain't broke, don't fix it", or should I be worried? Why it it the install button is greyed out?
ArminasAnarchy
Level 1
Level 1
 
Posts: 16
Joined: Thu Jan 26, 2012 2:45 am

Re: How To: Upgrade your kernel, painlessly.

Postby HealingTek on Thu Jan 26, 2012 9:01 pm

I have 3.2.1 running fine on both Mint 11 (desktop) & Mint 12 (netbook). I didn't install the kernels from a repository, I rolled my own from scratch, but I mention it just to demonstrate that there's no inherent problem with the 3.2 series & Mint.
HealingTek
Level 1
Level 1
 
Posts: 2
Joined: Wed Jan 25, 2012 9:38 am

Linux Mint is funded by ads and donations.
 
PreviousNext

Return to Tutorials / Howtos

Who is online

Users browsing this forum: mintoreo and 7 guests