Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-17-2007, 01:01 AM
|
#1
|
LQ Newbie
Registered: Aug 2007
Posts: 5
Rep:
|
How do I clone my hard drive when file-system is encrypted?
Hi; total noob here... I've installed Etch and partitioned it with LVM and encrypted the drive (/root ; /usr ; /var ; /tmp ; /swap ; /home - encrypted) (/boot - not encrypted).
I love learning Linux and often break things which I don't know how to fix, so I keep good backups and just re-install fresh when I break something. I wanted to clone my clean install, so next time all I have to do is format drive and install from clone on CD.
I've been able to clone using Clonezilla and it works GREAT... but that was before encrypting the hard drive. Is there a way to clone the drive which has been encrypted? If not... I'm open to ALL suggestions.
Thank you much for any help.
|
|
|
08-17-2007, 03:40 AM
|
#2
|
Senior Member
Registered: Mar 2006
Posts: 1,896
Rep:
|
I'm interested to see what other ideas are posted here, but to get things rolling, I'll mention the command line program dd. This utility makes a bit-by-bit copy of the partition, not caring what any of those bits mean. Therefore, it should be adequate to clone an encrypted (or any other) partition.
Time for disclaimer: I have not used Clonezilla, but I just did a quick Internet search to see what it does. The difference between dd and what I think you are used to Clonezilla doing, is that Clonezilla will normally interpret the filesystem and only save the sectors that are used. With dd, all sectors will be saved. So your image will be larger than you are probably used to. My quick search suggested that Clonezilla will use dd if it doesn't understand the file system. So you may already have this option available to you w/o needing to learn a command line interface.
I await to see what other solutions might be suggested.
Last edited by blackhole54; 08-17-2007 at 03:45 AM.
Reason: Spelling correction
|
|
|
08-17-2007, 06:23 AM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep:
|
I'd use dd too. But. If this is your boot drive it will contain the MBR. Thus you can't change the layout of the partitions, else you'll wreak havoc unless you first save the MBR then do the restore of the clean install and lastly restore the actual MBR.
Same goes for the partition data -- if they are dd'ed too (I dunno where they reside, it's just something to keep in mind).
|
|
|
All times are GMT -5. The time now is 12:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|