<?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: Encrypted partitions with Ubuntu/Debian</title>
	<atom:link href="http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/feed" rel="self" type="application/rss+xml" />
	<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian</link>
	<description>Stuff I think, see and do</description>
	<lastBuildDate>Thu, 11 Mar 2010 01:07:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Wanderer</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-33118</link>
		<dc:creator>Wanderer</dc:creator>
		<pubDate>Wed, 23 Apr 2008 11:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-33118</guid>
		<description>&quot;These encrypted removable devices are even supported on Windows (see FreeOFTE)&quot;

Right now I&#039;m a bit frustrated with FreeOTFE, as it doesn&#039;t show other partitions on my flash drive, only the first one, which is unencrypted. AFAIK there is no way to create more than one partition on removable drive in M$ Windows, which really sucks.</description>
		<content:encoded><![CDATA[<p>&#8220;These encrypted removable devices are even supported on Windows (see FreeOFTE)&#8221;</p>
<p>Right now I&#8217;m a bit frustrated with FreeOTFE, as it doesn&#8217;t show other partitions on my flash drive, only the first one, which is unencrypted. AFAIK there is no way to create more than one partition on removable drive in M$ Windows, which really sucks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phocean.net &#187; Blog Archive &#187; Disk Encryption on Linux</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-23086</link>
		<dc:creator>Phocean.net &#187; Blog Archive &#187; Disk Encryption on Linux</dc:creator>
		<pubDate>Sun, 18 Nov 2007 17:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-23086</guid>
		<description>[...] mainly used this tutorial, but I derived a little from it about the unlocking system : I did not want to input a password [...]</description>
		<content:encoded><![CDATA[<p>[...] mainly used this tutorial, but I derived a little from it about the unlocking system : I did not want to input a password [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danbar</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-16531</link>
		<dc:creator>Danbar</dc:creator>
		<pubDate>Sat, 14 Jul 2007 18:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-16531</guid>
		<description>Our family computer is used be several family members. I created several partitions (one for each member). Now can I have a different password for each user when it comes to save in his/her own partition in order to avoid deleting or mixing up important files? I&#039;m the only administrator as the other are users. 
I don&#039;t wish to use the home directory (for each user)in case I have problems with the program.  Having partitions gives more security to the computer. 
I use dual boot (XP and Ubuntu) and I have the latest edition of Ubuntu (7.04).
Many thanks!</description>
		<content:encoded><![CDATA[<p>Our family computer is used be several family members. I created several partitions (one for each member). Now can I have a different password for each user when it comes to save in his/her own partition in order to avoid deleting or mixing up important files? I&#8217;m the only administrator as the other are users.<br />
I don&#8217;t wish to use the home directory (for each user)in case I have problems with the program.  Having partitions gives more security to the computer.<br />
I use dual boot (XP and Ubuntu) and I have the latest edition of Ubuntu (7.04).<br />
Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-15830</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 25 Jun 2007 03:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-15830</guid>
		<description>You need to modprobe aes, dm-crypt, and dm_mod.  Then, add these to /etc/modules.  Then, run cryptsetup again as root (sudo).</description>
		<content:encoded><![CDATA[<p>You need to modprobe aes, dm-crypt, and dm_mod.  Then, add these to /etc/modules.  Then, run cryptsetup again as root (sudo).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pierre</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-14994</link>
		<dc:creator>pierre</dc:creator>
		<pubDate>Sat, 02 Jun 2007 18:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-14994</guid>
		<description>I have been trying to crypt the USB stick (partition of it, about 70 MB) but is saying that it inexplicably (for me ;) ) failed.
any idea ? I am running Kubuntu 7.04.
cheers 
Pierre

pierre@HomePC:~$ mount
[...]
/dev/sdg2 on /media/disk-2 type vfat (rw,nosuid,nodev,noatime,uid=1000,utf8,shor                                                   pierre@HomePC:~$ cryptsetup luksFormat -c aes-cbc-essiv:sha256  /dev/sdg2

WARNING!
========
This will overwrite data on /dev/sdg2 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sdg2 contains at least 133 sectors.
Failed to write to key storage.
Command failed.
pierre@HomePC:~$
pierre@HomePC:~$</description>
		<content:encoded><![CDATA[<p>I have been trying to crypt the USB stick (partition of it, about 70 MB) but is saying that it inexplicably (for me ;) ) failed.<br />
any idea ? I am running Kubuntu 7.04.<br />
cheers<br />
Pierre</p>
<p>pierre@HomePC:~$ mount<br />
[...]<br />
/dev/sdg2 on /media/disk-2 type vfat (rw,nosuid,nodev,noatime,uid=1000,utf8,shor                                                   pierre@HomePC:~$ cryptsetup luksFormat -c aes-cbc-essiv:sha256  /dev/sdg2</p>
<p>WARNING!<br />
========<br />
This will overwrite data on /dev/sdg2 irrevocably.</p>
<p>Are you sure? (Type uppercase yes): YES<br />
Enter LUKS passphrase:<br />
Verify passphrase:<br />
Failed to setup dm-crypt key mapping.<br />
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sdg2 contains at least 133 sectors.<br />
Failed to write to key storage.<br />
Command failed.<br />
pierre@HomePC:~$<br />
pierre@HomePC:~$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MFH</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-13649</link>
		<dc:creator>MFH</dc:creator>
		<pubDate>Sat, 05 May 2007 00:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-13649</guid>
		<description>Great tutorial, with one problem: encrypted swap files.  The man page for cryptsetup clearly says that exhaustive reads makes it impossible to use /dev/random, etc as sources for keyfiles.  Please give more explicit directions on how one can use your method to set up an encrypted swap space. TIA.</description>
		<content:encoded><![CDATA[<p>Great tutorial, with one problem: encrypted swap files.  The man page for cryptsetup clearly says that exhaustive reads makes it impossible to use /dev/random, etc as sources for keyfiles.  Please give more explicit directions on how one can use your method to set up an encrypted swap space. TIA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: disk_noir</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-12768</link>
		<dc:creator>disk_noir</dc:creator>
		<pubDate>Tue, 03 Apr 2007 09:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-12768</guid>
		<description>Great tutorial, espacially the removable disks part is very interesting for me.
But.. do you have any expierience with updating an encrypted system eg from dapper to edgy ? Did such an update work even with encrypted root ?</description>
		<content:encoded><![CDATA[<p>Great tutorial, espacially the removable disks part is very interesting for me.<br />
But.. do you have any expierience with updating an encrypted system eg from dapper to edgy ? Did such an update work even with encrypted root ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doctor headcrash</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-10976</link>
		<dc:creator>doctor headcrash</dc:creator>
		<pubDate>Thu, 22 Feb 2007 03:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-10976</guid>
		<description>... my angle braces broke the previous posting.

Let me try with HTML escapes:

$CRYPTCMD $PARAMS create $dst $src &lt; /dev/console</description>
		<content:encoded><![CDATA[<p>&#8230; my angle braces broke the previous posting.</p>
<p>Let me try with HTML escapes:</p>
<p>$CRYPTCMD $PARAMS create $dst $src &lt; /dev/console</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doctor headcrash</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-10975</link>
		<dc:creator>doctor headcrash</dc:creator>
		<pubDate>Thu, 22 Feb 2007 03:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-10975</guid>
		<description>It&#039;s not so much that LUKS is broken under Edgy, it&#039;s the whole getting the passphrase thing under cryptsetup.

Using your LUKS solution as a guide, I hacked around this problem by changing line 318 of /lib/cryptsetup/cryptdisks.functions to read:

$CRYPTCMD $PARAMS create $dst $src </description>
		<content:encoded><![CDATA[<p>It&#8217;s not so much that LUKS is broken under Edgy, it&#8217;s the whole getting the passphrase thing under cryptsetup.</p>
<p>Using your LUKS solution as a guide, I hacked around this problem by changing line 318 of /lib/cryptsetup/cryptdisks.functions to read:</p>
<p>$CRYPTCMD $PARAMS create $dst $src</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-10656</link>
		<dc:creator>john</dc:creator>
		<pubDate>Fri, 16 Feb 2007 10:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-10656</guid>
		<description>Thanks Daniel, fixed now.</description>
		<content:encoded><![CDATA[<p>Thanks Daniel, fixed now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-10573</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 14 Feb 2007 18:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-10573</guid>
		<description>Thanks for this great howto!

I just wanted to point out that luksClose expects the name of the mapping not of the device.

Therefore, step 3 in the USB key section will fail, it should read:

cryptsetup luksClose luks-temp</description>
		<content:encoded><![CDATA[<p>Thanks for this great howto!</p>
<p>I just wanted to point out that luksClose expects the name of the mapping not of the device.</p>
<p>Therefore, step 3 in the USB key section will fail, it should read:</p>
<p>cryptsetup luksClose luks-temp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rdg</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-8327</link>
		<dc:creator>rdg</dc:creator>
		<pubDate>Sat, 23 Dec 2006 16:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-8327</guid>
		<description>Well the simples thing to do would be:

sudo chown -R uid:gid /device/mount/point

or without sudo run by root. But changing the owner back and forth isn&#039;t what we&#039;re looking for all the time (but most cases would be ok with that).

I think looking into the stuff like SGID and SUID on mount directory and umask as well might do the trick. But still - ext3 without the permissions would be perfect.</description>
		<content:encoded><![CDATA[<p>Well the simples thing to do would be:</p>
<p>sudo chown -R uid:gid /device/mount/point</p>
<p>or without sudo run by root. But changing the owner back and forth isn&#8217;t what we&#8217;re looking for all the time (but most cases would be ok with that).</p>
<p>I think looking into the stuff like SGID and SUID on mount directory and umask as well might do the trick. But still &#8211; ext3 without the permissions would be perfect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-8141</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 17 Dec 2006 12:29:05 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-8141</guid>
		<description>Marco: FAT32 doesn&#039;t support permissions, so whenever you plug it into a computer, the user plugging it in gets access to it.  With EXT3 (and other filesystems that do support permissions) only the root user can access it by default (usually).

To fix this, just plugin your key and type your passphrase to get it mounted.  Then set the permissions to something you can access (you&#039;ll need to do this as root).

What permissions you use really depend on your situation.  If you only ever plug it into a one-user desktop machine then running &lt;code&gt;chmod 777 /mount/point&lt;/code&gt; should be fine.

If you move the key between different Linux computers, you might hit the permission problem again if the users on the machines have different uids.

It might be better just to reformat as FAT32, so you can easily use it anywhere.  Remember though, FAT32 has some limitations that might prevent you from copying files with certain characters in it, or files larger than a certain size.

It&#039;d be nice to have a filesystem with the flexibility of EXT3 but with no permissions system, or one which could be overridden on mount.  Anyone know of one?</description>
		<content:encoded><![CDATA[<p>Marco: FAT32 doesn&#8217;t support permissions, so whenever you plug it into a computer, the user plugging it in gets access to it.  With EXT3 (and other filesystems that do support permissions) only the root user can access it by default (usually).</p>
<p>To fix this, just plugin your key and type your passphrase to get it mounted.  Then set the permissions to something you can access (you&#8217;ll need to do this as root).</p>
<p>What permissions you use really depend on your situation.  If you only ever plug it into a one-user desktop machine then running <code>chmod 777 /mount/point</code> should be fine.</p>
<p>If you move the key between different Linux computers, you might hit the permission problem again if the users on the machines have different uids.</p>
<p>It might be better just to reformat as FAT32, so you can easily use it anywhere.  Remember though, FAT32 has some limitations that might prevent you from copying files with certain characters in it, or files larger than a certain size.</p>
<p>It&#8217;d be nice to have a filesystem with the flexibility of EXT3 but with no permissions system, or one which could be overridden on mount.  Anyone know of one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-8129</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Sun, 17 Dec 2006 01:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-8129</guid>
		<description>Hi, thanks for the documentation. Works perfectly. I have a little problem. When I plug the usb disk I&#039;m asked for the password (gnome way) but I haven&#039;t the rights to write on the disk. And since there is nothing about this partition in fstab neither in the crypttab... I&#039;m lost.</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the documentation. Works perfectly. I have a little problem. When I plug the usb disk I&#8217;m asked for the password (gnome way) but I haven&#8217;t the rights to write on the disk. And since there is nothing about this partition in fstab neither in the crypttab&#8230; I&#8217;m lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: An old man</title>
		<link>http://johnleach.co.uk/words/archives/2006/12/06/245/encrypted-partitions-with-ubuntudebian/comment-page-1#comment-7827</link>
		<dc:creator>An old man</dc:creator>
		<pubDate>Thu, 07 Dec 2006 19:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://johnleach.co.uk/words/archives/2006/12/06/245/#comment-7827</guid>
		<description>You&#039;re a bloody genius, cheers.</description>
		<content:encoded><![CDATA[<p>You&#8217;re a bloody genius, cheers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
