LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2013, 11:19 AM   #1
tripialos
Member
 
Registered: Apr 2012
Posts: 162

Rep: Reputation: Disabled
crypttab not working


Greetings, i am trying to autmatically unlock my luks partition but so far my tries have failed.

i have formated my /dev/sda3 partition with cryptsetup using the password mypassword.

i have setup my crypttab as per below but the partition is not unlocked on boot:
Code:
$cat /etc/crypttab
cryptpart        /dev/sda3        mypassword    luks
am i doing something wrong?

thnx
 
Old 08-10-2013, 03:24 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,956

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by tripialos View Post
Greetings, i am trying to autmatically unlock my luks partition but so far my tries have failed. i have formated my /dev/sda3 partition with cryptsetup using the password mypassword.

i have setup my crypttab as per below but the partition is not unlocked on boot:
Code:
$cat /etc/crypttab
cryptpart        /dev/sda3        mypassword    luks
am i doing something wrong?
There are things you have to do in both crypttab and fstab:

http://evilshit.wordpress.com/2012/1...ition-on-boot/
http://www.howtoforge.com/automatica...with-a-keyfile
 
Old 08-11-2013, 04:44 AM   #3
tripialos
Member
 
Registered: Apr 2012
Posts: 162

Original Poster
Rep: Reputation: Disabled
oookeeeeyy

I thought you could just add the password to /etc/crypttab but as far as i understood, the only way implemeted i crypttab is to add the path to where the keyfile is located(which contains the password).

I did it and worked fine.

thanks
 
  


Reply


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
[SOLVED] Edited crypttab and fstab, now system doesn't start. 1937 Linux - Newbie 3 05-04-2012 03:02 PM
crypttab with nfs mounted keyfile guna_pmk Linux - Security 2 04-15-2011 07:14 AM
[SOLVED] Bug in cryptsetup and/or in rc.S in processing /etc/crypttab in slackware-current fdeak Slackware 2 01-23-2011 10:58 AM
media problem with .avi --- audio only in vlc working rest amarock ,etc. not working fedex Linux - Newbie 1 12-22-2007 09:06 AM
SED - minor changes work - Larger doesn't (working and non working code included) Nimoy Programming 17 09-22-2007 05:34 PM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration