LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-07-2008, 08:37 AM   #1
hattrick
Member
 
Registered: Oct 2007
Posts: 32

Rep: Reputation: 15
"ghost" hdd w/ Linux?


Is it possible to backup and restore my Fedora core 9 setup (keep in mind, with all the tweaks, installs, packages, updates, files, etc)

much like Norton Ghost does?

(for those of you who don't know, you can basically backup everything in the state it's in now, and restore it at any time)

thanks in advance!
 
Old 07-07-2008, 10:02 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
There are many ways to do this and many tools available, but the best way is to use a bootable linux cd like slax, siddux or Parted Magic so you don't have to deal with the issues of backing up a running system.
One tool that is somewhat like ghost is partimage. It comes on many livecds and must be run from a livecd since it will not image a mounted partition:

http://www.partimage.org/Main_Page

If you are using a livecd, the easiest method is to just use tar to create an archive of the entire partition. the procedure is as follows:

1. Boot with a livecd and mount the partition you want to backup if it is not already mounted. By way of example, assume you want to back up sda1 which has been mounted on /mnt/sda1 to partition sda2 mounted on /mnt/sda2;

2. Open a console and run:
Code:
$ su
<enter root password>
# cd /mnt/sda1
# tar -czvf /mnt/sda2/archivename.tar.gz .
Don't forget the trailing "." in the above tar command; it is essential part of that command. This will create a gziped compressed tar archive of the entire partition, sda1, named "archivename.tar.gz".

To restore, you boot with your livecd, mount sda1 and sda2 and run as root:

Code:
# cd /mnt/sda1
# tar -xzvf /mnt/sda2/archivename.tar.gz
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help in Puppy Linux "saving to HDD" option...... East Linux - Newbie 1 03-03-2008 07:44 PM
Can I make a bootable TAPE using "dd" or "GHOST" from RedHat Enterprise Linux AS 4 rrojo7229 Linux - Server 3 12-20-2007 07:53 AM
"ghost" a linux disk goestin Linux - General 2 11-25-2004 06:51 AM
"Norton Ghost" app for LINUX??? szamm Linux - Software 7 06-03-2004 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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