You are not logged in.

#1 2009-09-18 18:30:47

DavidR
Member
Registered: 2009-09-17
Posts: 34

[solved] Unlocking luks partitions fails at boot, no prompt.

Hello,

I have just installed Arch and I really like it so far - I'm a convert from Ubuntu. I did face a couple of problems that I have not been able to solve and have not been able to find any solutions for anywhere. The most important one at the moment is that with my two encrypted partitions.

Here's my fstab:
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/scd0 /media/dvd   udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda3 / ext3 defaults 0 1
/dev/sdb1 swap swap defaults 0 0
/dev/sdb2 /home reiserfs user,owner,auto 0 0
/dev/sda6 /home/nerd/E   reiserfs defaults 0 0
/dev/mapper/croot /home/nerd/F ext3 defaults 0 0
/dev/mapper/crypt /home/nerd/D ext3 defaults 0 0

and here's my crypttab:
crypt /dev/sda5 none
croot /dev/sda7 none

I have cryptsetup installed, enabled the dm-crypt and aes-i586 kernel modules, and even edited mkinitcpio and added the encrypt hook. At boot, my computer does see both of the drives, but it just doesn't prompt for passwords, what it prints out is:

Password:!unlocking encrypted volume crypt
command failed: No key available with this passphrase.

I am able to mount the drives manually using cryptsetup, and the data is there. Is there any way for me to fix that? Thanks!

Last edited by DavidR (2009-09-19 10:32:57)

Offline

#2 2009-09-18 19:34:52

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: [solved] Unlocking luks partitions fails at boot, no prompt.

I actually just don't much abt it but according to the crypttab documentation the 3rd field should be a password or a keyfile or keyword ASK if you want to provide passphrase on boot.
might that help


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

#3 2009-09-18 19:35:07

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

Re: [solved] Unlocking luks partitions fails at boot, no prompt.

afaik, you should have 'ASK' instead of 'none' in crypttab

edit: argh. too late again smile

Last edited by bender02 (2009-09-18 19:35:37)

Offline

#4 2009-09-18 20:17:59

DavidR
Member
Registered: 2009-09-17
Posts: 34

Re: [solved] Unlocking luks partitions fails at boot, no prompt.

That did work. Thanks guys!

It's funny, but this is the exact crypttab that I had under Ubuntu, and it was working there. Seems that I have been lazy for quite a while.

Offline

Board footer

Powered by FluxBB