LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-21-2006, 03:02 AM   #1
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Encrypting hard drives?


I'm waiting to 11.0 arrive but I'm planning on installing that on my laptop. I want to try encrypt my hard drives to make it more secure and to learn how that kind of process is done. Is there any good tutorials available for slackware and what would be the recommended partitioning scheme for this kind of thing?

I have 100Gb HD and I was planning on following using lvm:
/swap 512mb
/ 1Gb
#logical
/usr 15Gb
/home 60Gb
/var 10Gb
/tmp 5Gb
/opt 10Gb


Someone said once that using lvm makes it easier to encrypt partition. How come? Does encryption slow disk performance and what would be a good way to encrypt? All partitions and then home separetely or what?
 
Old 07-21-2006, 04:11 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Not intended as a RTM-style reply, but doing a LQ search for "disk encryption" should turn up a wealth of info IMHO.
 
Old 07-21-2006, 07:43 AM   #3
Slick666
Member
 
Registered: Feb 2006
Distribution: Ubuntu 8.04; Debian Etch
Posts: 167

Rep: Reputation: 33
Has anyone tried True Crypt? www.truecrypt.org

It sounds like to kind of app that you would want for this type of application. I haven't been able to try it yet because the linux version need a 2.6 kernel.

Just a thought
 
Old 07-21-2006, 12:04 PM   #4
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
I used this guide to encrypt my home partition.

http://encryptionhowto.sourceforge.n...ion-HOWTO.html I basically have a dummy home directory with nothing in it on the root partition, and when I want to access my files, I mount the encrypted drive over it.

regards,
...drkstr
 
Old 07-21-2006, 01:59 PM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Hey, thank you for your help. I look into those when I have more time in my hands. Especialy the truecrypt seems quite interresting choice.
Currently trying to figure out how to be bestman for buddy's wedding, try to congratulate my dad on his 50th birthday and be sober enough day after wedding for my grandfathers 80th birthday... I had to fly back to Finland for this and I have only 3 full days to use in all of this.


Perhaps back in Ireland I will delve more deeply into this case. I'll probably use Knoppix until the new slack arrives as I don't get power on my USB-HD as it uses different socket than what is available.
 
Old 07-21-2006, 02:32 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I use truecrypt, not to encrypt complete partitions but to have an encrypted file containing a filesystem where I keep my sensitive data. Encrypting your whole partition is possible if you want.
Indeed it requires a 2.6 kernel, and also the device-mapper package you'll find in Slackware's "/testing/packages/lvm2/" directory.

My package for truecrypt can be found here: http://www.slackware.com/~alien/slackbuilds/truecrypt/ and I wrote a Wiki page on using it, some time ago: http://www.slackware.com/~alien/doku...inux:truecrypt

The cool aspect of truecrypt is that there is also a version of the software for MS Windows, and their encryption file format is identical - so you can for instance create your encrypted containerfile on a USB stick, carry it around with you and use it on both Windows and Linux computers.

Eric
 
Old 07-21-2006, 03:03 PM   #7
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
I think I try the truecrypt once I have enough time to truly delve into it. Thanks for the wiki entry, seems quite usefull after quick glance.
 
Old 02-03-2007, 06:02 PM   #8
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Thanks for the slackbuild and wiki info, Eric. I'm now using truecrypt for disk encryption.

I ran into a little trouble when trying to create a container file with a different format than FAT. Some files like database files require certain ownership/permission settings which don't work with FAT, so I needed a linux FS.

The obvious "truecrypt --filesystem ext3 -c volume.tc" seemed to work just fine, but after creation I could not mount the volume with "... --filesystem ext3 ...". It would complain that it could not find an ext3 file system.

To get it to work, I created a volume without a filesystem. Then map the volume with "truecrypt volume.tc". Look in /dev/mapper to see where the volume was mapped (probably /dev/mapper/truecrypt0). Then you can use mkfs.whatever to create the filesystem you want. Since it's already mapped, you then mount it with the standard "mount /dev/mapper/truecrypt0 /mnt/point".

I hope this saves someone some head-scratching. Now a question: Does journaling work with truecrypt?

Brian
 
Old 02-03-2007, 07:54 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I once encrypted my whole HDD ... wasn't the best idea tho ... it does waste a good amount of system resources. I mean, it's gotta encrypt and decrypt everything on the fly. I found it much more prudent to make a separate encrypted partition for sensitive data (like Alien Bob does).

As for journaling, well I'd imagine if the encrypted drive is not mounted, journaling cannot occur ... as for when it is mounted ... dunno, maybe. (maybe not)
 
  


Reply



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
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
encrypting the hard drive ? memo007 Linux - Security 4 06-06-2005 05:11 PM
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 06:12 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM
2 Hard Drives Randy-RH7 Linux - Newbie 2 10-05-2001 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration