LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 08:18 AM   #1
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Rep: Reputation: 18
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, 10:14 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

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

I just use tar.
 
Old 12-03-2014, 10:35 AM   #3
abourke
Member
 
Registered: Dec 2006
Distribution: Fedora
Posts: 118

Original Poster
Rep: Reputation: 18
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, 02:26 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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



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

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

All times are GMT -5. The time now is 10:42 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
Open Source Consulting | Domain Registration