LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2008, 10:38 PM   #1
d.kumar
LQ Newbie
 
Registered: Oct 2007
Location: Faridabad - India
Distribution: Fedora, Redhat, Ubuntu family
Posts: 10

Rep: Reputation: 0
how to clone a linux partition (like norton ghost)


Hi everyone

is there any package is available which can be used to clone/image a hard disk partition having linux filesystem

thanks
 
Old 02-04-2008, 10:46 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you had a look at partimage? From the home page:
Code:
Description: Partimage is a Linux utility which saves 
partitions having a supported filesystem to an image file. 
Most Linux and Windows filesystems are supported. The image 
file can be compressed with the gzip / bzip2 programs to save 
disk space, and they can be splitted into multiple files to 
be copied on CDs / DVDs, ... Partitions can also be saved 
across the network since version 0.6.0 using the partimage 
network support, or using Samba / NFS.
 
Old 02-05-2008, 08:23 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Hi d.kumar,

Norton Ghost will work for _some_ Linux partitions. The product I have use is g4l (Ghost for Linux) available at http://sourceforge.net/projects/g4l It is basically a menu driven front end for partimage. You simply download the g4l image, burn to CD and you have a bootable CD. Boot from the CD and g4l <Enter> brings up the app. Select the destination where you want to write the image then select the partition to be processed. g4l uses partimage to make the image and has a couple of compression options.

That said, there are a few potential issues:

Fedora (starting with Core 4 or 5) uses a logical volume (LVM) approach to formatting the hard drive. I have not found ANY application which will image such a hard drive.

If you install Fedora without LVM it still formats the hard drive with resizable partitions. These also cannot be imaged in my experience. The trick is to manually partition the hard drive then format the partitions thusly:

mkfs.ext3 -L /boot /dev/sda1 -O ^resize_inode

This makes plain old etx3 partitions which can be imaged. You then need to install Fedora into the existing partitions without formatting during the install. You can then image the partitions with g4l from now on.

Ubuntu - I "discovered" it a while back and I must say it is a distro which I actually enjoy using day to day. However, it uses UUIDs to identify partitions. The UUID is a supposedly unique number/letter string created when the partition is created (or formatted, not sure). g4l will image and restore these partitions OK. However, if you need to restore a whole system to a new hard drive it is necessary to edit the /etc/fstab on the restored system to contain the proper UUID for the swap partition. The g4l restored partitions will have their original UUIDs.

That is the summation with my experience with imaging Linux partitions.

Regards,

Ken
 
Old 02-05-2008, 09:17 AM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
You also might want to look at Clonezilla LiveCD. Here is a link to a liveCD that includes that called the Clonezilla-SysRescCD.
 
Old 02-05-2008, 06:53 PM   #5
dtmbmw325i
Member
 
Registered: May 2006
Location: Lebanon, PA
Distribution: Ubuntu 7.10
Posts: 47

Rep: Reputation: 16
I was trying to clone a drive last night and found the clonezilla cd hard to use. It was clonezilla and gparted. I dont know if I was too dumb to use it or what. The Partimage was a piece of cake although didnt work for me. My partition was not linux.
 
Old 02-28-2008, 08:41 AM   #6
d.kumar
LQ Newbie
 
Registered: Oct 2007
Location: Faridabad - India
Distribution: Fedora, Redhat, Ubuntu family
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks a lot for reply

Hi All members

Thank you very much for reply and valuable links.



Very very thanks

 
  


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
Looking for the linux equivalent of Norton Ghost Maldain Linux - General 4 10-05-2005 09:31 PM
Equivalent of Norton Ghost for Linux? vlk72 Linux - Newbie 15 10-08-2003 05:12 AM
Linux and Norton Ghost jet192 Linux - General 1 08-17-2003 11:26 AM
Norton Ghost for linux? Partition software needed. square_eyes Linux - Software 2 07-12-2003 07:01 AM
Problems on using Norton ghost to clone RedHat 7.3 (ext3) gsbarry Linux - Software 5 01-30-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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