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 ibm450 on Thu Nov 18, 2010 4:52 am

thank you all for the tutorials
Image
Asus UL50VT laptop ~ LM10 - Unity 12.04 - Win 7
Image
User avatar
ibm450
Level 5
Level 5
 
Posts: 604
Joined: Sun Jan 11, 2009 6:56 am
Location: Kwinana, Western Australia

Linux Mint is funded by ads and donations.
 

Re: How To: Upgrade your kernel, painlessly.

Postby elboy71 on Wed Dec 08, 2010 1:16 pm

Excelent tutorial!!! I upgraded my kernel and found no problems at all!!!
User avatar
elboy71
Level 1
Level 1
 
Posts: 10
Joined: Sat Aug 07, 2010 3:01 am

Re: How To: Upgrade your kernel, painlessly.

Postby allypink on Sun Jan 02, 2011 10:38 pm

If all your system is working correctly why upgrade? You are only risking breaking something. Upgrade only if something you have added or have is not supported in the current kernel. As I understand it kernel upgrades are mostly for updated modules for new drivers.
But hey that's Linux users for you. We are not happy until we break something that is working. :lol:
Desktop; DELL Optiplex Core 2 Quad 8GB RAM
Run Mint 17, 1TB WD black 7200 and Win 7 320GB WD black 7200 (gotta for work)
Also run other distros from a dock swaping out older HDDs for PLAY!!
A happy donor to the effort. If you use it...... DONATE!
User avatar
allypink
Level 3
Level 3
 
Posts: 176
Joined: Sun May 30, 2010 10:27 pm
Location: Nambour Australia

Re: How To: Upgrade your kernel, painlessly.

Postby vrkalak on Sun Jan 02, 2011 10:45 pm

allypink wrote:But, hey, that's Linux users for you. We are not happy until we break something that is working. :lol:


So true :lol:
Image
:: LinuxMint-Debian-Edition (Fluxbox) :: Manjaro/Arch (Xfce) ::
Registered Linux User: #497031 :: DeviantART Page
User avatar
vrkalak
Level 10
Level 10
 
Posts: 3264
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: How To: Upgrade your kernel, painlessly.

Postby vrkalak on Thu Jan 06, 2011 7:41 pm

As a 'personal project' . . . I just Compiled my own Kernel from Source via CLI :shock:

Not as difficult as I thought it would be. :? Just took some time and patience.
Watched the 'entire' kernel load, then configure, as it moved through the terminal, line by line.
Only took me about an hour and 20 minutes.

I downloaded the newly 'stable' 2.6.37 Linux kernel, from here > http://kernel.org
and installed to my #!Crunchbang Statler x64 (Debian-Squeeze-based) with Openbox.

And "went at it" . . . then, a re-boot. :cry: is it gonna b0rk? Nope, everything seems perfect.

According to the release notes the 2.6.37 Kernel was released as 'stable' yesterday ... with the "200 line patch" included.
. . . . . . . . . . . . . . . .

I did find some guidance here > http://forum.kernelnewbies.org/ and in the Debian User Forum > http://forums.debian.net/
Image
:: LinuxMint-Debian-Edition (Fluxbox) :: Manjaro/Arch (Xfce) ::
Registered Linux User: #497031 :: DeviantART Page
User avatar
vrkalak
Level 10
Level 10
 
Posts: 3264
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: How To: Upgrade your kernel, painlessly.

Postby DasFox on Tue Feb 08, 2011 9:38 pm

In Linux Mint 10 I tried like 3 different kernels and all of them caused the Mint splash screen to be off centered and also text would appear just before Gnome loaded and also after restarting, before the splash would appear....

I don't get why updating kernels should cause the splash screen to not load properly...

Also as a Linux geek of 10 years, mainly in Slack, I've never updated headers, only the kernel, headers should not need to be updated unless you are compiling something against them that needs the latest headers...
DasFox
Level 3
Level 3
 
Posts: 151
Joined: Thu Apr 05, 2007 4:04 am

Re: How To: Upgrade your kernel, painlessly.

Postby Orographic on Wed Feb 09, 2011 1:55 am

I installed a newer kernel when I was looking at Mint 9 last year, as my system is quite new and it worked very well under the newer kernel.

My question: Now that i am playing around with LMDE, can I use this same process explained here to upgrade the kernel on LMDE?

Will it effect updates in any way?
Orographic
Level 1
Level 1
 
Posts: 43
Joined: Fri Oct 31, 2008 5:15 pm

Re: How To: Upgrade your kernel, painlessly.

Postby Dave68 on Wed Feb 09, 2011 3:45 pm

Yes you can use the same process listed here.

I ran a Liquorix Kernel for a little while on LMDE, but decided to stay with the default.

Hope This Helps,
Dave
Linux User: 528038
Primary PC: Version: LMDE (201101), 32 Bit.
Alternate 1: Version: Peppermint One OS, 32 Bit.
Laptop: Version: Julia Main (10), AMD 64
Image
User avatar
Dave68
Level 4
Level 4
 
