Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 11-03-2007, 08:59 PM   #1
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Rep: Reputation: 30
Loading encrypted partitions at boot

So I have 5 partitions. /boot, /, /usr, /swap, and /home. I've encrypted the latter 4 with luks encryption using cryptsetup. I've changed the fstabs to use the device /dev/mapper/device and then setup my /etc/cryptttab to load them. However at boot it immediately asks the password for root. I put it in and then it continues to load up and then it fails when trying to mount /usr and /home complaining that the device /dev/mapper/device isn't found. I then try to open the partition with the command
cryptsetup /dev/sda6 usr
and it complains about the shared cryptsetup library not being found. This makes sense because it's under /usr/lib, which apparently hasn't been mounted. However, why is the root partition opening up but not the rest? How is it working if the library isn't mounted? I did add dm-crypt to my list in /etc/modules so that is loaded. I confirmed this with lsmod. Anyone know why /dev/mapper/root is opening but not the rest?


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
Installing to encrypted partitions? compu73rg33k Ubuntu 2 11-03-2007 08:54 PM
LXer: Tutorial: Protecting Data with Encrypted Linux Partitions LXer Syndicated Linux News 0 06-14-2007 08:17 PM
Accessing encrypted partitions from OpenBSD avallach *BSD 2 06-12-2007 06:04 AM
Creating and using encrypted partitions as non-root v00d00101 Linux - Security 3 06-25-2006 06:31 PM
Hacking the initrd for encrypted partitions sonicbuddha Linux - Security 2 12-20-2005 09:23 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration