restoring to Linux encrypted drive

User discussion and information resource forum for Image products.
Post Reply
userX
Posts: 119
Joined: Thu Sep 15, 2011 11:51 am

restoring to Linux encrypted drive

Post by userX »

I did a complete (bit for bit) backup of a 40 GB disk, on which I have installed Linux Lubuntu with whole disk encryption. The file system on this disk is encrypted with LUKS and it uses a LVM. It was described like this: "The method shown here creates a LUKS-encrypted hard disk partition and uses LVM to create logical partitions within the encrypted physical partition for swap, root, and /home. The encrypted partition is unlocked at boot time by GRUB running from a separate, unencrypted /boot partition."

Now I want to test the restoration procedure using IFL by booting into the IFL CD environment. During the procedure for restoring the data, when I get to the point of "Select Restore Location on HD1...", I am presented with three options, which look like these:

MBR 0 Partition(01) 214 MiB Linux Native
MBR 1 Partition(02) 37950 MiB Extended
m &q `: $Y]/Voq9 : Volume (0207) 37950 MiB Linux Native

When I look at these it is not perfectly clear which "location" to select for restoring to. I am inclined to assume that the first one is the unencrypted boot partition for this file system, that is the one that Grub chains to. I am inclined to assume, again without 100% certainty, that the second one is the physically encrypted disk data; and that the third one is, well, the logically abstracted recognized file system, although frankly I am not much sure of what that third one is, to be honest. In any case, I am now presented with this scenario, and I am wondering which of these I should select as the restoration location. Do you have any suggestions? Thanks.
TeraByte Support
Posts: 3622
Joined: Thu May 05, 2011 10:37 pm

Re: restoring to Linux encrypted drive

Post by TeraByte Support »

if you did an entire drive raw backup (backup unused sectors and entire
drive selected) then that is a special sector-by-sector backup of the entire
drive, when you go to restore, you'll have to restore the entire drive and
will simply write out sector by sector all the data within the backup. Any
time you backup / restore entire drive, you select the entire drive for
restore and it tells you which partitions will be removed/deleted. If its
showing existing partition to select restore location, sounds like it was
only a single partition type restore.

IF you only choose a single partition, then you restore that single
partition. you'd restore it back to where it came from, if you're putting
on a different machine/drive, choose where you want to put it/or what to
overwrite. You can use the delete key to remove any partitions you don't
need.

"userX" wrote in message news:3842@public.image...

I did a complete (bit for bit) backup of a 40 GB disk, on which I have
installed Linux Lubuntu with whole disk encryption. The file system on this
disk is encrypted with LUKS and it uses a LVM. It was described like this:
"The method shown here creates a LUKS-encrypted hard disk partition and uses
LVM to create logical partitions within the encrypted physical partition for
swap, root, and /home. The encrypted partition is unlocked at boot time by
GRUB running from a separate, unencrypted /boot partition."

Now I want to test the restoration procedure using IFL by booting into the
IFL CD environment. During the procedure for restoring the data, when I get
to the point of "Select Restore Location on HD1...", I am presented with
three options, which look like these:

MBR 0 Partition(01) 214 MiB Linux
Native
MBR 1 Partition(02) 37950 MiB Extended
m &q `: $Y]/Voq9 : Volume (0207) 37950 MiB Linux Native

When I look at these it is not perfectly clear which "location" to select
for restoring to. I am inclined to assume that the first one is the
unencrypted boot partition for this file system, that is the one that Grub
chains to. I am inclined to assume, again without 100% certainty, that the
second one is the physically encrypted disk data; and that the third one is,
well, the logically abstracted recognized file system, although frankly I am
not much sure of what that third one is, to be honest. In any case, I am now
presented with this scenario, and I am wondering which of these I should
select as the restoration location. Do you have any suggestions? Thanks.

userX
Posts: 119
Joined: Thu Sep 15, 2011 11:51 am

Re: restoring to Linux encrypted drive

Post by userX »

When I get the the IFL screen "Select the backup file to restore", I see only one file to select, "Backup-...file.tbi", and I select it and click Next. At the next screen "Select Item to Process", I see two options to Restore From:

<checkbox> Drive 38167 MiB - Partial
<checkbox> Partition (00) 38167 MiB Free Space

At this point I select the top option and click Next. The next screen is "Select Driver Interface", and I choose Linux and click Next. The next screen says "Select Target Drive" and it has multiple options. I select this one: ATA WDC WD400JB-00EN (sdb), and then I click next. The following screen is the one I mentioned already in my previous post. So, again, it is not yet clear why I am getting choices as to where I should restore it, as all of the choices appear to be on the same disk from which I made the original backup. Why am I given options for where to restore the data when I have already indicated that I want to restore the entire disk. If this does not seem clear, please specify which part you need clarification of. Thanks.
TeraByte Support
Posts: 3622
Joined: Thu May 05, 2011 10:37 pm

Re: restoring to Linux encrypted drive

Post by TeraByte Support »

how did you create the backup? What is the output
of -L --ALL --F:\filename.tbi ?

"userX" wrote in message news:3849@public.image...

When I get the the IFL screen "Select the backup file to restore", I see
only one file to select, "Backup-...file.tbi", and I select it and click
Next. At the next screen "Select Item to Process", I see two options to
Restore From:

Drive 38167 MiB - Partial
Partition (00) 38167 MiB Free Space

At this point I select the top option and click Next. The next screen is
"Select Driver Interface", and I choose Linux and click Next. The next
screen says "Select Target Drive" and it has multiple options. I select this
one: ATA WDC WD400JB-00EN (sdb), and then I click next. The following
screen is the one I mentioned already in my previous post. So, again, it is
not yet clear why I am getting choices as to where I should restore it, as
all of the choices appear to be on the same disk from which I made the
original backup. Why am I given options for where to restore the data when
I have already indicated that I want to restore the entire disk. If this
does not seem clear, please specify which part you need clarification of.
Thanks.

userX
Posts: 119
Joined: Thu Sep 15, 2011 11:51 am

Re: restoring to Linux encrypted drive

Post by userX »

this is a copy of the command options, which i saved while making the backup:

#! /bin/sh
/tbu/imagel --b --d:l1 --f:"/tbu/net1/Backups/Dell/Backup-l1-$~YYYY$-$~MM$-$~DD$-$~HHMM$" --max:2GiB --raw --vb --comp:0 --mf --desc:"backup of 2nd disk right after a clean installation and update of the OS." --rb:8


I don't understand what you mean by "What is the output of -L --ALL --F:\filename.tbi ?"
Post Reply