LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Backup Of Kernel Versions (https://www.linuxquestions.org/questions/linux-newbie-8/backup-of-kernel-versions-4175506940/)

PasBern 06-03-2014 04:19 PM

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

jailbait 06-03-2014 07:35 PM

Quote:

Originally Posted by PasBern (Post 5181821)

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

syg00 06-03-2014 08:31 PM

Quote:

Originally Posted by PasBern (Post 5181821)
...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.

PasBern 06-04-2014 07:17 AM

...after all the installed kernel versions were upgraded by the package manager.

Quote:

Originally Posted by syg00 (Post 5181938)
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).


All times are GMT -5. The time now is 03:14 AM.