<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://bugs.maemo.com/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>User:Jebba/Cryptsetup - Revision history</title>
		<link>http://bugs.maemo.com/index.php?title=User:Jebba/Cryptsetup&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5-7</generator>
		<lastBuildDate>Mon, 06 Apr 2026 18:21:44 GMT</lastBuildDate>
		<item>
			<title>jebba:&amp;#32;todo</title>
			<link>http://bugs.maemo.com/index.php?title=User:Jebba/Cryptsetup&amp;diff=26455&amp;oldid=prev</link>
			<guid>http://bugs.maemo.com/index.php?title=User:Jebba/Cryptsetup&amp;diff=26455&amp;oldid=prev</guid>
			<description>&lt;p&gt;todo&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:56, 13 January 2010&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* http://wiki.blagblagblag.org/Encrypting_Root_Filesystem - old, but lots of copying from my old page there.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* http://wiki.blagblagblag.org/Encrypting_Root_Filesystem - old, but lots of copying from my old page there.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;=TODO=&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;May be possible, may not be possible:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Encrypted /home/user&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Encrypted /home/user/MyDocs&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Encrypted root&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Encrypted swap&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Way to prompt for password&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-06 18:21:44 --&gt;
&lt;/table&gt;</description>
			<pubDate>Wed, 13 Jan 2010 12:56:20 GMT</pubDate>			<dc:creator>jebba</dc:creator>			<comments>http://bugs.maemo.com/User_talk:Jebba/Cryptsetup</comments>		</item>
		<item>
			<title>jebba:&amp;#32;/* See Also */</title>
			<link>http://bugs.maemo.com/index.php?title=User:Jebba/Cryptsetup&amp;diff=26390&amp;oldid=prev</link>
			<guid>http://bugs.maemo.com/index.php?title=User:Jebba/Cryptsetup&amp;diff=26390&amp;oldid=prev</guid>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See Also&lt;/span&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:53, 12 January 2010&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=See Also=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=See Also=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/del&gt;http://wiki.blagblagblag.org/Encrypting_Root_Filesystem&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/del&gt;- old, but lots of copying from my old page there.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* http://wiki.blagblagblag.org/Encrypting_Root_Filesystem - old, but lots of copying from my old page there.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-06 18:21:44 --&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 12 Jan 2010 03:53:47 GMT</pubDate>			<dc:creator>jebba</dc:creator>			<comments>http://bugs.maemo.com/User_talk:Jebba/Cryptsetup</comments>		</item>
		<item>
			<title>jebba:&amp;#32;initial page</title>
			<link>http://bugs.maemo.com/index.php?title=User:Jebba/Cryptsetup&amp;diff=26389&amp;oldid=prev</link>
			<guid>http://bugs.maemo.com/index.php?title=User:Jebba/Cryptsetup&amp;diff=26389&amp;oldid=prev</guid>
			<description>&lt;p&gt;initial page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Intro=&lt;br /&gt;
Cryptsetup is a good way to use an encrypted filesystem with a gnulinux system. I have made kernel modules and built the cryptsetup program so it can be used with Maemo.&lt;br /&gt;
&lt;br /&gt;
=Kernel=&lt;br /&gt;
You need some kernel modules to use cryptsetup. You can build your own kernel or use mine. This wiki has [[User:Jebba/Kernel#Installing_my_custom_kernel|instructions on installing my custom kernel]].&lt;br /&gt;
&lt;br /&gt;
=Userspace tools=&lt;br /&gt;
You'll need to install cryptsetup from the extras-devel repository.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Create cryptfile=&lt;br /&gt;
Set up a file to use:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 set -x&lt;br /&gt;
 CRYPTSIZE=4&lt;br /&gt;
 LOOPFILE=/dev/loop0&lt;br /&gt;
 CRYPTNAME=cryptfooz&lt;br /&gt;
 CRYPTFILE=/home/user/MyDocs/$CRYPTNAME&lt;br /&gt;
 echo &amp;quot;warning going to erase $CRYPTFILE&amp;quot;&lt;br /&gt;
 read ok&lt;br /&gt;
 dd if=/dev/urandom of=$CRYPTFILE bs=1M count=$CRYPTSIZE&lt;br /&gt;
 cryptsetup remove $CRYPTNAME&lt;br /&gt;
 losetup -d $LOOPFILE&lt;br /&gt;
 losetup $LOOPFILE $CRYPTFILE&lt;br /&gt;
 cryptsetup -v \&lt;br /&gt;
 	--key-size=256 \&lt;br /&gt;
 	--cipher=twofish-cbc-essiv:sha256 \&lt;br /&gt;
 	create \&lt;br /&gt;
 	$CRYPTNAME \&lt;br /&gt;
 	$LOOPFILE&lt;br /&gt;
 mkfs.ext3 -j -m0 /dev/mapper/$CRYPTNAME&lt;br /&gt;
 mkdir -p /mnt/$CRYPTNAME&lt;br /&gt;
 mount -o noatime /dev/mapper/$CRYPTNAME /mnt/$CRYPTNAME&lt;br /&gt;
 chown user:users /mnt/$CRYPTNAME&lt;br /&gt;
 ls -la /mnt/$CRYPTNAME&lt;br /&gt;
&lt;br /&gt;
With this, you can now copy files to /mnt/cryptfooz and they'll be encrypted.&lt;br /&gt;
&lt;br /&gt;
=Umount=&lt;br /&gt;
(Untested, but should just be like this)&lt;br /&gt;
&lt;br /&gt;
 # cryptfooz or whatever you named it above&lt;br /&gt;
 umount /mnt/cryptfooz&lt;br /&gt;
 &lt;br /&gt;
 # Then remove it from cryptsetup&lt;br /&gt;
 cryptsetup remove cryptofooz&lt;br /&gt;
 &lt;br /&gt;
 # Then freeup the loopback&lt;br /&gt;
 losetup -d /dev/loop0&lt;br /&gt;
&lt;br /&gt;
=Mount=&lt;br /&gt;
So the next time you want to mount it, just run:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 set -x&lt;br /&gt;
 CRYPTSIZE=4&lt;br /&gt;
 LOOPFILE=/dev/loop0&lt;br /&gt;
 CRYPTNAME=cryptfooz&lt;br /&gt;
 CRYPTFILE=/home/user/MyDocs/$CRYPTNAME&lt;br /&gt;
 cryptsetup remove $CRYPTNAME&lt;br /&gt;
 losetup -d $LOOPFILE&lt;br /&gt;
 losetup $LOOPFILE $CRYPTFILE&lt;br /&gt;
 cryptsetup -v \&lt;br /&gt;
 	--key-size=256 \&lt;br /&gt;
 	--cipher=twofish-cbc-essiv:sha256 \&lt;br /&gt;
 	create \&lt;br /&gt;
 	$CRYPTNAME \&lt;br /&gt;
 	$LOOPFILE&lt;br /&gt;
 mount -o noatime /dev/mapper/$CRYPTNAME /mnt/$CRYPTNAME&lt;br /&gt;
 ls -la /mnt/$CRYPTNAME&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
&lt;br /&gt;
* [http://wiki.blagblagblag.org/Encrypting_Root_Filesystem] - old, but lots of copying from my old page there.&lt;/div&gt;</description>
			<pubDate>Tue, 12 Jan 2010 03:53:18 GMT</pubDate>			<dc:creator>jebba</dc:creator>			<comments>http://bugs.maemo.com/User_talk:Jebba/Cryptsetup</comments>		</item>
	</channel>
</rss>