<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: HowTo:  Setup and Benchmark Encrypted Partitions in Ubuntu</title>
	<atom:link href="http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/</link>
	<description>a swift kick in the *nix</description>
	<lastBuildDate>Fri, 05 Feb 2010 04:27:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: hatifnatt</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-5615</link>
		<dc:creator>hatifnatt</dc:creator>
		<pubDate>Thu, 26 Nov 2009 14:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-5615</guid>
		<description>With this config:

M/B SuperMicro X7SBE-О LGA775, i3210
CPU Intel(R) Xeon(R) X3370 @ 3.00GHz
RAID controller 3ware 9690SA-8I (OEM) PCI-E x8
HDD 73 Gb SAS Hitachi  15000rpm 16Mb 6 pcs. in RAID10
RAM  2Gb  ECC CL6 x 4

I have about 330 - 350 MB/s secquental reading and writing, but with ecryption speed fall to ~120 MB/s writing and ~99MB/s reading.

By using this (http://www.holtznet.de/luks/) small test I saw that max enryption speed can be reached on my system with this settings: &quot;-c aes-xts-plain -s 256&quot;
write: 134 MB/s
read: 144 MB/s 
but this values is terribly slow, its about 280% slower than without encryption.

Therefore when disk perfomance is above some speed, &quot;bottleneck&quot; is CPU perfomance and the fact that dm-crypt uses only one core.

Very useful information on the dm-crypt and related issues.
http://osdir.com/ml/linux.kernel.device-mapper.dm-crypt/2006-11/msg00018.html

By now I spend about a week, and still didn&#039;t found any decision how increase encryption speed.

Any suggestion?</description>
		<content:encoded><![CDATA[<p>With this config:</p>
<p>M/B SuperMicro X7SBE-О LGA775, i3210<br />
CPU Intel(R) Xeon(R) X3370 @ 3.00GHz<br />
RAID controller 3ware 9690SA-8I (OEM) PCI-E x8<br />
HDD 73 Gb SAS Hitachi  15000rpm 16Mb 6 pcs. in RAID10<br />
RAM  2Gb  ECC CL6 x 4</p>
<p>I have about 330 &#8211; 350 MB/s secquental reading and writing, but with ecryption speed fall to ~120 MB/s writing and ~99MB/s reading.</p>
<p>By using this (<a href="http://www.holtznet.de/luks/" rel="nofollow">http://www.holtznet.de/luks/</a>) small test I saw that max enryption speed can be reached on my system with this settings: &#8220;-c aes-xts-plain -s 256&#8243;<br />
write: 134 MB/s<br />
read: 144 MB/s<br />
but this values is terribly slow, its about 280% slower than without encryption.</p>
<p>Therefore when disk perfomance is above some speed, &#8220;bottleneck&#8221; is CPU perfomance and the fact that dm-crypt uses only one core.</p>
<p>Very useful information on the dm-crypt and related issues.<br />
<a href="http://osdir.com/ml/linux.kernel.device-mapper.dm-crypt/2006-11/msg00018.html" rel="nofollow">http://osdir.com/ml/linux.kernel.device-mapper.dm-crypt/2006-11/msg00018.html</a></p>
<p>By now I spend about a week, and still didn&#8217;t found any decision how increase encryption speed.</p>
<p>Any suggestion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scrape</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-5568</link>
		<dc:creator>Scrape</dc:creator>
		<pubDate>Tue, 22 Sep 2009 17:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-5568</guid>
		<description>Way late here...

I would suggest that one good reason for encrypting the root filesystem on a laptop is to prevent installation of a trojan horse that could subsequently steal/hijack/whatever -anything- you do on the laptop.

Scenario
(1) You leave your laptop in a hotel room, office, whatever.
(2) An attacker gains access via social engineering, forcible entry, whatever.
(3) The attacker installs a trojan in the boot sequence of the laptop. He could do this even w/ BIOS passwords, login passwords, etc. All he has to do is remove the hard drive from the laptop, plug it into a USB device and then access it as an additional hard drive on another laptop. He wouldn&#039;t even need to load your Linux system--he just needs to be able to read/write whatever type of filesystem your root is.
(4) He puts everything back and leaves.
(5) Now you load your laptop. Even w/ encrypted home, once you&#039;ve mounted /home he has access to it all via his trojan, and obviously he could get whatever you do on the web.

You could halt this process at steps (1)/(2) by always maintaining physical security of your laptop. This is probably the cheapest/easiest solution in most cases, but might not be possible in your situation.

Or, you could halt this process at step (3) by encrypting your root filesystem. Arguably, in order for this to work, you&#039;d probably need to keep your /boot on a USB key which would always be required for booting the computer. Otherwise, your unencrypted /boot could be hijacked.

My two cents.</description>
		<content:encoded><![CDATA[<p>Way late here&#8230;</p>
<p>I would suggest that one good reason for encrypting the root filesystem on a laptop is to prevent installation of a trojan horse that could subsequently steal/hijack/whatever -anything- you do on the laptop.</p>
<p>Scenario<br />
(1) You leave your laptop in a hotel room, office, whatever.<br />
(2) An attacker gains access via social engineering, forcible entry, whatever.<br />
(3) The attacker installs a trojan in the boot sequence of the laptop. He could do this even w/ BIOS passwords, login passwords, etc. All he has to do is remove the hard drive from the laptop, plug it into a USB device and then access it as an additional hard drive on another laptop. He wouldn&#8217;t even need to load your Linux system&#8211;he just needs to be able to read/write whatever type of filesystem your root is.<br />
(4) He puts everything back and leaves.<br />
(5) Now you load your laptop. Even w/ encrypted home, once you&#8217;ve mounted /home he has access to it all via his trojan, and obviously he could get whatever you do on the web.</p>
<p>You could halt this process at steps (1)/(2) by always maintaining physical security of your laptop. This is probably the cheapest/easiest solution in most cases, but might not be possible in your situation.</p>
<p>Or, you could halt this process at step (3) by encrypting your root filesystem. Arguably, in order for this to work, you&#8217;d probably need to keep your /boot on a USB key which would always be required for booting the computer. Otherwise, your unencrypted /boot could be hijacked.</p>
<p>My two cents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-4758</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 01 Jul 2008 01:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-4758</guid>
		<description>Hey Wayne,

I was wondering what you used to generate your graphs.  It looks a bit too polished to be gnuplot.  Did whatever you used just slurp up, for example, the bonnie++ .csv results, or did you have to write a script to do the heavy lifting?</description>
		<content:encoded><![CDATA[<p>Hey Wayne,</p>
<p>I was wondering what you used to generate your graphs.  It looks a bit too polished to be gnuplot.  Did whatever you used just slurp up, for example, the bonnie++ .csv results, or did you have to write a script to do the heavy lifting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-4701</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Wed, 04 Jun 2008 00:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-4701</guid>
		<description>@Jaba

Yes, big files would be a tough job (I feel your pain, I&#039;ve lost my data several times before).

Small files are easier - I lost 6 hours of work once when I accidentally deleted a file (on an ext3 partition) and was able to recover it in about 60 minutes using nothing but grep and an old copy of the file.

Cheers,

Darren</description>
		<content:encoded><![CDATA[<p>@Jaba</p>
<p>Yes, big files would be a tough job (I feel your pain, I&#8217;ve lost my data several times before).</p>
<p>Small files are easier &#8211; I lost 6 hours of work once when I accidentally deleted a file (on an ext3 partition) and was able to recover it in about 60 minutes using nothing but grep and an old copy of the file.</p>
<p>Cheers,</p>
<p>Darren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaba</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-4699</link>
		<dc:creator>Jaba</dc:creator>
		<pubDate>Tue, 03 Jun 2008 13:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-4699</guid>
		<description>@Darren

I agree ^_^

But - I assure you - &quot;he&quot; must be a VERY dedicated attacker. I lost myself big chunks of data multiple times, and I was never able of recover it. Maybe for smaller files could really be a lot simpler.

Thanks again

-Jaba</description>
		<content:encoded><![CDATA[<p>@Darren</p>
<p>I agree ^_^</p>
<p>But &#8211; I assure you &#8211; &#8220;he&#8221; must be a VERY dedicated attacker. I lost myself big chunks of data multiple times, and I was never able of recover it. Maybe for smaller files could really be a lot simpler.</p>
<p>Thanks again</p>
<p>-Jaba</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-4698</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Tue, 03 Jun 2008 10:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-4698</guid>
		<description>@Jaba

Glad I could be of assistance :) and thanks for the link, I didn&#039;t know ext3 did this. 

It&#039;s interesting to note that *all* of the file remains on disk until it gets overwritten - what&#039;s being deleted is the list of locations where the file is (or was) stored. While this makes undeletion much harder, a dedicated attacker can still recover the entire file with enough time, provided another file hasn&#039;t overwritten it. The filesystem makes the attacker&#039;s job easier by attempting to write the file to disk in consecutive blocks (for best performance). Smaller files especially will tend to be kept intact, making them especially vulnerable.

Cheers,

Darren</description>
		<content:encoded><![CDATA[<p>@Jaba</p>
<p>Glad I could be of assistance <img src='http://www.fsckin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and thanks for the link, I didn&#8217;t know ext3 did this. </p>
<p>It&#8217;s interesting to note that *all* of the file remains on disk until it gets overwritten &#8211; what&#8217;s being deleted is the list of locations where the file is (or was) stored. While this makes undeletion much harder, a dedicated attacker can still recover the entire file with enough time, provided another file hasn&#8217;t overwritten it. The filesystem makes the attacker&#8217;s job easier by attempting to write the file to disk in consecutive blocks (for best performance). Smaller files especially will tend to be kept intact, making them especially vulnerable.</p>
<p>Cheers,</p>
<p>Darren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaba</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-4688</link>
		<dc:creator>Jaba</dc:creator>
		<pubDate>Mon, 02 Jun 2008 14:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-4688</guid>
		<description>@Darren

GREAT - GREAT - GREAT

Thank you so much - that was a simply perfect answer, clear and complete. You&#039;ve completely answered all my doubts - thanks!.
Now I now how to act to secure my work - best of all, I know WHY.

By now, my configuration is:
1. no swap
2. tmpfs for all temporary dirs
3. auto-clean firefox cache/cookies/history on shutdown
4. Desktop folder encrypted, work folder as subdirectory
5. work backups on encrypted secure digital

I feel enough safe for my purpose, and works like a charm on my eeepc - which anyway wasn&#039;t designed for large files or photo/video editing ;) thanks a lot, you&#039;ve been very clear about leftover fragments.

Thanks everybody for your support - and to Waine for the place
Hope this discussion will be useful to many

-Jaba

ps btw, the inode/data part isn&#039;t really as simple as shown...
http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html
go down to Q: How can I recover (undelete) deleted files from my ext3 partition?
ext3 does enough the trick in the background... not safe if someone is stealing your pc looting for data, but safe enough for common use.</description>
		<content:encoded><![CDATA[<p>@Darren</p>
<p>GREAT &#8211; GREAT &#8211; GREAT</p>
<p>Thank you so much &#8211; that was a simply perfect answer, clear and complete. You&#8217;ve completely answered all my doubts &#8211; thanks!.<br />
Now I now how to act to secure my work &#8211; best of all, I know WHY.</p>
<p>By now, my configuration is:<br />
1. no swap<br />
2. tmpfs for all temporary dirs<br />
3. auto-clean firefox cache/cookies/history on shutdown<br />
4. Desktop folder encrypted, work folder as subdirectory<br />
5. work backups on encrypted secure digital</p>
<p>I feel enough safe for my purpose, and works like a charm on my eeepc &#8211; which anyway wasn&#8217;t designed for large files or photo/video editing <img src='http://www.fsckin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  thanks a lot, you&#8217;ve been very clear about leftover fragments.</p>
<p>Thanks everybody for your support &#8211; and to Waine for the place<br />
Hope this discussion will be useful to many</p>
<p>-Jaba</p>
<p>ps btw, the inode/data part isn&#8217;t really as simple as shown&#8230;<br />
<a href="http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html" rel="nofollow">http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html</a><br />
go down to Q: How can I recover (undelete) deleted files from my ext3 partition?<br />
ext3 does enough the trick in the background&#8230; not safe if someone is stealing your pc looting for data, but safe enough for common use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-4685</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Sun, 01 Jun 2008 06:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-4685</guid>
		<description>@Jaba:

Hopefully I can answer your question about why / should be encrypted:

1) Leftover file fragments:
Lets say you&#039;re working on a private document on your desktop. You finish for the day and copy this document to your secure partition, then unmount it. You delete the original document and your data is safe.

Or is it?

Deleting a file only removes the inode (the filesystem&#039;s index to where the file is stored). The actual (private) data is still on the disk, and some trivial computer forensics (google photorec) will recover the deleted file. 

If you know what you&#039;re doing, you might securely wipe the file instead of just deleting it, because a secure wipe destroys the data on disk before removing the inode, but even that won&#039;t guarantee your safety. Many programs write temporary files in the course of operation, and they don&#039;t always put their files in /tmp. If the environment variable TMPDIR is set the program will often prefer that directory (an attacker could trick you into setting TMPDIR perhaps). vim will write a .swp file in the same directory as the file you are editing. gimp will store its tile cache in ~/.gimp*/ etc etc. You can bet these files are *not* securely wiped and fragments of your original file can still be recovered (possibly the whole file).

2) secure by default
You could possibly keep track of all these messy temp files and make sure you wipe them all the time, but it takes discipline, even for trivial cases. If you screw up once your data could be leaked. Encrypting the root reverses the trend: your data will be safe by default. If you want better performance you can always put your /usr directory in its own unencrypted partition, or only encrypt /home, /tmp and swap, but I don&#039;t want people knowing what software I have installed anyway (why does he have john the ripper on there? he *must* be up to something!)

Finally, you asked for an example large files that have to be kept private: Right now I have about 45-50GB of videos and photos on my PC, most of which isn&#039;t mine. I have permission to keep all of them for personal use, but if my laptop gets stolen and someone starts selling my associates content then I&#039;ve failed to protect their commercial interests. Other examples: work-related database dumps or source code repositories, scientific data, the ever pervasive pr0n (including legally downloaded), the cache of your local http proxy, etc etc.

Sorry for the long post. I hope this gives you some idea of why we might want / encrypted ;)

Cheers,

Darren</description>
		<content:encoded><![CDATA[<p>@Jaba:</p>
<p>Hopefully I can answer your question about why / should be encrypted:</p>
<p>1) Leftover file fragments:<br />
Lets say you&#8217;re working on a private document on your desktop. You finish for the day and copy this document to your secure partition, then unmount it. You delete the original document and your data is safe.</p>
<p>Or is it?</p>
<p>Deleting a file only removes the inode (the filesystem&#8217;s index to where the file is stored). The actual (private) data is still on the disk, and some trivial computer forensics (google photorec) will recover the deleted file. </p>
<p>If you know what you&#8217;re doing, you might securely wipe the file instead of just deleting it, because a secure wipe destroys the data on disk before removing the inode, but even that won&#8217;t guarantee your safety. Many programs write temporary files in the course of operation, and they don&#8217;t always put their files in /tmp. If the environment variable TMPDIR is set the program will often prefer that directory (an attacker could trick you into setting TMPDIR perhaps). vim will write a .swp file in the same directory as the file you are editing. gimp will store its tile cache in ~/.gimp*/ etc etc. You can bet these files are *not* securely wiped and fragments of your original file can still be recovered (possibly the whole file).</p>
<p>2) secure by default<br />
You could possibly keep track of all these messy temp files and make sure you wipe them all the time, but it takes discipline, even for trivial cases. If you screw up once your data could be leaked. Encrypting the root reverses the trend: your data will be safe by default. If you want better performance you can always put your /usr directory in its own unencrypted partition, or only encrypt /home, /tmp and swap, but I don&#8217;t want people knowing what software I have installed anyway (why does he have john the ripper on there? he *must* be up to something!)</p>
<p>Finally, you asked for an example large files that have to be kept private: Right now I have about 45-50GB of videos and photos on my PC, most of which isn&#8217;t mine. I have permission to keep all of them for personal use, but if my laptop gets stolen and someone starts selling my associates content then I&#8217;ve failed to protect their commercial interests. Other examples: work-related database dumps or source code repositories, scientific data, the ever pervasive pr0n (including legally downloaded), the cache of your local http proxy, etc etc.</p>
<p>Sorry for the long post. I hope this gives you some idea of why we might want / encrypted <img src='http://www.fsckin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers,</p>
<p>Darren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wayne</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-3980</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Thu, 06 Mar 2008 19:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-3980</guid>
		<description>I would offer TrueCrypt as an alternative, if you are just encrypting a folder</description>
		<content:encoded><![CDATA[<p>I would offer TrueCrypt as an alternative, if you are just encrypting a folder</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/comment-page-1/#comment-3979</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 06 Mar 2008 14:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsckin.com/2008/01/15/howto-setup-and-benchmark-encrypted-partitions-in-ubuntu/#comment-3979</guid>
		<description>This article was extremely useful but, being a noob and not too verbose with Unix/Linux command line statements yet, I&#039;d like to ask this: Can you encrypt a folder within a file system?
If so, how do you decrypt the same folder at a later stage so no passwords are required?</description>
		<content:encoded><![CDATA[<p>This article was extremely useful but, being a noob and not too verbose with Unix/Linux command line statements yet, I&#8217;d like to ask this: Can you encrypt a folder within a file system?<br />
If so, how do you decrypt the same folder at a later stage so no passwords are required?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.449 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-02-12 14:11:41 -->
