View previous topic :: View next topic |
Author |
Message |
deathraccoon Tux's lil' helper
Joined: 27 Jan 2015 Posts: 90
|
Posted: Mon Mar 30, 2015 5:45 am Post subject: cloning a Gentoo-- dd or rsync |
|
|
I recently acquired a second hard drive and I want to use it for my present installation. I have three partitions on the current disk: /dev/sda contains (1)bios-grub (2)boot (3)logical volumes. is it possible to simply do Code: | dd if=/dev/sda of=/dev/sdb | and expect everything (partitions and logical volumes) to appear on the second disk? or do I need to set up the partitions and volumes on the new disk first and use something like rsync to transfer the data? thanks. |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Mon Mar 30, 2015 6:22 am Post subject: |
|
|
I'd use rsync. If we are talking ssds here then there is no question at all as dd is particularly harmful in this case.
dd is literally a bit for bit copy and will only work as expected if the two disks are the same size. It will also copy everything, including unused space. This is clearly not desirable.
rsync only copies data. This is what you want to do. It is the right tool for the job and will probably be quicker, partitioning time included. It just has files to copy. dd has files and empty space to copy.
The reason dd is so harmful to an ssd is because it gives it data and messes up its wear leveling and other stuff. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
|