Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel upgrades (how many to keep and how to manage)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Sat Aug 19, 2017 8:25 pm    Post subject: Kernel upgrades (how many to keep and how to manage) Reply with quote

Curious about the recent kernel revisions I'm installing...what should be the overall method of doing kernels within Gentoo. Is it just about ALWAYS the best idea to have the most up to date kernel installed.

I'm wondering, als, if it would serve any purpose to kee multiple kernels for the system, such as running various programs, or environments, DE, or WM, etc.

Code:
Available kernel symlink targets:
  [1]   linux-4.9.34-gentoo *
  [2]   linux-4.12.5-gentoo


With storage space, I am not thinking of going crazy with it, just want to know if it makes any sense in the scheme of things to have a couple of older kernel installs in addition to these, for some situations?

Much thanks
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Sat Aug 19, 2017 8:39 pm    Post subject: Reply with quote

Sometimes something gets broken on a kernel update. For such cases it can be helpful to keep the latest working kernel, so you could switch back to it. For keeping more than one older kernel I cannot find any good reason.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Sat Aug 19, 2017 8:49 pm    Post subject: Reply with quote

LIsLinuxIsSogood,

I keep kernels in /boot almost until its full :)

I purge kernel sources in /usr/src so I only keep the current one, the last one' and the latest I need to upgrade to.
So thats only 2 or 3.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Goverp
Veteran
Veteran


Joined: 07 Mar 2007
Posts: 1999

PostPosted: Sun Aug 20, 2017 7:41 am    Post subject: Reply with quote

logically you need 2: the one you've most recently installed and are using and in case it turns out something's broken, the previous version "kernel.old". When a new version comes out, let's call it "kernel.new", you test it for a while. When you're happy with it, rename "kernel" as "kernel.old" and "kernel.new" as "kernel". There's no need to keep the old "kernel.old"; that's on your backup, isn't it. ;-)
_________________
Greybeard
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Sun Aug 20, 2017 2:00 pm    Post subject: Reply with quote

I'm like Neddy; Just keep adding kernels to /boot until it starts to get full then purge some, but only keep the source code for the more recent ones.

It's worth keeping at least the previously known-working one just in case the latest one is not as stable as expected; The current kernel is a good example: A few people have been bitten by bugs in 4.12 like btrfs bug causing logs to be flooded with false warnings, and the newly added CONFIG_USB_PCI option causing USB to stop working (I was lucky to dodge this since I still prefer PS/2 keyboards and mice, ironically for this exact reason, but since most people use USB keyboards and mice these days they would not be able to even login to the machine to fix it if they weren't able to reboot to an earlier kernel to recompile the new one!)
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Mon Aug 21, 2017 5:47 am    Post subject: Reply with quote

Hell, i understand this really isn't the issue but I'd like to do what Goverp says, which is to backup on an external drive (cool). Does anyone have a recommendation as to if using the SystemRescueCD for that, versus just using one of the bare metal recovery tools for a 'live backup'?

Also does bare metal recovery fare well against other tools such as rsync...in terms of keeping at least 1 copy of the entire HD in case of a crash, or could sometimes relying on just either/or be enough...
like in this situation: https://wiki.gentoo.org/wiki/A_simple_backup_scheme_using_rsnapshot#Using_rsyncd_on_a_trusted_LAN. Seems good, however does it leave any security holes!?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum