<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=losetup</id>
	<title>losetup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=losetup"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=losetup&amp;action=history"/>
	<updated>2026-08-12T13:02:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=losetup&amp;diff=13223&amp;oldid=prev</id>
		<title>Woozle: /* Encryption */ removed initial space so text will wrap</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=losetup&amp;diff=13223&amp;oldid=prev"/>
		<updated>2010-01-12T22:46:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Encryption: &lt;/span&gt; removed initial space so text will wrap&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:46, 12 January 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;losetup is used to associate loop devices with regular files or block devices, to detach loop devices and to query the status of a loop device. If only the loop_device argument is given, the status of the corresponding loop device is shown.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;losetup is used to associate loop devices with regular files or block devices, to detach loop devices and to query the status of a loop device. If only the loop_device argument is given, the status of the corresponding loop device is shown.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Encryption===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Encryption===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;It is possible to specify transfer functions (for encryption/decryption or other purposes) using one of the &#039;&#039;&#039;-E&#039;&#039;&#039; and &#039;&#039;&#039;-e&#039;&#039;&#039; options. There are two mechanisms to specify the desired encryption: by number and by name. If an encryption is specified by number then one has to make sure that the Linux kernel knows about the encryption with that number, probably by patching the kernel. Standard numbers that are always present are 0 (no encryption) and 1 (XOR encryption). When the cryptoloop module is loaded (or compiled in), it uses number 18. This cryptoloop module will take the name of an arbitrary encryption type and finds the module that knows how to perform that encryption. (Thus, either one uses a number different from 18 with the &#039;&#039;&#039;-E&#039;&#039;&#039; option, or one uses a name with the &#039;&#039;&#039;-e&#039;&#039;&#039; option.)  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is possible to specify transfer functions (for encryption/decryption or other purposes) using one of the &#039;&#039;&#039;-E&#039;&#039;&#039; and &#039;&#039;&#039;-e&#039;&#039;&#039; options. There are two mechanisms to specify the desired encryption: by number and by name. If an encryption is specified by number then one has to make sure that the Linux kernel knows about the encryption with that number, probably by patching the kernel. Standard numbers that are always present are 0 (no encryption) and 1 (XOR encryption). When the cryptoloop module is loaded (or compiled in), it uses number 18. This cryptoloop module will take the name of an arbitrary encryption type and finds the module that knows how to perform that encryption. (Thus, either one uses a number different from 18 with the &#039;&#039;&#039;-E&#039;&#039;&#039; option, or one uses a name with the &#039;&#039;&#039;-e&#039;&#039;&#039; option.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===OPTIONS===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===OPTIONS===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;--delete&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;--detach&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-d&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;--delete&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;--detach&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-d&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=losetup&amp;diff=13219&amp;oldid=prev</id>
		<title>Woozle: moved Losetup to losetup:&amp;#32;command name is not capitalized; this was a holdover from before I turned off the first-letter-cap flag</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=losetup&amp;diff=13219&amp;oldid=prev"/>
		<updated>2010-01-12T22:42:48Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/Losetup&quot; class=&quot;mw-redirect&quot; title=&quot;Losetup&quot;&gt;Losetup&lt;/a&gt; to &lt;a href=&quot;/losetup&quot; title=&quot;losetup&quot;&gt;losetup&lt;/a&gt;: command name is not capitalized; this was a holdover from before I turned off the first-letter-cap flag&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:42, 12 January 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=losetup&amp;diff=13218&amp;oldid=prev</id>
		<title>Woozle: template name is capitalized because Linux is capitalized</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=losetup&amp;diff=13218&amp;oldid=prev"/>
		<updated>2010-01-12T22:42:13Z</updated>

		<summary type="html">&lt;p&gt;template name is capitalized because Linux is capitalized&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:42, 12 January 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;linux &lt;/del&gt;shell commands|losetup}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Linux &lt;/ins&gt;shell commands|losetup}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Documentation==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Documentation==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Section: [[Linux manpages section 8|MAINTENANCE COMMANDS (8)]]  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Section: [[Linux manpages section 8|MAINTENANCE COMMANDS (8)]]  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=losetup&amp;diff=2072&amp;oldid=prev</id>
		<title>Woozle: post-import navbar cleanup</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=losetup&amp;diff=2072&amp;oldid=prev"/>
		<updated>2005-10-14T20:03:47Z</updated>

		<summary type="html">&lt;p&gt;post-import navbar cleanup&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:03, 14 October 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Linux Shell Commands]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{linux shell commands|&lt;/ins&gt;losetup&lt;ins style=&quot;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 class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Techniques]]: [[Linux]]: [[&lt;/del&gt;losetup&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Documentation==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Documentation==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Section: [[Linux manpages section 8|MAINTENANCE COMMANDS (8)]]  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Section: [[Linux manpages section 8|MAINTENANCE COMMANDS (8)]]  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=losetup&amp;diff=2071&amp;oldid=prev</id>
		<title>Woozle at 14:59, 25 June 2005</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=losetup&amp;diff=2071&amp;oldid=prev"/>
		<updated>2005-06-25T14:59:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Linux Shell Commands]]&lt;br /&gt;