Posts: 298
Joined: Wed Jun 16, 2010 1:15 pm
Location: Bolivar, Missouri

Re: How To: Upgrade your kernel, painlessly.

Postby Orographic on Wed Feb 09, 2011 6:17 pm

Dave68 wrote:Yes you can use the same process listed here.

I ran a Liquorix Kernel for a little while on LMDE, but decided to stay with the default.

Hope This Helps,
Dave


Thanks for that. I have a Core i3 and it isn't fully supported until 2.6.33, I understand. So, it might be a better bet to use a newer kernel. I thought the latest LMDE wold have come with 2.6.33 or later but not to be.

What made you change back to the default kernel?
Orographic
Level 1
Level 1
 
Posts: 43
Joined: Fri Oct 31, 2008 5:15 pm

Re: How To: Upgrade your kernel, painlessly.

Postby vrkalak on Thu Feb 10, 2011 12:18 am

Orographic wrote:What made you change back to the default kernel?


Didn't change back.

Ubuntu and Debian do not use the same versions of the Linux kernel.

Ubuntu uses the current released as 'stable' generic Linux Kernel ... 2.6.37 Same as, Ubuntu -- released as 'stable' but with 'bugs'

Debian uses the 'tried and true' well-tested stable Linux kernel ... 2.6.32-5 for it's stable release of Debian 6.0 Squeeze
Debian is well-known for being rock-solid stable -- always. They go with a rock-solid stable kernel, as well.
Image
:: LinuxMint-Debian-Edition (Fluxbox) :: Manjaro/Arch (Xfce) ::
Registered Linux User: #497031 :: DeviantART Page
User avatar
vrkalak
Level 10
Level 10
 
Posts: 3264
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: How To: Upgrade your kernel, painlessly.

Postby Orographic on Fri Feb 11, 2011 12:56 am

vrkalak wrote:
Orographic wrote:What made you change back to the default kernel?


Didn't change back.

Ubuntu and Debian do not use the same versions of the Linux kernel.

Ubuntu uses the current released as 'stable' generic Linux Kernel ... 2.6.37 Same as, Ubuntu -- released as 'stable' but with 'bugs'

Debian uses the 'tried and true' well-tested stable Linux kernel ... 2.6.32-5 for it's stable release of Debian 6.0 Squeeze
Debian is well-known for being rock-solid stable -- always. They go with a rock-solid stable kernel, as well.


Sorry, I can't quite follow what you said. I'm aware that Ubuntu uses a newer kernel than Debian. I'm also aware that Debian is rock solid
which is great but the kernel that comes as default with Debian doesn't fully support my processor, the core i3.

My question was, what made you move back to the default kernel in LMDE after using the Liquirox one?
Orographic
Level 1
Level 1
 
Posts: 43
Joined: Fri Oct 31, 2008 5:15 pm

Re: How To: Upgrade your kernel, painlessly.

Postby Orographic on Sun Feb 13, 2011 2:38 am

Just as a heads up, I was copying my USB drive documents (about 170mb) across to LMDE with the latest Liquirox Kernel installed and it froze about half way through the copy and then crashed the USB drive and then also LMDE.

I then restored an image of LMDE with the default kernel and copied the same USB drive documents across and all went perfectly and very fast too.

I do remember there was a similar issue in Ubuntu 10.10 in the first few weeks re copying files from an external drive but it was quickly patched. 2.6.35 kernel is the one for Ubuntu 10.10, I think.

I wonder if the Liquirox kernel has fixed that problem or just left it? It was a pretty serious crash that I experienced.
Orographic
Level 1
Level 1
 
Posts: 43
Joined: Fri Oct 31, 2008 5:15 pm

Latest Low-Latency kernel works on Mint 10

Postby Old Ruler on Fri Feb 25, 2011 1:01 pm

I prefer kernels with better timer resolution for music applications. There's a good low latency kernel available for ubuntu 'natty' which seems to work very well for me on my Mint 10 KDE install. I followed the instructions here: http://longspine.com/how-to/real-time-k ... k-meerkat/

uname -a then shows:
Linux asus 2.6.38-5-lowlatency #32~ppa1-Ubuntu SMP PREEMPT Wed Feb 23 11:08:30 UTC 2011 x86_64 GNU/Linux

I have a couple of kernel modules. One was installed for the fairly recent proprietary nVidia graphics card driver and the other for VirtualBox. So I installed the kernel headers too (mentioned in the article as "Optional").

Without fixing the new kernel for the nVidia driver the computer will not fully boot to the desktop. The Grub boot manager offers an option to boot the new kernel in 'recovery mode' so I chose that and then chose the 'netroot' option.

It may be worth trying the 'failsafeX' recovery mode, but it hasn't worked for me. I have a proper root user account, so I typed my root password, but your normal user password should work just as well (if the root account isn't set up). Leave the 'sudo' off of the following commands if you are root:

Code: Select all
cd /etc/X11
sudo cp xorg.conf xorg.conf.OLD
sudo cp xorg.conf.failsafe xorg.conf
sudo reboot

