-
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!
-
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.
-
No luck here yet.
I'm getting a message from busybox/ash that no spare loop devices are available?
-
Senior Member
registered user

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-
-
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.
-

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.

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

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)
-
Thanks for the responses. It looks like GRML will be a good place to start.
Similar Threads
-
By nvgringo in forum Customising & Remastering
Replies: 0
Last Post: 05-14-2007, 01:12 AM
-
By borgelite in forum German Forum
Replies: 2
Last Post: 05-05-2006, 10:19 AM
-
By noob001 in forum Customising & Remastering
Replies: 4
Last Post: 05-04-2006, 08:25 PM
-
By borgelite in forum Customising & Remastering
Replies: 2
Last Post: 03-24-2006, 05:18 PM
-
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
-
Forum Rules

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$174.99

AMD Ryzen 7 PRO 8700GE 8-Core/16-Thread Up to 5.1GHz AM5 (FL1)
$189.00

Lenovo Thinkpad E15 Gen 2 8GB RAM 256GB SSD Intel Core [email protected] Laptop
$220.36

HP EliteBook 840 G8 Laptop 14” FHD Core i5 16GB RAM 256GB SSD Windows 11 Pro
$299.99

Apple Macbook Pro 13" M1 8-Core 16GB 512GB - Good
$464.99

Intel Core i9-9900K Coffee Lake 8-Core, 16-Thread, 3.6 GHz (LGA 1151)
$189.99

Intel Core i7-6700 SR2L2 3.40GHz 8 MB 4-Core LGA1151 Socket CPU Processor
$27.99

AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused
$395.95

Intel Core i7-10700K 3.80GHz 8 Core SRH72 16 Thread LGA 1200
$275.00

Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11
$250.00