<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://mail.knoppix.net/wiki3/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://mail.knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Volkan+YAZICI</id>
		<title>Knoppix Documentation Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://mail.knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Volkan+YAZICI"/>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Special:Contributions/Volkan_YAZICI"/>
		<updated>2026-09-19T11:10:24Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://mail.knoppix.net/wiki/Cloop</id>
		<title>Cloop</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/Cloop"/>
				<updated>2007-10-27T11:48:06Z</updated>
		
		<summary type="html">&lt;p&gt;Volkan YAZICI: Mention about zlib_inflate/deflate just before issuing insmod cloop.ko&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
'''Cloop''', is a [[http://www.wikipedia.org/wiki/Kernel Kernel] (computers)] [[http://www.wikipedia.org/wiki/module module]] to add support for [[http://www.wikipedia.org/wiki/filesystem filesystem]-independent,]&lt;br /&gt;
transparently decompressed, read-only, block devices.&lt;br /&gt;
&lt;br /&gt;
= Where to download =&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;s&amp;gt;[http://developer.linuxtag.net/knoppix/sources/ http://developer.linuxtag.net/knoppix/sources/]&amp;lt;/s&amp;gt; (This link doesn't work) &amp;lt;br&amp;gt;&lt;br /&gt;
* [http://debian-knoppix.alioth.debian.org/sources/ http://debian-knoppix.alioth.debian.org/sources/] (Alternative link)&lt;br /&gt;
&lt;br /&gt;
Use version 1.xx if you have a 2.4 kernel, or version 2.xx for 2.6 kernel. Versions 0.xx are too old, probably won't work well.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
 make KERNEL_DIR=/path/to/linux-kernel/sources&lt;br /&gt;
&lt;br /&gt;
Issue these commands as [[root]] &lt;br /&gt;
 mkdir -p /lib/modules/misc &amp;amp;&amp;amp; cp cloop.ko /lib/modules/misc/&lt;br /&gt;
 depmod -a&lt;br /&gt;
 mknod /dev/cloop b 240 0&lt;br /&gt;
 &lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
== Creating a compressed image: ==&lt;br /&gt;
&lt;br /&gt;
 create_compressed_fs image blocksize &amp;gt; image.cloop_compressed&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
blocksize must be a multiple of 512 bytes. Make sure you have enough&lt;br /&gt;
swap to hold the entire compressed image in virtual memory! &lt;br /&gt;
&lt;br /&gt;
The command may also be used in [[Linux]] [[command line]] pipe sequences.  Use &amp;quot;-&amp;quot; as the image filename.   The dash, &amp;quot;-&amp;quot; will cause the command to read data from stdin, as in&lt;br /&gt;
&lt;br /&gt;
 mkisofs -r datadir | create_compressed_fs - 65536 &amp;gt; datadir.iso.compressed&lt;br /&gt;
&lt;br /&gt;
== Mounting a compressed image (see above for device creation): ==&lt;br /&gt;
&lt;br /&gt;
 # Unless zlib_deflate/inflate features are built-in to your kernel, you may&lt;br /&gt;
 # also need to install related kernel modules.&lt;br /&gt;
 modprobe zlib_inflate&lt;br /&gt;
 modprobe zlib_deflate&lt;br /&gt;
&lt;br /&gt;
 insmod cloop.ko file=/path/to/compressed/image&lt;br /&gt;
&lt;br /&gt;
 [[mount]] -o ro -t whatever /dev/cloop /mnt/compressed&lt;br /&gt;
&lt;br /&gt;
== If you boot from the LiveDVD and want to mount a compressed image, which you have saved on the disc: ==&lt;br /&gt;
Check with the 'mount' command which /dev/cloopX  (where X goes from 0 to 7, because cloop can do just 8 devices)&lt;br /&gt;
are already in use.&lt;br /&gt;
Then mount your compressed image to a cloop device via&lt;br /&gt;
&lt;br /&gt;
 iosetup /dev/cloopX /path/to/compressed/image&lt;br /&gt;
&lt;br /&gt;
 [[mount]] -o ro /dev/cloopX /mnt/compressed&lt;br /&gt;
&lt;br /&gt;
[[Category:Useful Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Volkan YAZICI</name></author>	</entry>

	</feed>