dd command usage to clone hdd
I have 2 harddrives - one internal and one external , both are 500gb. The external harddrive is empty(unformatted) and the internal hdd has 12.04 as well as win7 partitions on it.
output of lsbk shows that my internal hdd is sda and the external hdd is sdb, hence running the command below would copy the internal hdd to my external hdd
if=/dev/sda of=/dev/sdb
Since dd does a 100% copy it should also copy my filesystem , grub etc, so I dont need to format the external hdd for dd to work, correct?
Do i need to boot to a live cd environment to clone entire hdd ?
Both ubuntu and win7 partitions are encrypted (via LUKS from alternative installer and truecrypt on windows ), can I just confirm that dd will indeed copy the encrypted data , i.e. upon restore i still need to provide a passphrase etc etc?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply: