Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-31-2010, 06:35 AM   #1
Registered: Feb 2010
Posts: 39

Rep: Reputation: 0
"mkinitrd -C" Option works only with luksFormat'ed, not with cryptsetup'ed devices


I was looking for a way to encrypt a partition and to mount it at boot time.

What I tried first was something like:

cryptsetup crypted_home /dev/sda3
mkfs.ext4 /dev/mapper/crypted_home

/dev/sda3 /home 

mkinitrd -c -k -m ext4 -f ext4 -C /dev/sda3
... but it didnt work. :/ I remembered that the mkinitrd manual mentioned luks devices, so I did exactly the same, but for the first line:

cryptsetup luksFormat /dev/sda3
cryptsetup luksOpen /dev/sda3 crypted_home
.. now it works fine, BUT I would like it to work with plain dm-crypt, without luks. Is there a way to accomplish that?

Im using Slackware 12.2(1?).

Thanks in advance for any help.



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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
evdev/xorg help? USB mouse/kbd: 2.6.24="just works">2.6.25="unplug/replug to work". GrapefruiTgirl Linux - Hardware 4 12-13-2012 02:23 PM
"Shutdown" and "Restart" option missing after upgrade hansalfredche Mandriva 8 11-02-2006 07:23 AM
XF86Config : Option "Resolution" "800" carboncopy Slackware 2 12-16-2003 10:13 PM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM

All times are GMT -5. The time now is 12:59 PM.

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