HOMEPAGE FORUMS NEWS DOCUMENTATION SCREENSHOTS
SystemRescueCd forums
View unanswered posts | View active topics It is currently 23 Sep 2014, 14:22



Post new topic Reply to topic  [ 2 posts ] 
 Best way to clone one or several HDD [solved] 
Author Message

Joined: 14 Jul 2011, 07:16
Posts: 3
Post Best way to clone one or several HDD [solved]
edit: oops.. this should be better in "Hard-disk partitioning and storage" or so

Hello everybody!

Simple question to discuss: what is the best way to clone one or several disk drives? I think there won't be the one and only answer. I am just at the beginning of becoming all familiar with Linux and disk cloning. What we want to do: clone one or multiple disk drives from one system to another (kind of installation CD).

I see three possibilities at this point:
* using dd
* using partimage
* using fsarchiver

This explains nice features of fsarchiver against partimage:
http://www.fsarchiver.org/Fsarchiver_vs_partimage
This is why I would prefer fsarchiver.

I have tried it and come across trouble with grub. If I have understood correctly fsarchiver just copies the files from the disk and stores it in the archive. It does not remember in which blocks the data to put back, am I right? I think this is the point which makes our GRUB break down.

Here is a nice instruction manual how to get GRUB back working:
http://www.sysresccd.org/Sysresccd-Part ... maged-Grub

Are you maybe using dd instead? Are you facing the same trouble?
I think dd would also be a nice option. What are the big disadvantages?
Do the disk drives have to be exactly the same size (I think smaller is not good, would bigger be a problem)?
Does (un)compressing need more time, I think I'd have to pipe the output somewhere? I suggest fsarchiver will be faster.

Edit:

My current way to go is:
* copy MBR of source disk
* copy files by partition into archive with fsarchiver
* play back MBR
* play back files by partition from archive using fsarchiver
Unfortunately after playing back the MBR using dd only fdisk can see my partitions now. Gparted does not show them and /dev only shows me /dev/sda... /dev/sda1, etc missing.

Edit:
It seems this is possible by calling fdisk and then "w" for write. Or I did it somehow else incidentally.
Is it possible to do this in a one-line command call? "fdisk -w" or something did not work.
Solved: partprobe does the thing!

Thanks for your help!
Matthias


19 Jul 2011, 11:01
Profile

Joined: 07 Apr 2010, 16:19
Posts: 956
Post Re: Best way to clone one or several HDD
sfdisk -R /dev.. reread the partitiontable.
You can dd a small HD to a bigger but it is slow because this copy also unused blocks, but its mosttime bootable.

Gernot


19 Jul 2011, 14:45
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.