Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-13-2006, 11:28 AM   #1
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, 12:51 PM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
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, 01:48 PM   #3
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, 02:29 PM   #4
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
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 02:31 PM.


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

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration