LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-03-2014, 04:19 PM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Near Frankfurt, Germany
Distribution: OpenSUSE Leap 15.5, MacOS
Posts: 122

Rep: Reputation: 2
Backup Of Kernel Versions


As I stated in this thread (http://www.linuxquestions.org/questi...ed-4175506695/) I had trouble booting my Sabayon Linux after all the installed kernel versions were upgraded by the package manager.

I tried to compile a kernel via a Gentoo Live system and then have GRUB boot it, but failed due to my limited knowledge of Linux.

So finally I decided to reinstall my system, and surprisingly the newest 3.14.4 kernel revision actually boots.

In order to prevent such catastrophes in the future, I would like make a backup of my working kernel versions, so I can 'copy' them back. How would I best do that? Making a backup of my Boot-partition probably won't be enough.

Thanks for your hints
 
Old 06-03-2014, 07:35 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by PasBern View Post

In order to prevent such catastrophes in the future, I would like make a backup of my working kernel versions, so I can 'copy' them back. How would I best do that? Making a backup of my Boot-partition probably won't be enough.
Making a copy of your /boot directory and its sub directories will be sufficient.

---------------------------
Steve Stites
 
Old 06-03-2014, 08:31 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by PasBern View Post
...after all the installed kernel versions were upgraded by the package manager.
I would very much doubt that. I haven't looked at Sabayon since it was initally launched, but I can't believe they'd do that.
The (proprietary) firmware is maintained out-of-tree and loaded separately. I'd suspect your kernel(s) actually booted ok, but you wound up with a broken system - so the effect may have looked the same to you.
Quote:
In order to prevent such catastrophes in the future, I would like make a backup of my working kernel versions, so I can 'copy' them back. How would I best do that? Making a backup of my Boot-partition probably won't be enough.
To preclude events like this I take a snapshot of the entire system pror to updates. If all goes well, just trash the snap, if not roll-back.
I use btrfs, but LVM2 offers similar capabilities.
 
Old 06-04-2014, 07:17 AM   #4
PasBern
Member
 
Registered: Dec 2009
Location: Near Frankfurt, Germany
Distribution: OpenSUSE Leap 15.5, MacOS
Posts: 122

Original Poster
Rep: Reputation: 2
...after all the installed kernel versions were upgraded by the package manager.

Quote:
Originally Posted by syg00 View Post
I would very much doubt that. I haven't looked at Sabayon since it was initally launched, but I can't believe they'd do that.

They do minor upgrades like from 3.14.1 to 3.14.2. Still all these 'revisions' apparently had modifications so that neither of them booted my system. I had all kernels installed from 3.9 all through to 3.14 and all received a revision upgrade.

Not being able to boot the system gave me no chance to reinstall and old kernel saved on the system. And I failed to have a manually compiled kernel boot (encrypted LVM doesn't make things easier).
 
  


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] what are the other differences between fedora versions except their kernel versions teja_vijjapu Fedora 1 01-23-2012 06:38 AM
Advice for pervious versions backup tqz Linux - Software 2 01-13-2010 08:04 AM
Comandline program for making up backup-versions? (like gui-less filehamster?) gaikokujinkyofusho Linux - Software 2 12-04-2009 06:38 AM
gcc versions compatibility with kernel versions.. mahesh_manthapuri SUSE / openSUSE 1 03-22-2006 12:28 AM
How to keep modules/drivers across kernel recompiles and kernel versions? Pisces107 Linux - General 5 01-21-2004 08:29 PM

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

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