LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 10-26-2013, 10:10 AM   #1
zaoka
Member
 
Registered: Jan 2005
Distribution: I learn Ubuntu :)
Posts: 61

Rep: Reputation: 15
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
 
Old 10-26-2013, 03:56 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 12,093

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
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.
 
Old 10-27-2013, 01:24 PM   #3
zaoka
Member
 
Registered: Jan 2005
Distribution: I learn Ubuntu :)
Posts: 61

Original Poster
Rep: Reputation: 15
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..
 
Old 10-27-2013, 04:22 PM   #4
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
Quote:
Originally Posted by zaoka View Post
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
 
Old 10-29-2013, 03:47 PM   #5
zaoka
Member
 
Registered: Jan 2005
Distribution: I learn Ubuntu :)
Posts: 61

Original Poster
Rep: Reputation: 15
hi

So what would be the best way to decrypt drive?

I never did this before and do not want to screw data up
 
Old 10-29-2013, 05:30 PM   #6
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
Your HDD encryption software should be able to do it. What do you use?
 
Old 10-30-2013, 09:31 AM   #7
zaoka
Member
 
Registered: Jan 2005
Distribution: I learn Ubuntu :)
Posts: 61

Original Poster
Rep: Reputation: 15
hi

I encrypted with Ubuntu during installation.

I did not use hard drive encryption software.
 
Old 11-01-2013, 03:57 PM   #8
Ranko Kohime
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Rep: Reputation: 0
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.
 
Old 11-02-2013, 11:58 AM   #9
zaoka
Member
 
Registered: Jan 2005
Distribution: I learn Ubuntu :)
Posts: 61

Original Poster
Rep: Reputation: 15
So once I clone it how do I increase my partition so that I can use all available space of the new 1TB drive?
 
Old 11-03-2013, 01:44 AM   #10
Ranko Kohime
LQ Newbie
 
Registered: Nov 2013
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by zaoka View Post
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.
 
  


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
resetting root password of encrypted hard drive drink76cup Slackware 10 05-21-2013 08:32 PM
Cannot write to LUKS encrypted hard drive Nemesissparadise Linux - Software 3 04-04-2011 05:02 PM
How do I clone my hard drive when file-system is encrypted? gopips39 Linux - Security 2 08-17-2007 06:23 AM
Accessing encrypted windows hard drive with live CD furry3331 Linux - General 2 06-29-2007 12:47 PM
Howto Crack encryption on encrypted hard drive hamish Linux - Software 14 07-26-2006 03:25 AM


All times are GMT -5. The time now is 10:11 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration