Results 1 to 7 of 7

Thread: Help with squashfs please

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    4

    Help with squashfs please

    I'm stuck.

    I've compiled squashfs v2.2 into my kernel, issued: mksquashfs myfiletree/ /isoimage/KNOPPIX/KNOPPIX,
    built the iso and boot never finds the KNOPPIX image but drops me into a limited ash shell. I've made several changes to linuxrc in an attempt to mount the KNOPPIX image, but haven't hit on the correct combo. I've tried with squash and loopback as modules and compiled into the kernel. Is there an example linuxrc with squashfs implemented or a howto I can study?

    I searched the forum, but didn't grok the references I found. This remaster is based on an older knoppix isolinux previously based on kernel 2.6.7 - I'm remastering 2.6.12 and need to escape from cloop hell!

    Thanks!

  2. #2
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    You can't use ash in the original minirt.gz to mount your squashfs image. Reason being is that it doesn't support the "-o loop" command needed. You'll have to replace with busybox or similar that has the -o loop command supported. I use busybox-1.01, but I believe 1.1.0 is out.

  3. #3
    Junior Member
    Join Date
    Jan 2006
    Posts
    4
    No luck here yet.

    I'm getting a message from busybox/ash that no spare loop devices are available?

  4. #4
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272
    Quote Originally Posted by firnsy
    You can't use ash in the original minirt.gz to mount your squashfs image. Reason being is that it doesn't support the "-o loop" command needed. You'll have to replace with busybox or similar that has the -o loop command supported. I use busybox-1.01, but I believe 1.1.0 is out.
    Firmsy:
    Would you please be so kind to explain this little bit better?

    I'm a little bit confused of this squasfs. I'm using initramfs and also that don't accept loopback image but cpio image. So I can't mount it like initrd:
    Code:
    # gunzip minirt.gz
    # mount -o loop minirt /mount_point
    but:
    Code:
    # gunzip minirt.gz
    # cpio -i < minirt
    (unpacks in the same direcortory where unzipped minirt is)

    Kanotix seems to use squasfs and has busybox in minirt's /static directory. Also ash is there as a symlink to busybox.

    I would like to test squasfs, too, but what are the steps to do? I have also compiled squasfs as a module in my kernel.

    -tapsa-

  5. #5
    Junior Member
    Join Date
    Jan 2006
    Posts
    4
    Is there somewhere a downloadable working remaster with squashfs enabled that is based on a Knoppix 3.X structure?

    My needs are simple. I have a working remaster made that is strictly for pendrive installation. However, I'm limited to kernel 2.6.7, since I can't seem to get a new cloop.o module compiled for later kernels (I get an invalid format error with insmod). Hence my interest in squashfs.

  6. #6
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    Quote Originally Posted by tr
    I'm a little bit confused of this squashfs. I'm using initramfs and also that don't accept loopback image but cpio image. So I can't mount it like initrd:
    Code:
    # gunzip minirt.gz
    # mount -o loop minirt /mount_point
    The whole benefit (I believe of initramfs) is that you don't have to keep loopback mounting it. Similarly to the way you have the KNOPPIX filesystem in a seperate directory during remastering you can have a seperate MINIROOT filesystem directory, that way whenever you make changes to the MINIROOT filesystem you just recompress it. In my opinion that beats the, unziping, loopback mounting, make changes, unmounting, compressing cycle any day.

    Quote Originally Posted by tr
    Kanotix seems to use squasfs and has busybox in minirt's /static directory. Also ash is there as a symlink to busybox.

    I would like to test squasfs, too, but what are the steps to do? I have also compiled squasfs as a module in my kernel.

    -tapsa-
    That's similar to what I did, compile busybox ensuring you have the essential options compiled in, the big one obviously to select is mount with loopback support, copy the busybox binary to /static, backup ash if you want, create a symlink from ash to busybox. You'll have to modify linuxrc slightly, I believe the function is mount_knoppix() where the KNOPPIX file is actually mounted. The syntax will be of the form (or to the effect of)
    Code:
    mount -t squashfs -o loop /cdrom/KNOPPIX/KNOPPIX /KNOPPIX
    Quote Originally Posted by JeffElkins
    Is there somewhere a downloadable working remaster with squashfs enabled that is based on a Knoppix 3.X structure?

    My needs are simple. I have a working remaster made that is strictly for pendrive installation. However, I'm limited to kernel 2.6.7, since I can't seem to get a new cloop.o module compiled for later kernels (I get an invalid format error with insmod). Hence my interest in squashfs.
    Kanotix would be starting point I'd imagine from what others have mentioned, grml is one I think, I will have one available in the next few weeks www.securixlive.com (but i'm sure you want it now)

  7. #7
    Junior Member
    Join Date
    Jan 2006
    Posts
    4
    Thanks for the responses. It looks like GRML will be a good place to start.

Similar Threads

  1. boot remaster with squashfs
    By nvgringo in forum Customising & Remastering
    Replies: 0
    Last Post: 05-14-2007, 01:12 AM
  2. KNOPPIX und Squashfs
    By borgelite in forum German Forum
    Replies: 2
    Last Post: 05-05-2006, 10:19 AM
  3. Squashfs how to?
    By noob001 in forum Customising & Remastering
    Replies: 4
    Last Post: 05-04-2006, 08:25 PM
  4. squashfs boot problem
    By borgelite in forum Customising & Remastering
    Replies: 2
    Last Post: 03-24-2006, 05:18 PM
  5. remaster knoppix with squashfs
    By wangji in forum Customising & Remastering
    Replies: 13
    Last Post: 07-20-2004, 09:14 AM

Posting Permissions

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


Intel XEON E5-2699 V3 CPU PROCESSOR 18 CORE 2.30GHZ 45MB L3 CACHE 145W SR1XD picture

Intel XEON E5-2699 V3 CPU PROCESSOR 18 CORE 2.30GHZ 45MB L3 CACHE 145W SR1XD

$45.00



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



AMD Ryzen 9 5950X 16-core 32-thread Desktop Processor picture

AMD Ryzen 9 5950X 16-core 32-thread Desktop Processor

$319.99



Intel Core i5-8500 3 GHz 8 GT/s LGA 1151 Desktop CPU Processor SR3XE picture

Intel Core i5-8500 3 GHz 8 GT/s LGA 1151 Desktop CPU Processor SR3XE

$49.99



Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture

Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...

$619.99



Intel Xeon E5-2697 v2 2.7GHz 30M 12-Core LGA2011 CPU Processor SR19H picture

Intel Xeon E5-2697 v2 2.7GHz 30M 12-Core LGA2011 CPU Processor SR19H

$27.99



Intel Core i5-12400 Desktop Processor With HeatSink picture

Intel Core i5-12400 Desktop Processor With HeatSink

$140.00



Intel Xeon E5-2667V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU picture

Intel Xeon E5-2667V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU

$39.95