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
  •  


Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$60.00



External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac picture

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac

$19.99



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$545.25



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i7 Up To 32GB RAM 1TB SSD Windows 11 Pro

$330.73



SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM picture

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM

$159.99



1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive picture

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive

$86.95



Acer Predator Helios Neo 16S AI 16

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb

$1746.47



Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot picture

Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot

$139.99



Seagate Desktop 1TB/1000GB SATA 3.5

Seagate Desktop 1TB/1000GB SATA 3.5" HDD Hard Drive

$29.99



Dell Latitude 15.6” FHD Core i5 Laptop PC Up To 32GB RAM 1TB SSD Windows 11 picture

Dell Latitude 15.6” FHD Core i5 Laptop PC Up To 32GB RAM 1TB SSD Windows 11

$334.67