LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-04-2015, 07:40 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Can I update Kernel without Rebooting?


Hello.
Can I update Kernel in any Linux Distro without Rebooting my system?

Thanks.
 
Old 07-04-2015, 08:25 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,126

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
Every driver would have to be rewritten to work with devices that are already initialized and running. While you switch kernels, every user space process would have to be stopped and restarted anyway, so what would be the point? By that time you may as well reboot.
 
Old 07-04-2015, 09:35 AM   #3
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Yes, you can update your kernel without rebooting. But you need to restart your computer to use the newer kernel. There is no way to use the updated kernel without restarting your system. Until you restart, you will still be using the old kernel you booted into when you started up your computer prior to updating your kernel.
 
Old 07-05-2015, 04:07 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
How about :

http://kernelcare.com/

http://blog.agate.io/post/1646051807...hout-rebooting

---------- Post added 07-05-15 at 04:08 AM ----------

How about :

http://kernelcare.com/

http://blog.agate.io/post/1646051807...hout-rebooting
 
Old 07-05-2015, 04:14 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
So why did you ask ?.
 
Old 07-05-2015, 04:36 AM   #6
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Thus, Update Kernel need rebooting and I can't use any trick about it.
 
Old 07-05-2015, 05:28 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
A basic understanding of search engines should have found this
 
Old 07-05-2015, 06:43 AM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Kernel 4.0 introduced live kernel patching for security fixes.

Also: https://en.wikipedia.org/wiki/Kexec
 
Old 07-05-2015, 10:19 AM   #9
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by Head_on_a_Stick View Post
Kernel 4.0 introduced live kernel patching for security fixes.

Also: https://en.wikipedia.org/wiki/Kexec
Good to know. I heard about this possibly going into the kernel some time ago. I think it was around the time that I was moving across country and then acclimating to a new area. I must have missed that it was added due to being so busy. I wasn't online for about 3 months.
 
Old 07-05-2015, 01:29 PM   #10
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by syg00 View Post
A basic understanding of search engines should have found this
I found some tools like it but they are for Patching
 
Old 07-06-2015, 02:02 PM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
Quite honestly, whenever I update the kernel, I want to reboot the machine. I don't want "the most-fundamental software environment under which all other software runs" ... to be changing underneath that software's feet, "on the fly."

Instead, I want "every airplane that is now up in the sky," first, to land (and to turn-off their engines). Then ... and only then ... in the briefly-eerie silence ... I shall "replace The Sky."

A-n-d ... "God forbid" ... if The Sky is suddenly full of smoke and shrapnel ... I shall have a reliable exit-strategy: I shall quickly repeat the process. When I have done so, I will once again know with certainty "the nature of the air-space that "every(!) Airplane Up There" will encounter.

And, I shall hope, I shall thereby have earned the outcome that every IT-person earnestly hopes for: the prerogative to "go home and eat dinner, perchance to go out to eat," and then to get a good night's sleep, without(!) The Pager Going Off At Some <<deleted>>-UnGodly Hour.

...

Last edited by sundialsvcs; 07-06-2015 at 02:12 PM.
 
Old 07-06-2015, 03:05 PM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
that looks (at least for me) something like changing your car without sitting into the new one. So yes, you can have several kernels, but only one will be in use at a time. Obviously I can say I have heard there is an os where you can even boot the second kernel without stopping the original one and all the new(?) processes will use the new kernel, but probably that was only a tale.
 
Old 07-06-2015, 04:21 PM   #13
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,126

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
Two different things have been brought up.

kpatch is a way to apply patches to the running kernel without rebooting. It is experimental. Last I checked RedHat says try at your own risk.

kexec lets you reboot into a new kernel without restarting the BIOS, so it bypasses stuff like memory test. It also doesn't do a hardware reset so all of your devices are in an unknown state and may be active when the new kernel starts. I know of at least one video card that executes a different command set at reset time than after a new kernel boots and runtime firmware is loaded. Does your driver support that?
 
Old 07-09-2015, 12:55 PM   #14
rlx
Member
 
Registered: Jul 2009
Location: Montréal
Distribution: Slackware customized
Posts: 50

Rep: Reputation: 13
If you have some time, try to build a small 'LinuxFromScratch' system, and you will find yourself doing just that. Its worth trying at least once.

That process takes you to a totally new system though. I don't believe it would work if you just wanted to update the kernel within the current PATH.

Last edited by rlx; 07-09-2015 at 01:07 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Linuxmint17 not rebooting after second package update Clived Linux Mint 3 09-02-2014 11:04 AM
[SOLVED] After -current upgrade, I forgot to update lilo before rebooting! textillis Slackware - Installation 2 07-03-2013 02:53 AM
[SOLVED] How to update newly created partion in RHEL6 without rebooting the system? manalisharmabe Linux - Newbie 2 04-20-2011 06:55 AM
FSTAB update without rebooting mijohnst Linux - General 2 12-20-2004 10:54 AM
update config files w/o rebooting slack66 Linux - Newbie 1 05-23-2004 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:23 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