LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-29-2010, 01:41 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
encrypting my xfs partition


Hi, i have all my personal data in a separated partition that is xfs, I chose that fstype cause I want to encrypt the data, so, my question is:

1. what steps i have to follow to encrypt all data in that partition?
2. how the process work? everytime I logon the data should be decrypted? when logoff the data will be encrypted? this process is managed by kernel?

I'm apologize to ask you for the steps but I don't have clear the way the XFS and the encryption works, so, I you have some urls o howtos are welcome

regards
 
Old 10-30-2010, 12:58 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
First you must choose which encryption software to use. I use Truecrypt but it is not especially convenient to use on Linux. I recommend using the encryption that comes with Linux called cyptsetup because it can be set up to mount encrypted partitions during system startup. The way that I use Truecrypt is to log on as root when the computer finishes its startup, then I manually mount the /home partition which is encrypted with Truecrypt.

Here is a link to a tutorial on cryptsetup.
http://techpulp.com/2009/02/how-to-e...yptsetup-tool/

1. First you must back up all of the data that is currently on the partition. The encryption process will wipe out any data that is currently stored there. Then you encrypt the partition. Then you mount the partition. Then you copy data back onto the partition.

2. Both Truecrypt and cryptsetup use on-the-fly encryption. That means that the data is always encrypted on the disk. It is decrypted when you read the disk. New data is encrypted when it is written to the disk.

Note that both of these methods only work on the encrypted partition. If you read a file into memory and if Linux then writes that file into its swap partition the file will be decrypted in the swap partition. You can solve this problem if you encrypt your swap partition.

You can find more tutorials by searching Google or some other search engine for "cryptsetup howto".
 
  


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
A pondering about Encrypting the Keycard for a LUKS/LVM partition. lumak Slackware 3 08-15-2010 02:15 PM
Encrypting a common data partition between distros tommyttt Linux - General 4 08-07-2010 02:47 AM
cannot re-mount /dev when encrypting root partition sn9ke_eyes Slackware - Installation 1 07-09-2007 04:37 PM
XFS Partition problem qwerty_int Linux - Software 0 09-20-2004 12:05 PM
encrypting root partition joulupukki Linux - Security 13 05-12-2004 01:46 AM


All times are GMT -5. The time now is 06:05 AM.

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