No need to use recovery mode this time. The desktop should come up, although it will probably be smaller than usual (everything on your desktop may look bigger). Now go to System - Additional Drivers and select the (version current) 'Recommended' driver and Activate it. Reboot in the usual way when it has finished and your new Low-latency kernel should now work with the graphics driver you were previously using.

Now to fix VirtualBox. When I tried to run a virtual machine, it came up with a dialog saying "The VirtualBox Linux driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing (as root):

/etc/init.d/vboxdrv setup"
so that's what I did:

Code: Select all
[root@asus john]# /etc/init.d/vboxdrv setup
 * Stopping VirtualBox kernel modules                                              *  done.
 * Uninstalling old VirtualBox DKMS kernel modules                               
Error! There are no instances of module: vboxhost
4.0.2 located in the DKMS tree.                                                   *  done.
 * Trying to register the VirtualBox kernel modules using DKMS                   
Error! Bad return status for module build on kernel: 2.6.38-5-lowlatency (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/vboxhost/4.0.2/build/ for more information.
Traceback (most recent call last):
  File "/usr/share/apport/package-hooks/dkms.py", line 57, in <module>
    report.write(open(apport.fileutils.make_report_path(report), 'w'))
IOError: [Errno 2] No such file or directory: '/var/crash/virtualbox-4.0.0.crash'

 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                         
 * Look at /var/log/vbox-install.log to find out what went wrong

I didn't bother. Virtual Box versions are released quite often, so I simply un-installed the old and installed a new (4.04) version and then upgraded the Guest Additions on my VMs. Everything is now working just great and even seems a little faster than before. :)
Old Ruler
Level 4
Level 4
 
Posts: 378
Joined: Sat Jul 18, 2009 12:43 pm
Location: Shropshire, UK.

Re: How To: Upgrade your kernel, painlessly.

Postby eric1987 on Mon Jun 27, 2011 11:43 am

I get an init module 3.13 isnt installed. I have tried to install it but it doesn't work it always says im on 3.12!!!
eric1987
Level 1
Level 1
 
Posts: 9
Joined: Sun Jun 19, 2011 9:17 pm

Re: How To: Upgrade your kernel, painlessly.

Postby smsmith on Fri Jul 01, 2011 12:52 pm

eric1987 wrote:I get an init module 3.13 isnt installed. I have tried to install it but it doesn't work it always says im on 3.12!!!

https://launchpad.net/ubuntu/+source/mo ... 3-1ubuntu1
I like poetry, long walks on the beach and poking dead things with a stick.
User avatar
smsmith
Level 3
Level 3
 
Posts: 157
Joined: Thu Jul 23, 2009 1:30 pm
Location: Illinois

Re: How To: Upgrade your kernel, painlessly.

Postby mint123 on Fri Jul 15, 2011 1:19 am

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?
mint123
Level 3
Level 3
 
Posts: 133
Joined: Mon Jan 31, 2011 4:44 pm

Re: How To: Upgrade your kernel, painlessly.

Postby MaddawgTL on Thu Jul 21, 2011 8:52 am

Can this tutorial also be used in changing from the latest kernel to an earlier version? My netbook fan is running constantly even indoors in a cold room and from what I read on these forums about the power problem was wondering if changing to an earlier version of the kernel would that not help save my battery?

Any help would be appreciated,thank you.
MaddawgTL
Level 1
Level 1
 
Posts: 21
Joined: Mon Jun 20, 2011 1:21 pm

Re: How To: Upgrade your kernel, painlessly.

Postby wayne128 on Thu Jul 21, 2011 8:54 am

MaddawgTL wrote:Can this tutorial also be used in changing from the latest kernel to an earlier version?


Yes
wayne128
Level 10
Level 10
 
Posts: 3314
Joined: Tue Jul 13, 2010 12:15 am

Re: How To: Upgrade your kernel, painlessly.

Postby MaddawgTL on Thu Jul 21, 2011 10:08 am

Thank you kind sir,still learning and thought so but want to make sure before I did something stupid.
MaddawgTL
Level 1
Level 1
 
Posts: 21
Joined: Mon Jun 20, 2011 1:21 pm

Re: How To: Upgrade your kernel, painlessly.

Postby antikythera on Tue Jul 26, 2011 7:54 am

Thanks for the easy to follow guide, much appreciated. I just upgraded the kernel to 3.0.0-300 on Isadora 32-bit. Seems to be working without any problems :)

EDIT: I take that back. Kernel 3.0.0-300 is not suitable for my needs. It solved a couple of issues which I could live with but caused problems with sound playback via my system's onboard Realtek Audio CODEC. Not much good for casual gaming and streaming TV from iPlayer etc. like that.

I found a stable kernel for lucid which works great and performs better than the default Isadora kernel on my system. 2.6.34 so I am going to stick with that for now (until I feel the urge to try and break my installation again ;) )
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.
 
PreviousNext

Return to Tutorials / Howtos

Who is online

Users browsing this forum: Google Adsense [Bot], jollyjack and 8 guests