partition cloning

Post here if you want to request a features that has not been implemented yet
Post Reply
dutchkind
Posts: 6
Joined: Thu Mar 11, 2010 12:43 pm

partition cloning

Post by dutchkind » Tue Mar 23, 2010 6:11 pm

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.

bobbysch
Posts: 26
Joined: Mon Jun 15, 2009 8:46 pm

Re: partition cloning

Post by bobbysch » Thu Apr 01, 2010 9:05 pm

Hello,

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

bobbysch
Posts: 26
Joined: Mon Jun 15, 2009 8:46 pm

Re: partition cloning

Post by bobbysch » Thu Apr 01, 2010 9:06 pm

You can try the utility partclone to do that.

dutchkind
Posts: 6
Joined: Thu Mar 11, 2010 12:43 pm

Re: partition cloning

Post by dutchkind » Fri Apr 09, 2010 8:13 pm

OK, I will try partclone for that

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: partition cloning

Post by admin » Sun Apr 11, 2010 8:06 am

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.

dutchkind
Posts: 6
Joined: Thu Mar 11, 2010 12:43 pm

Re: partition cloning

Post by dutchkind » Fri Apr 23, 2010 4:13 pm

That is also worth trying, I will see what it can do, thanks.

Post Reply