LinuxQuestions.org
Visit Jeremy's Blog.
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 08-23-2010, 04:26 PM   #1
rmknox
Member
 
Registered: May 2010
Posts: 354

Rep: Reputation: 34
TAR USAGE - Backing up two partitions - Fedora 12


On fedora 12 - 1 drive - 2 partitions: a small partition to boot, a big one for all other things - sda1 and sda2.

I would like to use tar to copy them to a different drive. That way I not only back them up but also reorganize them.

(1) approach 1 - 2 drive approach

On second drive (sdb) created 2 partitions with fdisk, used mkfs to put file systems into them.

Easy to do sdb1. I created a directory /target and mounted sdb1 there. Then used tar pipe tar to copy /boot to /target. Appears to be ok.

Not so obvious how to do sdb2. I can mount it at target but

(1) if I copy / to /target there is recursion?? I tried --exclude=/boot --exclude=/target but it went ahead and copied /target.

Also there are a number of things mounted onto / - see output of mount below
Code:
/dev/mapper/vg_knox-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /boot type ext4 (rw)
gvfs-fuse-daemon on /home/knox/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=knox)
puzzled - is there an easy way out??

(2) approach 2 - 3 drive approach
Looks like an easy way out is to boot sda from a backup and then tar from sdb to sdc. But this requres that I install 3 disks.
Is there an alternative?
 
Old 08-23-2010, 10:10 PM   #2
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 85

Rep: Reputation: 7
Only a suggestion....

Get a copy of SystemrescueCD or a live CD (I use Systemresuce a lot, so always have a copy when I need it), boot from the CD, mount individual partitions as needed. That should save any recursion, and also save copying anything mounted, on the normal / partition, since it won't be active.

Paul.
 
1 members found this post helpful.
Old 08-24-2010, 12:41 AM   #3
rmknox
Member
 
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
Paul - great idea. Live CD's are ok? I was confused - now I imagine that while they don't need a disk they have the utilities to access the disk.
I will get your suggested package
Thanks
DIck

the system seems to be missing the thanks button - anyway thanks!!
..
 
Old 08-24-2010, 01:28 AM   #4
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 85

Rep: Reputation: 7
Quote:
Originally Posted by rmknox View Post
Paul - great idea. Live CD's are ok? I was confused - now I imagine that while they don't need a disk they have the utilities to access the disk.
I will get your suggested package
I'd expect most live CDs to have all the necessary tools. SystemrescueCD is designed for that sort of work, so it certainly does. I keep a copy in my tool box, mainly for recovering broken Windows boxes, but its also useful for Linux repairs.

Quote:
the system seems to be missing the thanks button - anyway thanks!!
..
You're welcome. Hope it helps.

Paul.
 
  


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
backing up with tar vbereaux Linux - Newbie 4 09-10-2009 07:55 PM
backing-up with tar marlaina1 Linux - Newbie 7 08-23-2008 06:19 PM
Backing up my computer with tar JerryMcFarts Linux - General 22 04-11-2006 03:28 AM
backing up help with tar dannyk1 Linux - Newbie 5 08-22-2004 07:25 AM
Backing up with tar rooch84 Linux - Software 2 08-20-2004 03:30 AM


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