You are not logged in.

#1 2015-01-07 16:40:23

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

migrating system to new drive

my installation is lvm2 over luks. I wish to transfer my entire system to a new drive. if I first encrypted the new drive then used

dd if=/dev/<source> of=/dev/<destination>

, would the result be adequate or should I use first set up lvm on the new device then use rsync? would dd preserve my lvm  scheme?

Last edited by shoelesshunter (2015-01-07 16:42:15)

Offline

#2 2015-01-07 17:27:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,695
Website

Re: migrating system to new drive

I vote for the rsync option.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#3 2015-01-07 17:46:42

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,165
Website

Re: migrating system to new drive

I'd go with rsync as well.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#4 2015-01-07 18:20:30

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: migrating system to new drive

It's not clear what <source> and <destination> are, so FYI you'd have to dd the old encrypted device to the new raw device or the old decrypted device to the new decrypted device. But since you've already set up encryption I assume you'd go with the latter.

But I also vote for the rsync method. Just make sure to use the correct flags; there's a wiki page on the topic IIRC.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB