fusecloop is FUSE mounter for compressed loop images.
Theese images can be found on Knoppix and Knoppix like CD's
It you have ISO image of KNOPPIX and you want to access the
content of it's filesystem, you'll do the following steps:
1. |
mount -t iso9660 -o loop knoppix.iso /mnt/kn1
|
Mount the ISO filesystem to access the content of KNOPPIX cd.
|
2. |
modprobe cloop file=/mnt/kn1/KNOPPIX/KNOPPIX
|
Load dynamic uncompression module, passing compressed KNOPPIX
image to it as an argument.
|
3. |
mount -o loop,ro /dev/cloop /mnt/kn3
|
Mount filesystem indide compressed image
|
After theese steps you will have KNOPPIX filesystem mounted to /mnt/kn3.
However, this method have some disadvantages:
-
You need root access to perform each of this operation.
-
You need to find and compile cloop module for each kernel.
-
Mounting untrusted image may compromise your system.
You can cope with theese disadvantages by using FUSE --
technology that allows filesystem code to run in userspace
in secure way. FUSE allows non-root users to mount filesystem
visible only to them and crash of the filesystem will affect
only that user.
Accessing KNOPPIX image throw the FUSE is performed by the following steps:
1. |
~/bin/mountlo -t iso9660 knoppix.iso ~/mnt/kn1
|
Mount the ISO filesystem to access the content of KNOPPIX cd.
|
2. |
~/bin/fusecloop ~/mnt/kn1/KNOPPIX/KNOPPIX \
~/mnt/kn2 -o nonempty
|
Start fusecloop which will dynamically uncompress data to ~/mnt/kn2.
|
3. |
~/bin/mountlo -o ro ~/mnt/kn2 ~/mnt/kn3
|
Mount filesystem indide compressed image
|
Every part of this chain (except of FUSE itself) will
run from userspace.
Disadvantages:
-
It will work slow.
-
You need to have FUSE installed in enabled.
-
fusecloop module is in early alpha version and it is very unstable.
Current version is 0.10.7 alpha.
|