LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   I need help with upgrading Encrypted Hard Drive (https://www.linuxquestions.org/questions/linux-hardware-18/i-need-help-with-upgrading-encrypted-hard-drive-4175482260/)

zaoka 10-26-2013 09:10 AM

I need help with upgrading Encrypted Hard Drive
 
My original drive is 160gb, running Ubuntu 12.04 server. It is Encrypted.

I have a new 1GB drive.

How do I clone my existing encrypted drive?

Thanks

jefro 10-26-2013 02:56 PM

Never a one answer question on clones.

In your case even being able to mount the partition with password may or may not help in the copy process.

It may be possible to use a tool like clonezilla/redobackup to copy it if it can open the file. Otherwise it would do a bit by bit. That alone may need to have some edits later. In fact any distro may need edits before or after clone when using any tool.
It may be that you can use partimage or gparted to copy the partition and then fix boot issues. Many distro's use grub and other entries to name stuff by ID or name instead of simple /dev/sda1.

You may be able to tar, cpio or such most of it over or maybe rsync even.

There are some live state apps but they are for pay.

Maybe Acronis can do it.

zaoka 10-27-2013 12:24 PM

hi
 
Is it possible to decrypt hard drive and than clone it, extend partition and encrypt again..??

I have Acronis TI 2011, will ask them is it possible or not..

dt64 10-27-2013 03:22 PM

Quote:

Originally Posted by zaoka (Post 5053201)
Is it possible to decrypt hard drive and than clone it, extend partition and encrypt again..??

That's most likely to be the best option.

For the actual copy process after the de-crypt you could go with dd and enlarge the partitions to your needs (fdisk, resize2fs etc.) after the copy and before you re-encrypt.

Since the sizes of your drives are quite different you want to have an extra eye on block sizes etc

zaoka 10-29-2013 02:47 PM

hi
 
So what would be the best way to decrypt drive?

I never did this before and do not want to screw data up :)

dt64 10-29-2013 04:30 PM

Your HDD encryption software should be able to do it. What do you use?

zaoka 10-30-2013 08:31 AM

hi
 
I encrypted with Ubuntu during installation.

I did not use hard drive encryption software.

Ranko Kohime 11-01-2013 02:57 PM

If I'm understanding correctly, you installed Ubuntu, and checked the box to encrypt your home folder?

And both the / and /home folders are both on the same partition, on the 160GB drive?

If this is the case, then you needn't take any more precautions than for an unencrypted drive upgrade. Make sure you back up your documents first, (you should ALWAYS do this frequently, and especially right before any operation with the hard drive), and then do the clone. Clonezilla is a decent choice.

zaoka 11-02-2013 10:58 AM

So once I clone it how do I increase my partition so that I can use all available space of the new 1TB drive?

Ranko Kohime 11-03-2013 01:44 AM

Quote:

Originally Posted by zaoka (Post 5057150)
So once I clone it how do I increase my partition so that I can use all available space of the new 1TB drive?

If you use Clonezilla, I'm pretty sure it has the option to expand a partition as well.


All times are GMT -5. The time now is 03:04 PM.