about the knoppix image


Forum: Other Help Topics
Topic: about the knoppix image
started by: elden

Posted by elden on May 09 2006,10:50
uhmm, how can i view, or extract the knoppix file?
Posted by pr0f3550r on May 09 2006,11:36
Code Sample
dsl@box:~$ less /cdrom/KNOPPIX/KNOPPIX

Posted by elden on May 09 2006,12:30
dude, you took it literally, or in the wrong way. let me rephrase
my sentence. what i meant to say is that how do i view the contents of the knoppix file(like seeing a directory structure), not to view it byte by byte. :p

Posted by clacker on May 09 2006,13:46
The KNOPPIX file is a compressed file system.  You need to mount it and then view it like any other mount.  It's read only, by the way.

sudo mount -o loop=/dev/cloop7 /cdrom/KNOPPIX/KNOPPIX /mnt/test
ls /mnt/test
ls /mnt/test/usr/lib/modules/2.4.26/kernel/drivers/
sudo umount/test


You can use a lowest unused cloop you have rather than cloop7, I did that in case you have some uci's loaded.

Posted by pr0f3550r on May 09 2006,18:43
cloop is already mounted:
Code Sample
dsl@box:~$ mount
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (rw)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=98864k,size=94736k

So, in my view 'ls -al /KNOPPIX' should give the same result as the one you just posted.

Posted by clacker on May 09 2006,22:31
You're correct if all you want to look at is the KNOPPIX file that you are currently using.  I sometimes want to look inside other versions of dsl or KNOPPIX without rebooting and the technique I showed allows you to do that.
Posted by elden on May 10 2006,12:11
Quote (clacker @ May 09 2006,09:46)
The KNOPPIX file is a compressed file system.  You need to mount it and then view it like any other mount.  It's read only, by the way.

sudo mount -o loop=/dev/cloop7 /cdrom/KNOPPIX/KNOPPIX /mnt/test
ls /mnt/test
ls /mnt/test/usr/lib/modules/2.4.26/kernel/drivers/
sudo umount/test


You can use a lowest unused cloop you have rather than cloop7, I did that in case you have some uci's loaded.

dude, that didn't worked. anyway, you kinda gave me an idea. thanx anyway for telling me its a compressed file system. here's my solution to my own problem.

i researched about compressed file systems, eventually ending up at cloop-utils. i installed it in my mandrake and heres what i did:


mkdir /tmp/dsl-cd
mount -o loop -r /mnt/cdrom/dsl-2.3.iso /tmp/knoppix-cd

mkdir /tmp/dsl-cloop
extract_compressed_fs \
  /tmp/dsl-cd/KNOPPIX/KNOPPIX \
   >/var/tmp/dsl-cloop
mount -o loop /var/tmp/dsl-cloop \
  /tmp/dsl-cloop

find /tmp/dsl-cloop -print



feels good to get some ideas and make it work  :;):

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.