ehcpdeveloper's blog

Moving to a new harddrive - with lvm - luks encryption

In this post, I will describe how to move to a new harddrive, either server or desktop (linux).
This topic is outside the "hosting" topic, but may be useful for you.

I have one old drive, (/dev/sda), Luks encrypted.
one new drive, bigger (/dev/sdb)

New drive has no partitions (or may have also...)

This command copies all of old drive onto new one, with a kind of progress indicator..
pv -n /dev/sda | dd of=/dev/sdb bs=128M conv=notrunc,noerror

this takes long time, depending on your old drive size.

email writing guide, use when sending any question/suggestion to us

Please note and follow the guidelines below concerning the writing of e-mail messages.

Subjects
Give the message a subject/title. E-mail messages without a subject may not be opened because of a fear of viruses and especially note that it is very easy to forget to type this important information.

Subject contents
Keep the subject short and clear but avoid such headings as:
'hi', ‘Good News’, ‘Hello’, ‘Message from Mary’. These headings are common in messages containing viruses. Short but specific headings are needed,
Examples:

Alexa graph

CONTACT US
ehcp Helper/Howto
get Support/Answers
ehcp ticket system
http://launchpad.net/ehcp
Cesur Termal

User login

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
4 + 15 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.