LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-16-2012, 03:46 PM   #1
gorillus
Member
 
Registered: Jun 2011
Location: /home
Distribution: Slackware
Posts: 31

Rep: Reputation: 16
can't unlock luks home when booting


I set up a encrypted /home partition with:
Code:
cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda1
My /etc/crypttab:
Code:
chome     /dev/sda1     none     luks,timeout=30
I also tried it with ASK instead of none (red this in an Arch-Forum)

My /etc/fstab:
Code:
/dev/sdb1     /    ext4    defaults,discard    1  1
/dev/mapper/chome   /home    ext4    defaults     1    2
[...]

The issue:

When I try to boot now it asks for the password, shows a message:

"Command failed: No key available with this passphrase"

and continues with booting (including mounting). I don't have even a second of time to enter the password. What is my mistake?


PS: Im using Slackware 13.37 on an GPT-Partition-table, cryptsetup 1.2.0. Unlocking manually works perfectly

Last edited by gorillus; 01-16-2012 at 05:20 PM.
 
Old 01-16-2012, 05:13 PM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,380

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Looks like a bug in rc.S to me. Unless I am misreading it cryptsetup never gets called when the third field is 'none' (except when the fourth also contains 'swap')

Change your crypttab to simply
Code:
chome /dev/sda1
and you should get 3 attempts at entering the passphrase.

I also noticed the luksFormat command you've shown and the crypttab lists a different device - I'll assume one or other was a typo)
 
1 members found this post helpful.
Old 01-16-2012, 05:20 PM   #3
gorillus
Member
 
Registered: Jun 2011
Location: /home
Distribution: Slackware
Posts: 31

Original Poster
Rep: Reputation: 16
Thanks a lot! That works! It doesn't look that beauty, but it works...

Do you think I should write a bug report?

PS: Yes the first sda2 was a typo - Fixed

Last edited by gorillus; 01-16-2012 at 05:34 PM.
 
Old 01-16-2012, 05:37 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,234

Rep: Reputation: Disabled
Slackware's crypttab file does not follow the syntax of other distros. It has limited capabilities and is not documented other than by reading /etc/rc.d/rc.S or README_CRYPT.TXT.

Drom rc.S: "# A password field of 'none' indicates a line for swap"

Eric
 
1 members found this post helpful.
Old 01-16-2012, 05:39 PM   #5
gorillus
Member
 
Registered: Jun 2011
Location: /home
Distribution: Slackware
Posts: 31

Original Poster
Rep: Reputation: 16
Thanks Eric! Didn't know that...
 
  


Reply

Tags
boot, cryptsetup, luks, password


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
Trouble booting new Slack 13. LVM on Luks BashTin Slackware 8 10-22-2011 07:56 PM
[SOLVED] How to unlock (Luks) encrypted root, during boot, when key-file is on USB?? pizzar0 Slackware 2 10-22-2011 07:14 AM
[SOLVED] How does one change login passphrase (to unlock encrypted home directory) tonyfreeman Linux - Security 4 11-22-2010 08:12 PM
LXer: Automatically Unlock LUKS Encrypted Drives With A Keyfile LXer Syndicated Linux News 0 07-09-2008 03:40 PM
Xauth will not unlock a file at /home/username javpra Linux - Newbie 3 09-08-2004 07:36 PM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
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