You are not logged in.

#1 2009-11-09 20:10:03

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

[SOLVED] Issue booting Encrypted Home.

Weird issue!

I rebuilt a number of my servers from scratch and everything worked perfect (LVM, Encryption, etc..)..   On a particular server, I didn't want to build from scratch (as I have about a TB of data in home that I didn't want to re-copy).  All of my partition resizing and the install went fine; I can still boot it into Windows, can still boot into the Ubuntu partition, but I'm having a problem with the ArchLinux boot.  My home partition is encrypted.  It mounts fine in Ubuntu, and it mounted fine during the arch install (when I mounted it manually).  But, it doesn't mount during the ArchLinux boot and I think I must be missing something!

Here's my current setup:
fdisk:

   Device Boot       Id  System
/dev/sda1 * 7    HPFS/NTFS                  Windows
/dev/sda2    83  Linux                           Ubuntu /
/dev/sda3    5    Extended
/dev/sda4    83  Linux                            ArchLinux /
/dev/sda5    82  Linux swap / Solaris      Swap for both Ubuntu and Arch
/dev/sda6    83  Linux                           Encrypted Home for both Ubuntu and Arch

-----
ubuntu fstab:

/dev/sda2     /      ext4    relatime,errors=remount-ro     0       1
/dev/mapper/HOME     /home     ext3    defaults     0       2
/dev/sda5     none     swap     swap     0       0

-----
ubuntu crypttab:

HOME    /dev/sda6      mykefile      luks

--------------------------------------------------

arch fstab:

/dev/sda4                 /         ext3  defaults 0 1
/dev/sda5                 swap   swap defaults 0 0
/dev/mapper/HOME  /home   ext3 defaults 0 2

-----
arch crypttab:

HOME    /dev/sda6      ntkeyfile      luks

-----
arch grub menu.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,3)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/b6466839-9dec-4c17-93b5-258e6afc7c6a ro
initrd /boot/kernel26.img

--------------------------------------------------

Any idea why the encrypted home partition doesn't mount automatically during the arch linux install?  When the arch boot drops me to the "Enter root password for maint., or <ctrl-D> to continue" prompt, I can manually mount the home partition fine.  I know I've probably missed something somewhere, but I'm just not seeing where my issue is at the moment.

Thanks a lot for the help!!
JM

Last edited by jackmetal (2009-12-15 03:49:20)


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#2 2009-12-14 23:29:55

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: [SOLVED] Issue booting Encrypted Home.

- Where are those keyfiles located? I think 'ntkeyfile' should be a complete path. If that path is on the unencrypted / then it is not very secure b.t.w.

- Also my crypttab does not have the 'luks' options appended to every line. If I add it mounting fails in my case, even though I have luks encrypted partitions, so I left it out.

The wiki may be of help:
http://wiki.archlinux.org/index.php/Sys … r_dm-crypt

Last edited by rwd (2009-12-15 00:09:47)

Offline

#3 2009-12-15 03:53:25

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

Re: [SOLVED] Issue booting Encrypted Home.

Dang.... Fixed this a few weeks ago and Just realized that I hadn't set this to solved.  Thanks very much though, the issue 'was' having the luks option in crypttab.  Ubuntu took the luks option but Arch doesn't.

Now, If I can wrap up my surround sound issue of sound only coming out of the front speakers in a 7.1 config, I'll have my perfect media center back (since moving it from Ubuntu).  :-)

Last edited by jackmetal (2009-12-15 03:54:15)


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

Board footer

Powered by FluxBB