Page 1 of 1

partition cloning

Posted: Tue Mar 23, 2010 6:11 pm
by dutchkind
I have looked into the documentation of fsarchiver and haven't found an answer, so I ask it here. Would it be possible to clone a partition to another one, directly, without first creating an archive? If not, are there any plans to implement this?

To clone a partition one could use dd, but the limitation is that the destination partition is not smaller than the original, and I see potential in the way fsarchiver could do this.

It would be great to be able to use fsarchiver also for moving to another harddisk in this way.

Thanks for the great work so far.

Re: partition cloning

Posted: Thu Apr 01, 2010 9:05 pm
by bobbysch

No, it's not possible. Pipe is not yet implemented.

Re: partition cloning

Posted: Thu Apr 01, 2010 9:06 pm
by bobbysch
You can try the utility partclone to do that.

Re: partition cloning

Posted: Fri Apr 09, 2010 8:13 pm
by dutchkind
OK, I will try partclone for that

Re: partition cloning

Posted: Sun Apr 11, 2010 8:06 am
by admin
You should consider rsync. It works at the file level so you don't need any special filesystem implementation that could have bugs:
mke2fs -j -L mypart /dev/part2
mount /dev/orig /mnt/part1
mount /dev/clone /mnt/part2
rsync -axHAX -P --delete /mnt/part1/ /mnt/part2/
The trailing slash matters in rsync.

Re: partition cloning

Posted: Fri Apr 23, 2010 4:13 pm
by dutchkind
That is also worth trying, I will see what it can do, thanks.