[[Techniques]]: [[Linux]]: [[losetup]]&lt;br /&gt;
==Documentation==&lt;br /&gt;
*Section: [[Linux manpages section 8|MAINTENANCE COMMANDS (8)]] &lt;br /&gt;
===NAME===&lt;br /&gt;
[[losetup]] - set up and control loop devices &lt;br /&gt;
===SYNOPSIS===&lt;br /&gt;
*Get info: &lt;br /&gt;
:[[losetup]] &amp;#039;&amp;#039;loop_device&amp;#039;&amp;#039; &lt;br /&gt;
*Delete loop: &lt;br /&gt;
:[[losetup]] &amp;#039;&amp;#039;&amp;#039;-d&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;loop_device&amp;#039;&amp;#039; &lt;br /&gt;
* Print name of first unused loop device: &lt;br /&gt;
:[[losetup]] &amp;#039;&amp;#039;&amp;#039;-f&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Setup loop device: &lt;br /&gt;
:[[losetup]] [{&amp;#039;&amp;#039;&amp;#039;-e&amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039;-E&amp;#039;&amp;#039;&amp;#039;} &amp;#039;&amp;#039;encryption&amp;#039;&amp;#039;] [&amp;#039;&amp;#039;&amp;#039;-o&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;offset&amp;#039;&amp;#039;] [&amp;#039;&amp;#039;&amp;#039;-p&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;pfd&amp;#039;&amp;#039;] {-f|&amp;#039;&amp;#039;loop_device&amp;#039;&amp;#039;} &amp;#039;&amp;#039;file&amp;#039;&amp;#039; &lt;br /&gt;
===DESCRIPTION===&lt;br /&gt;
losetup is used to associate loop devices with regular files or block devices, to detach loop devices and to query the status of a loop device. If only the loop_device argument is given, the status of the corresponding loop device is shown. &lt;br /&gt;
===Encryption===&lt;br /&gt;
 It is possible to specify transfer functions (for encryption/decryption or other purposes) using one of the &amp;#039;&amp;#039;&amp;#039;-E&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;-e&amp;#039;&amp;#039;&amp;#039; options. There are two mechanisms to specify the desired encryption: by number and by name. If an encryption is specified by number then one has to make sure that the Linux kernel knows about the encryption with that number, probably by patching the kernel. Standard numbers that are always present are 0 (no encryption) and 1 (XOR encryption). When the cryptoloop module is loaded (or compiled in), it uses number 18. This cryptoloop module will take the name of an arbitrary encryption type and finds the module that knows how to perform that encryption. (Thus, either one uses a number different from 18 with the &amp;#039;&amp;#039;&amp;#039;-E&amp;#039;&amp;#039;&amp;#039; option, or one uses a name with the &amp;#039;&amp;#039;&amp;#039;-e&amp;#039;&amp;#039;&amp;#039; option.) &lt;br /&gt;
===OPTIONS===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--delete&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;--detach&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-d&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:detach the file or device associated with the specified loop device. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;-E&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;encryption_type&amp;#039;&amp;#039;&lt;br /&gt;
:Enable data encryption with specified number. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--encryption&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-e encryption&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Enable data encryption with specified name. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;-f&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Find the first unused loop device. If a &amp;#039;&amp;#039;file&amp;#039;&amp;#039; argument is present, use this device. Otherwise, print its name. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--nohashpass&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Do not hash the password. By default, Debian systems run the password through a hash function, non-Debian systems tend not to. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--offset&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-o&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;offset&amp;#039;&amp;#039;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;-o&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;offset&amp;#039;&amp;#039;&lt;br /&gt;
:The data start is moved &amp;#039;&amp;#039;offset&amp;#039;&amp;#039; bytes into the specified file or device. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--pass-fd&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-p&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;num&amp;#039;&amp;#039;&lt;br /&gt;
:Read the passphrase from file descriptor with number &amp;#039;&amp;#039;num&amp;#039;&amp;#039; instead of from the terminal. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--keybits&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-k&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;num&amp;#039;&amp;#039;&lt;br /&gt;
:set the number of bits to use in key to &amp;#039;&amp;#039;num&amp;#039;&amp;#039;. &lt;br /&gt;
===RETURN VALUE===&lt;br /&gt;
losetup returns 0 on success, nonzero on failure. When losetup displays the status of a loop device, it returns 1 if the device is not configured and 2 if an error occurred which prevented losetup from determining the status of the device. &lt;br /&gt;
===FILES===&lt;br /&gt;
 /dev/loop0, /dev/loop1, ...   loop devices (major=7)&lt;br /&gt;
===EXAMPLE===&lt;br /&gt;
If you are using the loadable module you must have the module loaded first with the command &lt;br /&gt;
 # [[insmod]] loop.o &lt;br /&gt;
Maybe also encryption modules are needed. &lt;br /&gt;
 # [[insmod]] des.o&lt;br /&gt;
 # [[insmod]] cryptoloop.o &lt;br /&gt;
The following commands can be used as an example of using the loop device. &lt;br /&gt;
 # [[dd]] if=/dev/zero of=/file bs=1k count=100&lt;br /&gt;
 # [[losetup]] -e des /dev/loop0 /file&lt;br /&gt;
 Password:&lt;br /&gt;
 Init (up to 16 hex digits):&lt;br /&gt;
 # [[mkfs]] -t ext2 /dev/loop0 100&lt;br /&gt;
 # [[mount]] -t ext2 /dev/loop0 /mnt&lt;br /&gt;
  ...&lt;br /&gt;
 # [[umount]] /dev/loop0&lt;br /&gt;
 # [[losetup]] -d /dev/loop0&lt;br /&gt;
If you are using the loadable module you may remove the module with the command &lt;br /&gt;
 # [[rmmod]] loop &lt;br /&gt;
===RESTRICTION===&lt;br /&gt;
DES encryption is painfully slow. On the other hand, XOR is terribly weak. Both are insecure nowadays. Some ciphers may require a licence for you to be allowed to use them.&lt;br /&gt;
==Edit History==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2005-06-25&amp;#039;&amp;#039;&amp;#039; Transcribed from Linux man page (Ubuntu hoary) via Konqueror man:/losetup.&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>