You are not logged in.

#1 2009-09-19 20:31:11

steve-e
Member
Registered: 2007-10-03
Posts: 37

Wrong partition de-crypted at boot time

Hello everybody,

I have an encrypted home and encrypted SWAP partition. All other partitions are not encrypted. However, when booting something tries to decrypt
my root partition and obviously fails. The rest of the boot goes fine.

The message is:

Failed to open encryption mapping. Crypt= parameter was not specified. /dev/sda5 is not a LUKS volumn.

Does anyone have an idea what might be wrong in my setup or with my system?

swap            /dev/sda7               SWAP                    -c aes-cbc-essiv:sha256 -s 256
home            /dev/sda6               ASK
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

none                   /tmp          tmpfs     mode=1777,size=1G,nosuid,nodev,noexec 0 0
none                   /var/tmp      tmpfs     mode=1777,size=1G,nosuid,nodev 0 0

/dev/sda3              /boot         ext2      defaults,noatime   0      1
/dev/sda5              /             ext3      defaults,noatime   0      1

/dev/mapper/home       /home         ext3      defaults,noatime,data=ordered   0      1
/dev/mapper/swap       swap          swap      sw                  0      0

Thanks and Best Regards,
steve

Offline

#2 2009-09-19 20:57:14

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: Wrong partition de-crypted at boot time

YOu have encrypt in your hooks?

Offline

#3 2009-09-19 22:25:42

steve-e
Member
Registered: 2007-10-03
Posts: 37

Re: Wrong partition de-crypted at boot time

Hi,

boot works normally, beside this strange message. If encrypt would be missing I assume my system would not boot at all.

My hooks:

HOOKS="base udev autodetect sata keymap encrypt filesystems"

Best Regards,
steve

Offline

#4 2009-09-19 22:41:59

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: Wrong partition de-crypted at boot time

I take it the second listing is your /etc/fstab.  Is the first one /etc/crypttab?

Offline

#5 2009-09-19 23:03:16

cwjiof
Member
From: Taichung, TW
Registered: 2008-01-27
Posts: 131

Re: Wrong partition de-crypted at boot time

In the /etc/crypttab, you may see:

# There are two special keywords that cannot be used as passphrases:
#   - ASK  ask for a passphrase on boot

So, you may not use the ASK option for /home partition (and only / the root partition can use it).

Just try with a passphrase or a keyfile, for the encrypted /home partition.

Last edited by cwjiof (2009-09-19 23:04:54)

Offline

#6 2009-09-20 07:14:29

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Wrong partition de-crypted at boot time

The encrypt hook in mkinicpio.conf is *only* if you have encrypted root partition (which you don't) [EDIT: and it's exactly this which tries to decrypt your root partition]. For decrypting other partitions, use /etc/crypttab, as noted above.

Last edited by bender02 (2009-09-20 07:14:54)

Offline

#7 2009-09-20 15:54:47

steve-e
Member
Registered: 2007-10-03
Posts: 37

Re: Wrong partition de-crypted at boot time

bender02 wrote:

The encrypt hook in mkinicpio.conf is *only* if you have encrypted root partition (which you don't) [EDIT: and it's exactly this which tries to decrypt your root partition]. For decrypting other partitions, use /etc/crypttab, as noted above.

Makes sense. Thanks a lot!

Offline

Board footer

Powered by FluxBB