LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-16-2010, 04:13 PM   #1
martvefun
Member
 
Registered: Apr 2010
Location: Belgium
Distribution: Archlinux
Posts: 53

Rep: Reputation: 1
encrypt my system


Hi!

As I'm considering more and more reinstalling completely my system my whole computer, I was thinking about securing it by the way.

It's not really that I've something to hide but my private data are... private

So I don't really know the different solution but I've heard of some.
I think gpg is only for individual files and not a whole partition.
TrueCrypt allow to encrypt a partition but I don't think it's possible to use it at start-up.
I read that LVM do also encryption, is that right ?
I saw an article about encrypting the home directory with eCrypt
There is also LUKS but know nothing about it.

Do you know others ?
What's the difference between them ?

One thing important with the encryption is that I want to be able to access easily without too much difficulties my data in case my computer crash or something like that. I don't want to lose access to my data if something bad happens.

I don't mind using the command line while it's not annoying in the every day life (I maybe don't want to do 5 commands each time I start my computer or mount an usb key)

Thank you
 
Old 05-16-2010, 05:16 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
I read that LVM do also encryption, is that right ?
Hi,

LVM does not do encryption. However, it is used when you want to encrypt your system. Not sure why exactly it is preferred to normal partitioning, but it has something to do with certain functionality (like hibernate) that would otherwise not be available. At least this is for Ubuntu the case. Now how you would want to setup your system depends on your harddisk layout. One easy way is to create one small boot partition (appr. 500MB will suffice) and one big root partition. Then you encrypt the root partition, and create at least two logical volumes in the encrypted partition. One for root and one for swap. It is important to use encrypted swap, otherwise files that get swapped would remain unencrypted after system shutdown.
The boot partition has to remain unencrypted.

Here is a good tutorial on how to install Ubuntu in an encrypted partition.
http://eubolist.wordpress.com/2010/0...using-live-cd/

I see in your profile that you use archlinux. I am not familiar with that, but if it has an option to install via liveCD then the procedure should be adaptable with a few minor changes.

Hope this helps.
 
Old 05-17-2010, 06:40 AM   #3
martvefun
Member
 
Registered: Apr 2010
Location: Belgium
Distribution: Archlinux
Posts: 53

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by crts View Post
LVM does not do encryption. However, it is used when you want to encrypt your system.
Hum I'm not sure I understood that

Quote:
Originally Posted by crts View Post
Not sure why exactly it is preferred to normal partitioning, but it has something to do with certain functionality (like hibernate) that would otherwise not be available.
I haven't tested it (yet) but I think LVM is great because you can resize your disk easily without having to move a partition, do a full backup of your whole computer every time you do something,...
Quote:
Originally Posted by wikipedia
* Managing large hard disk farms by letting you add disks, replace disks, copy and share contents from one disk to another without disrupting service.
* On small systems (like a desktop at home), instead of having to guess how big a partition needs to be, LVM allows you to resize your disk partitions easily as needed.
* Making backups by taking "snapshots."
* Creating single logical volumes of multiple physical volumes or entire hard disks (somewhat similar to RAID 0, but more similar to JBOD), allowing for dynamic volume resizing.

Thank you for your link, I'll have a look

Quote:
Originally Posted by crts View Post
I see in your profile that you use archlinux. I am not familiar with that, but if it has an option to install via liveCD then the procedure should be adaptable with a few minor changes.
I think ubuntu is the only distribution allowing to do that during the installation (I mean so easily)
I suppose you can encrypt every system with every software

Last edited by martvefun; 05-17-2010 at 06:54 AM.
 
Old 05-17-2010, 08:35 AM   #4
Joe of Loath
Member
 
Registered: Dec 2009
Location: Bristol, UK
Distribution: Ubuntu, Debian, Arch.
Posts: 152

Rep: Reputation: 28
I know you can encrypt the whole disk with fedora 12 and debian lenny too. It's a little annoying though, you need a password to boot. My laptop just has an encrypted home folder though, which uses my login password when I log in. Not as secure, but enough to stop a thief looking for credit card numbers.
 
Old 05-18-2010, 01:07 AM   #5
martvefun
Member
 
Registered: Apr 2010
Location: Belgium
Distribution: Archlinux
Posts: 53

Original Poster
Rep: Reputation: 1
Yes I don't think it's really usefull to encrypt the whole system, the most important informations are on the root partition.
So you can decrypt it just when you log in ?
what is the program you used ?
 
  


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
crypt() perl function to encrypt Password in shell scripts or How Encrypt passwords ? balakrishnay Linux - General 13 01-14-2010 09:35 AM
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 09:16 AM
LXer: #!*A5%amp;j9 - How to Encrypt Your File System LXer Syndicated Linux News 0 07-29-2009 08:10 PM
How to encrypt entire file system? (Fedora 11 64bit) ESC201 Linux - Security 5 07-25-2009 08:24 AM
LXer: Encrypt The System Manually Upon Installation (Ubuntu 8.04) LXer Syndicated Linux News 0 07-18-2008 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:00 AM.

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