LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-17-2007, 01:01 AM   #1
gopips39
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Rep: Reputation: 0
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.
 
Old 08-17-2007, 03:40 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
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
 
Old 08-17-2007, 06:23 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637

Rep: Reputation: Disabled
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using dd to clone my hard drive Tommo Linux - Hardware 15 05-20-2007 04:49 PM
Bigger Hard Drive - Clone? Snump Mandriva 14 11-21-2006 09:37 AM
I need to clone a laptop hard drive mike160 Linux - Laptop and Netbook 9 04-23-2006 06:23 PM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 03:24 PM
Clone a hard drive twantrd Solaris / OpenSolaris 10 02-05-2005 03:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration