LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-13-2006, 10:28 AM   #1
jb8578
LQ Newbie
 
Registered: Dec 2006
Posts: 14

Rep: Reputation: 0
can Partimage be used to ghost the drive?


I tried using Norton Ghost 9.0 to ghost a FC5 drive and it didn't work.

So I installed Partimage on my FC5 machine. It allows me to image the MBR, and any partition on the drive.

My question is: if i can restore the MBR, hda1 and hda2, would that restore the entire system to a new hard drive?
 
Old 12-13-2006, 11:51 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I like using partimage but, there are a couple of things to be aware of.

1. Partimage doesn't do a partition that is in use. That means you will need to run it from a livecd like Knoppix or similar. Even when using a livecd, you need to make sure that partition isn't mounted.

2. Partimage restores to partitions which are the same size or bigger. It will not restore to a smaller partition.

I haven't used partimage to copy the mbr, I use dd for that...
dd if=/dev/sda of=/dev/sdb bs=512 count=1

You should format the partitions before restoring to them.
 
Old 12-13-2006, 12:48 PM   #3
jb8578
LQ Newbie
 
Registered: Dec 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks. Partimage has a bootCD you can download that runs Gentoo Linux. I tested booting to it, mounted a drive that was formatted and imaged hda1 to it. Didn't try hda2 or MBR yet.

So i guess if I had to restore to a new 80GB drive, i'd first have to recreate the hda1 & hda2 partitions exactly and format them.
 
Old 12-13-2006, 01:29 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You do need to make the partitions first and format them.
If you want, you can make them larger. Then, after restoring the image to the partitions, you can resize the filesystem so it uses the whole partition.
For example:
#Note: the partition needs to be un-mounted for this.

umount /mnt/hda1
e2fsck -f /dev/hda1
resize2fs -f /dev/hda1

Last edited by homey; 12-13-2006 at 01:31 PM.
 
  


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
Best Program to Ghost My Hard Drive Hitty Linux - Software 5 06-19-2006 10:27 AM
ghost linux drive ? xaeniac Linux - General 3 05-30-2005 06:36 PM
Why partimage cannot read a mounted drive? browny_amiga Linux - General 4 02-06-2004 10:33 AM
partimage shows drive but not partitions? bdp Linux - Software 4 11-29-2003 08:20 AM
ghost or drive copy for linux knobby Linux - General 5 01-31-2002 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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