LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Closed Thread
 
Search this Thread
Old 02-04-2013, 01:48 PM   #1
tobiaspc
LQ Newbie
 
Registered: Feb 2013
Distribution: Debian 6.06, openSUSE 12.2
Posts: 11

Rep: Reputation: Disabled
Encrypted device cannot be found during boot, mounting fails


Hey there i tryed to mount my dm_crypted device during boot, but it does not work.

This is my /var/log/bot with uncommented "set -x"(debug output) in " /lib/cryptsetup/cryptdisks.functions" and correct /etc/crypttab

This is my crypttab, everything gets unlocked expect from sdb1_crypt:

Code:
#<name>     <device>  <pass>       <options>
sdb1_crypt /dev/sdb1 none         luks,timeout=0
#Swap
sda2_crypt /dev/sda2 /dev/urandom cipher=aes-cbc-essiv:sha256,size=256,swap
#Root
sda3_crypt /dev/sda3 none         luks,timeout=0
This is my fstab, again everything works, expect sdb1(because it does not get unlocked, so "/dev/mapper/sdb1_crypt" cannot be found):

Code:
#System
proc                                                /proc           proc    defaults                          f    0       0
#Root
/dev/mapper/sda3_crypt                              /               ext3    errors=remount-ro 0     1
#Boot
/dev/sda1                                           /boot           ext3    defaults        0       2
#Swap
/dev/mapper/sda2_crypt                              none            swap    sw              0       0
#Data
/dev/mapper/sdb1_crypt                              /data0          ext3    defaults        0       2
The folloing steps happen on boot:
1. grub
2. initram
3. Debian asks for "/"-partition password
4. Debian SHOULD ask for sdb1-partition password
5. swap gets "mounted" with random passphrase
6. booting continues

What i did:

I ran update-"initramfs -u -k all -v"
I fixed my /etc/crypttab, a "#" was missing at the beginning
I can mount the device with cryptsetup / mount after boot.

Im running debian 6.0.6
kernel 2.6.3.2-5-amd64 x86_64
Version of cryptsetup is 2:1.1.3-4squeeze2
 
Old 02-04-2013, 01:57 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Dupe closed as per request.
 
  


Closed Thread


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
benefit of mounting luks encrypted partition at boot Wojk Linux - General 2 11-02-2012 08:57 PM
[SOLVED] Skip mounting encrypted volume at boot Yalla-One Fedora 6 10-11-2011 02:37 AM
Mounting encrypted LVM - Device /dev/.../lv_home is not a valid LUKS device. recarv Linux - Hardware 3 02-15-2011 03:38 PM
[SOLVED] SuSE fails to boot from qLogic Fibre channel card - "No root device found" nonshatter Suse/Novell 4 11-01-2010 08:38 AM
mount encrypted filesystem fails on boot blackcompany Suse/Novell 0 06-12-2006 10:26 AM


All times are GMT -5. The time now is 02:50 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