Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Cant find KNOPPIX filesystem

  1. #11
    Member registered user
    Join Date
    Jul 2003
    Posts
    48

    cloop vs squashfs

    since one changes the kernel very often on remastering,then why not switch to squashfs instead of cloop ;running time are quite similar ,compression is a bit better (5%) and one is no more
    dependent on this "version-kernel-cloop" problem.A squashfs image can be read by any kernel-squashfs-vanilla.
    There is only 2 lines to replace by 1 line in miniroot.gz to reflect
    mounting loopback image.sqfs instead of image.cloop
    (see Armando's PrometeusX.iso)
    Get squashfs -2.0 from Philip Lougher at sfnet.
    It works beautifully .(see physicstools-1.3-sqfs-us.iso )

  2. #12
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    Would be nice to see an alterante method for using squashfs in the remastering how-to.

  3. #13
    Member registered user
    Join Date
    Jul 2003
    Posts
    48

    remaster knoppix with squashfs

    KnoppixRemastering-with-squashfs-guidance.
    Foreword.
    This is not a howto ;there are so many good knoppixremasteringhowto around ,so I only discuss the main points with enough details so anyone could
    switch from cloop-to-squashfs remastering.
    Introduction.
    Let me put aside zisofs,zftree ,but only give here a comparison of cloop and squashfs :compression ratio and runtime .Let me call
    knoppix.clp the usual knoppix image obtained with cloopcompress the isofile (or mkiso piped thru createcompressfs )
    knoppix.sqf the knoppix image of the same structure using mksquashfs.
    compression ratio sqfs 689655Kb in 34 minutes
    cloop 729163Kb in 43.7minutes (a small gain of 5% and 10 min in favor of sqfs ) Source=2082Mb
    runtime
    In order to avoid errors induced by bad behaviour of cdrom-reading (aleas due to dust ,mechanics & feedback-control )the runtime measures are
    done directly on running knoppix-image sitting on hard drive in both compression cases .In both cases mkzftree of a huge /usr is measured.
    runtime-sqfs 27min25s (985.3Mb/1769Mb)
    runtime-cloop 27min59s (985Mb/1785Mb)
    Almost no difference in runtime.So we must consider other factors to favor the one or the other.
    The cloop are compiled in modules ,so don't touch the kernel ;but in fact it is almost impossible -without too much contorsion if ever possible-to mount
    the clooped image with another-version-kernel.One needs to boot with the same-version-numbered-kernel to be able to insmod cloop !
    The squashfs has to be compiled with patched kernel ;but any other-version-patched-kernel can "mount loopback" the image.Now,each time one changes
    the kernel,one needs at least patch modifying the cmdline-length from 256 to 512 characters (a line in /linux/include/asm-i386/setup.h ) to keep
    Klaus'idea of having a flexible command line .For amateur-developer-remastering the last solution makes life easy !
    Philosophy
    To switch from cloop to squashfs just replace the make-image. and of course the loopback mount the image during booting phase
    Requirements
    1 Get the kernel and the squashfs patch (squashfs.sourcefore.net ; latest version 2.0-alpha) .Modify setup.h as said ,patch with squashfs,compile.
    compile the "mksquashs-tools" directory to get the binary "mksquashfs" and put in /usr/bin .
    2 Get a copy of /KNOPPIX to some /remaster ;replace in /remaster the following directories to reflect the new kernel
    /boot /lib/modules/2.6.x /usr/src/linux-2.6.x (this is standard kernel playing game ) and any eventual add/remove apps !
    3 create the image: mksquashfs /remaster /outside-remaster-dir/knoppix
    This line replaces the mkisofs ...| create_compressed_fs ...>knoppix.
    4 modify linuxrc (from miniroot.gz or initrd.gz ) by commenting out the lines
    (after scsi driver,at the paragraph "try to find cdrom" )
    #insmod -f /modules/cloop.*o file=/cdrom/KNOPPIX/KNOPPIX
    #mountit /dev/cloop /KNOPPIX "-o ro" || FOUND_KNOPPIX=""
    insert there a line
    mount /cdrom/KNOPPIX/KNOPPIX /KNOPPIX -o loop ,ro || FOUND_KNOPPIX=""
    This mounts the image as squashfs tree.The rest is independant of compression mechanism.
    Do not forget to change vmlinuz (new) when building the isocd.Some other version uses insmod cloop and losetup the loopback file ,it 's quite similar.
    The Fun
    By remaking the sqfs images of diferents knoppix-like-distro (cebit-3.4,quantian-openmosix,pollix,kurumin,physicstools...) with kernel-2.6.6 and put them
    all in a /KNOPPIX ext2-directory ,I am able to boot any of them with just a boot-cd-15Mb and typing ...a label !
    Have fun,
    wangji

  4. #14
    Member registered user
    Join Date
    Jul 2003
    Posts
    48

    remaster knoppix with squashfs

    KnoppixRemastering-with-squashfs-guidance.
    Foreword.
    This is not a howto ;there are so many good knoppixremasteringhowto around ,so I only discuss the main points with enough details so anyone could
    switch from cloop-to-squashfs remastering.
    Introduction.
    Let me put aside zisofs,zftree ,but only give here a comparison of cloop and squashfs :compression ratio and runtime .Let me call
    knoppix.clp the usual knoppix image obtained with cloopcompress the isofile (or mkiso piped thru createcompressfs )
    knoppix.sqf the knoppix image of the same structure using mksquashfs.
    compression ratio sqfs 689655Kb in 34 minutes
    cloop 729163Kb in 43.7minutes (a small gain of 5% and 10 min in favor of sqfs ) Source=2082Mb
    runtime
    In order to avoid errors induced by bad behaviour of cdrom-reading (aleas due to dust ,mechanics & feedback-control )the runtime measures are
    done directly on running knoppix-image sitting on hard drive in both compression cases .In both cases mkzftree of a huge /usr is measured.
    runtime-sqfs 27min25s (985.3Mb/1769Mb)
    runtime-cloop 27min59s (985Mb/1785Mb)
    Almost no difference in runtime.So we must consider other factors to favor the one or the other.
    The cloop are compiled in modules ,so don't touch the kernel ;but in fact it is almost impossible -without too much contorsion if ever possible-to mount
    the clooped image with another-version-kernel.One needs to boot with the same-version-numbered-kernel to be able to insmod cloop !
    The squashfs has to be compiled with patched kernel ;but any other-version-patched-kernel can "mount loopback" the image.Now,each time one changes
    the kernel,one needs at least patch modifying the cmdline-length from 256 to 512 characters (a line in /linux/include/asm-i386/setup.h ) to keep
    Klaus'idea of having a flexible command line .For amateur-developer-remastering the last solution makes life easy !
    Philosophy
    To switch from cloop to squashfs just replace the make-image. and of course the loopback mount the image during booting phase
    Requirements
    1 Get the kernel and the squashfs patch (squashfs.sourcefore.net ; latest version 2.0-alpha) .Modify setup.h as said ,patch with squashfs,compile.
    compile the "mksquashs-tools" directory to get the binary "mksquashfs" and put in /usr/bin .
    2 Get a copy of /KNOPPIX to some /remaster ;replace in /remaster the following directories to reflect the new kernel
    /boot /lib/modules/2.6.x /usr/src/linux-2.6.x (this is standard kernel playing game ) and any eventual add/remove apps !
    3 create the image: mksquashfs /remaster /outside-remaster-dir/knoppix
    This line replaces the mkisofs ...| create_compressed_fs ...>knoppix.
    4 modify linuxrc (from miniroot.gz or initrd.gz ) by commenting out the lines
    (after scsi driver,at the paragraph "try to find cdrom" )
    #insmod -f /modules/cloop.*o file=/cdrom/KNOPPIX/KNOPPIX
    #mountit /dev/cloop /KNOPPIX "-o ro" || FOUND_KNOPPIX=""
    insert there a line
    mount /cdrom/KNOPPIX/KNOPPIX /KNOPPIX -o loop ,ro || FOUND_KNOPPIX=""
    This mounts the image as squashfs tree.The rest is independant of compression mechanism.
    Do not forget to change vmlinuz (new) when building the isocd.Some other version uses insmod cloop and losetup the loopback file ,it 's quite similar.
    The Fun
    By remaking the sqfs images of diferents knoppix-like-distro (cebit-3.4,quantian-openmosix,pollix,kurumin,physicstools...) with kernel-2.6.6 and put them
    all in a /KNOPPIX ext2-directory ,I am able to boot any of them with just a boot-cd-15Mb and typing ...a label !
    Have fun,
    wangji

  5. #15
    Senior Member
    Join Date
    Nov 2003
    Posts
    171
    wangji,

    I struggle with the same problem the morphix people did. How do you mount back the squashfs filesystem if the version of ash does not support the "-o loop" option?

    There is much more to be documented about the editing of the miniroot for each kernel as well as the changes in linuxrc.

    Please can you elaborate a little bit more?

  6. #16
    Member registered user
    Join Date
    Jul 2003
    Posts
    48

    mountin loopback during booting_ramfs_phase

    short answer : attach your image to the loopback device before mount ! I 've not tried morphix_remaster (will do for fun).so here is a
    long answer:
    On most knoppix-standard-version-3.3-like ,I just do this
    if test -n "$FOUND_KNOPPIX" -a -f /cdrom/KNOPPIX/$IMAGE; then
    # DEBUG
    # echo "6" > /proc/sys/kernel/printk
    #insmod -f /modules/cloop.o file=/cdrom/KNOPPIX/KNOPPIX
    #mountit /dev/cloop /KNOPPIX "-o ro" || FOUND_KNOPPIX=""
    mount /cdrom/KNOPPIX/$IMAGE /KNOPPIX -o loop,ro || FOUND_KNOPPIX=""
    fi
    -----most of them work ---
    on peanut-9.6 ,which rather follow the jaco-Greef 's script-like
    so ,do not have similarity with knoppix ,I just modify as follow:
    original >
    > mount -r -t iso9660 $drive /mnt/cd 2>/dev/null
    > if [ -e /mnt/cd/peanut.clp ]
    > then
    > insmod /mnt/cd/cloop.o file=/mnt/cd/peanut.clp 2>/dev/null
    > mount -r /dev/cloop /mnt/cdclp 2>/dev/null
    ---then modified as follow
    for drive in `echo /dev/hd? /dev/hd?[1-9] /dev/hd?[1-9][0-9] /dev/scd? /dev/sr? /dev/sd?`
    do
    if ! mount -r -t ext3 $drive /mnt/tmp 2>/dev/null
    then continue
    elif [ -e /mnt/tmp/KNOPPIX/peanut.sqfs ]
    then
    umount /mnt/tmp
    mount -r -t ext3 $drive /mnt/cd 2>/dev/null
    if [ -e /mnt/cd/KNOPPIX/peanut.sqfs ]
    then
    # insmod /mnt/cd/cloop.o file=/mnt/cd/peanut.clp 2>/dev/null
    losetup /dev/loop1 /mnt/cd/KNOPPIX/peanut.sqfs
    mount -r -t squashfs /dev/loop1 /mnt/cdclp 2>/dev/null
    ----
    and it works !
    If by bad chance ,your "ash" do not understand
    the command losetup ...(simply loopback not included on compile) you have to pick up from some other iso
    if you don't want to compile busybox yourself.(not so hard)
    HTH

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Can't find KNOPPIX filesystem
    By strtt in forum Customising & Remastering
    Replies: 2
    Last Post: 06-09-2005, 06:44 PM
  2. DVD - Can't find a KNOPPIX Filesystem
    By rabinhood in forum Customising & Remastering
    Replies: 1
    Last Post: 02-21-2005, 09:39 PM
  3. can't find Knoppix filesystem
    By colonius in forum Customising & Remastering
    Replies: 1
    Last Post: 11-20-2004, 06:09 PM
  4. Can't find KNOPPIX filesystem
    By pskipw in forum General Support
    Replies: 0
    Last Post: 05-07-2004, 06:16 AM
  5. can't find KNOPPIX filesystem
    By sfit in forum Customising & Remastering
    Replies: 1
    Last Post: 03-18-2004, 05:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB picture

HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB

$59.00



G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5

G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5" SSD 0G5T03 SSDSC2BA800G3E

$55.00



Dell PowerEdge R640 Server | 2x Gold 6132 28 Cores | H730p | Choose RAM / DRIVES picture

Dell PowerEdge R640 Server | 2x Gold 6132 28 Cores | H730p | Choose RAM / DRIVES

$2530.00



### MZ-7KE1T0 Samsung 850 Pro Series 1TB 2.5 inch SATA3 SSD ### picture

### MZ-7KE1T0 Samsung 850 Pro Series 1TB 2.5 inch SATA3 SSD ###

$105.00



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$19.99



Intel DC S3510 Series 120GB SSD 2.5

Intel DC S3510 Series 120GB SSD 2.5" 6Gb/s SATA Solid State Drive SSDSC2BB120G6K

$9.99



Western Digital PC SN730 256GB NVMe SDBQNTY-256G M.2 2280 PCIe Solid State (SSD) picture

Western Digital PC SN730 256GB NVMe SDBQNTY-256G M.2 2280 PCIe Solid State (SSD)

$16.00



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture

Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive

$249.99



Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5

Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5" SATA III 6GB/s for PC/MAC Lot

$188.09