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


  Search this Thread
Old 07-03-2007, 02:25 AM   #1
LQ Newbie
Registered: Jul 2007
Location: Toronto, Canada
Distribution: Slackware 12.0, Ubuntu 7.04
Posts: 1

Rep: Reputation: 0
Setting up encrypted root partition

Just thinking yesterday, "I would like to give Slackware a try" and here is Slackware 12.0 all shiny and new... Happy day! :-)

Just wanted to flag a problem I experienced setting up a encrypted root partition (hda5 on my laptop) and a workaround to save others some grief. I used the README_CRYPT.TXT on the first install CD as a reference... everything worked fine up till the point I exited setup and chroot'ed into my new Slackware under /mnt to edit my lilo.conf... when I ran 'lilo' I got a fatal error about the missing /dev/mapper/cryptroot...

Turns out /dev/mapper/cryptroot was created earlier, but its missing from /mnt/dev/mapper... The solution was to switch to another terminal and 'cp -a /dev/mapper/cryptroot /mnt/dev/wrapper'... Plus, if you want lilo installed in the MBR you should *not* alter the 'boot =' option as the README_* recommends... It was already correctly configured as 'boot = /dev/hda'

Otherwise, the README_CRYPT.TXT was a very helpful HOWTO in setting up encrypted partitions on a fresh install.
Old 07-03-2007, 06:31 AM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,725

Rep: Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093Reputation: 4093

I added your recommendations to

This URL is referenced at the end of the README_CRYPT.TXT and hopefully people will check it for updates when they to create an encrypted partition.

Thanks for the feeedback, Eric
Old 07-03-2007, 02:47 PM   #3
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
It's pretty sweet that slackware finally supports encrypted partitions straight from the CD's.

Gotta make reinstall as soon as I get a working 12.0 DVD ready.
Old 07-18-2007, 09:51 AM   #4
LQ Newbie
Registered: Jun 2007
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
yukon65, I was about to point out the same thing, but I see I'm not the first one to experience this

Alien Bob, for some reason your fix doesn't work for me:
# mount -o bind /proc /mnt/proc  #OK
# mount -o bind /sys /mnt/sys  #OK
# mount -o bind /dev /mnt/dev
mount: wrong fs type, bad option, bad superblock on /dev
missing codepage or other error
Instead of running just lilo I exited from chroot /mnt and ran lilo -C /mnt/etc/lilo.conf and it worked. No problem with /boot since it's a symlink to /mnt/boot.

Last edited by -kc-; 07-18-2007 at 01:04 PM.


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
encrypted root fs ankscorek Linux - Security 4 02-03-2006 11:50 PM
root password not encrypted meskensj Linux - Newbie 3 10-19-2005 05:56 AM
Setting up encrypted filesystem zahoo Linux - Software 2 06-27-2005 02:17 PM
Encrypted FS Partition Scheme? DJ Cacophony Linux - Newbie 1 10-01-2004 05:52 PM
Encrypted partition? hjles Slackware 1 01-25-2003 04:49 PM > Forums > Linux Forums > Linux - Distributions > Slackware

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