FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just one line of dd command in Linux if the target disk (say it is hda) is of the same type and size of the source disk (say it is hdb)
dd if=/dev/hda of=/dev/hdb bs=64M
Basically to use the above you need to have the total number of cyclinders matched in both disks. The bs parameter if omitted will default to 512 bytes and the process will be a lot slower.
If you haven't got identical drives then just clone each individual partition. Again make the partition the same size. The command, for cloning /dev/hda7 to hdc7, is
dd if=/dev/hda7 of=/dev/hdc7 bs=64M
If your have to change the partition size in the target partition then use the tar command.
Post #23 is a bullet proof method of achieving it.
There is also G4U.
I can make a full copy of the complete disk, whatever the partition type. Can be really usefull if you have a mix system with different partition type.
Plus, the image is stored/fetched from an ftp server. So you can easily make images for multiple machines. Or restore an image on multiple achine simultaniously.
Yep. You need to partition the disk first. Obviously in cloning, say from hda7 to hdc7, the target partition doesn't match the source but its image is mirrored. On removing hda disk and plug the hdc disk to hda position the target disk partition will inherit hda disk designation and will boot as the original.
BoldKiller
Not tried G4U, pressumably it is Ghost for GNU/Linux. Should be interesting to see if it can make a XP partition of size different to the original bootable in a multi-partition disk.
I practically threw away the Windows' version of Ghost after learning to clone partitions with the dd command which is available in every Linux.
Not tried G4U, pressumably it is Ghost for GNU/Linux. Should be interesting to see if it can make a XP partition of size different to the original bootable in a multi-partition disk.
G4U is Ghost for Unix. It is named that way because it uses, if my memory is orrect, a modifyed bsd (of freeBSD, not sure) core.
It can image a multipartition system without any problem. But, as I was saying, it does a Full bytes per byte copy (and compress, of course!) It does not try to understand teh exact format of the partiton. The advantage is it can work with ANY filesystem! Disavantage, it cannot be as efficent (as in the size of the image) as it could be.
You can make an image of the full disk or only of a single partition. I saw a couple of info on G4U web site about restoring to diffrently sized disk. But I did not really read them, since it was not what I was looking to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.