LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-03-2014, 09:18 AM   #1
abourke
Member
 
Registered: Dec 2006
Posts: 95

Rep: Reputation: 16
BTRFS backup - What do I do with the boot partition?


Hi

I have been using the snapper utility to manage BTRFS snapshots. I create a config for root and home then can freely snapshot most of my disk.

However, the boot partition is not a BTRFS filesystem. So I cant snapshot/restore it.

So, my question is how do I go about backing up/restoring the boot partition?

I have seen a few guides online about installing zfs on linux. That would be one solution. Has anyone got any other ideas?

Regards
Aubrey.
 
Old 12-03-2014, 11:14 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
/boot is rather small.

I just use tar.
 
Old 12-03-2014, 11:35 AM   #3
abourke
Member
 
Registered: Dec 2006
Posts: 95

Original Poster
Rep: Reputation: 16
Ok,

Will a tar backup/restore work while the boot partition is mounted?

Or must I load a Live-CD to do this first?

Regards
Aubrey.
 
Old 12-03-2014, 03:26 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
The /boot filesystem is rather static. Nothing changes unless you are performing an update.

Once the update is completed, it can backed up using tar (which works with any filesystem).

Now using dump can work, but you need to make sure the filesystem has been flushed to disk - which is easiest done by dismounting it.

The only thing neither tar or dump does is backup the boot block. Restoring that requires reinstalling the boot (either grub, lilo, or whatever you use). It is also easiest to do using a recovery disk.
 
  


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
btrfs filesystem backup to a backup server bagpussnz Linux - Server 3 06-09-2014 07:59 PM
backup and restore boot partition ajayyadavmca Programming 4 06-28-2012 02:26 AM
Do I need an windows 7 OS backup before partition / dual boot? jorbaud Linux - General 14 01-22-2012 07:21 PM
Move boot partition/Backup hazmatt20 Linux - General 5 01-09-2006 03:16 AM


All times are GMT -5. The time now is 08:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration