Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cloning a Gentoo-- dd or rsync
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
deathraccoon
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2015
Posts: 90

PostPosted: Mon Mar 30, 2015 5:45 am    Post subject: cloning a Gentoo-- dd or rsync Reply with quote

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
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Mon Mar 30, 2015 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum