LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2013, 08:09 AM   #1
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Rep: Reputation: Disabled
TrueCrypt Help - Multiple Partitions


Hi there.

I'm planning on encrypting my system (openSUSE 12.3) with TrueCrypt, I'll have multiple partitions. The scheme will be:

* 1GB for /boot (Unencrypted)
* 60GB for "/". This partition will have password A.
* 8GB for "/swap". This partition will have password B.
* The rest (about 862GB) for /home, this partition will have password C.

I couldn't find any conclusive help on the web so I'm counting with people who already did it on opensuse or any other Linux distro.

Regards.
 
Old 08-09-2013, 10:28 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
swap (if you mean virtual memory) and /home are usually mounted at every boot, do you really want to enter 3 passwords during system bootup?

You need to somehow enter credentials. As you want "/" to be encrypted, the bootloader need to ask about password or keyfile and it need to invoke decryption tool before mounting. I don't known how it can be done with normal bootloaders. Maybe the better solution would be encryption of a whole disk.
 
Old 08-09-2013, 10:59 AM   #3
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Original Poster
Rep: Reputation: Disabled
I'm used to overkill security, don't worry

I don't want to encrypt the whole disk since I'll be re-installing the system from times to times, so it'll be a real overkill to me: First encrypt everything, and and when I want to re-isntall the system I need to de-crypt everything, re-install and then encrypt everything again. If the encryption process didn't take too long I would do FDE, but for my 1TB drive it takes 16 hours to do FDE.

So to speed things up the only required thing will be re-install the system and them encrypt it's partition, the rest will be all encrypted.
 
Old 08-09-2013, 04:30 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Then you probably need to create custom initrd, with truecrypt and libraries it needs and execute own script at proper time. But I don't known how to do it exactly, maybe more advanced users will help you.
I don't known if this is worth the effort. More simple method would be unencrypted "/" and encrypt only what you really want, like "/root", "/tmp" or "/var", then truecrypt can be executed from real system startup files, like "/etc/rc.local", when all required libraries and devices are available.
 
Old 08-16-2013, 11:33 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Can you encrypt swap space (outside of encrypting the entire disk)?

Do you really need to encrypt the operating system? Seems like that would slow down system performance.

1Gb is a huge amount of space for /boot

60Gb is a huge amout of space for /, given that you have /home seperated out already. But maybe you have some large database in /var or /opt or something.

But you have a large harddisk, so why not, I guess?
 
Old 08-16-2013, 11:43 PM   #6
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by haertig View Post
Can you encrypt swap space (outside of encrypting the entire disk)?

Do you really need to encrypt the operating system? Seems like that would slow down system performance.

1Gb is a huge amount of space for /boot

60Gb is a huge amout of space for /, given that you have /home seperated out already. But maybe you have some large database in /var or /opt or something.

But you have a large harddisk, so why not, I guess?
With Debian I can encrypt the "/" partition and choose whatever cipher I want to whatever partition I want, even swap (except boot), as you can see here http://img10.imageshack.us/img10/756/ofo8.png

1BG is enough for years of use =)
60GB is because FlightGear alone is about 14, and most of the times my root partition occupies about 25, so I have enough free space to install any game I want. (at least on Ubuntu most games were installed on / instead of /home)

Last edited by junior-s; 08-16-2013 at 11:47 PM.
 
Old 08-17-2013, 07:48 AM   #7
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
But this is not a Truecrypt. You really need to use a Truecrypt? Use the same method as on Debian or look at opensuse documentation.

Quote:
at least on Ubuntu most games were installed on / instead of /home
Mountpoint has no meaning during installation. On most system user programs are installed on /usr, for example on Ubuntu games data (taking up most space) occupy /usr/share/games. You can mount any directory on separate partition. If you known that you will use many games, then separate partition for its data is a good option (rather than exhausting "/" some day).

Other method could be creating a symlink to other partition. For example, due used space on "/" in my work computer, I created /opt symlink, to my /home/opt which lies on separate partition, where I install additional programs.

Last edited by eSelix; 08-17-2013 at 08:14 AM.
 
Old 08-18-2013, 05:09 PM   #8
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
But this is not a Truecrypt. You really need to use a Truecrypt? Use the same method as on Debian or look at opensuse documentation.

Mountpoint has no meaning during installation. On most system user programs are installed on /usr, for example on Ubuntu games data (taking up most space) occupy /usr/share/games. You can mount any directory on separate partition. If you known that you will use many games, then separate partition for its data is a good option (rather than exhausting "/" some day).

Other method could be creating a symlink to other partition. For example, due used space on "/" in my work computer, I created /opt symlink, to my /home/opt which lies on separate partition, where I install additional programs.
I thought I needed TrueCrypt, but it's good news that Debian does this as well =)
Now I have "/", "/swap" and /home encrypted with Twofish-xts-plain64 and a 64-bit password with random letters, numbers, symbols and etc

COME AND GET IT, NSA!
 
Old 08-19-2013, 03:48 AM   #9
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Quote:
Originally Posted by junior-s View Post
COME AND GET IT, NSA!
Be patient, "they" will come Decryption is only matter of time and available resources.
 
Old 08-19-2013, 03:57 AM   #10
junior-s
Member
 
Registered: Apr 2013
Location: Brazil
Distribution: Arch Linux
Posts: 137

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
Be patient, "they" will come Decryption is only matter of time and available resources.
Even if "they" came with all computational power today trying to de-crypt this drive they wouldn't be able =)
Password = Strong
Algorithm = Very strong (I didn't use AES because it's one of the most unsecure regarding the AES finalists)
Did Debian did a good job implementing encryption? I sure hope so hehehe
 
  


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
How to create ntfs hidden partitions under truecrypt? wearetheborg Linux - Software 1 01-17-2012 01:46 PM
[SOLVED] Automount Truecrypt, Truecrypt command lline OS Arch Linux yanfaun Linux - Software 5 09-26-2010 07:37 PM
Truecrypt Or Truecrypt Alternative On Centos? b10m3ch4 Linux - Server 5 12-18-2009 03:42 AM
Those of you with multiple Linux distros across multiple partitions ... SlowCoder General 14 05-15-2009 03:24 PM
Multiple Partitions Ju Deddo Koinu Linux - Newbie 4 05-07-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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