LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-03-2007, 01:25 AM   #1
yukon65
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, 05:31 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,257

Rep: Reputation: Disabled
Hi

I added your recommendations to http://alien.slackbook.org/dokuwiki/...lackware:setup

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, 01:47 PM   #3
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
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, 08:51 AM   #4
-kc-
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:
Code:
# 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 12:04 PM.
 
  


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


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