PDA

View Full Version : edit linuxrc in minirt.gz to boot with squashfs



nvgringo
02-03-2007, 03:37 AM
Has anyone tried to edit the linuxrc in 5.1.1 yet to boot with squashfs? The conversations on the subject in the forums relate to earlier versions of knoppix. There are new and interesting things related to cloop:

# New in Knoppix 5.1: cloop preload cache
# Default values
case "$MEDIUM" in
*[Cc][Dd]*) CLOOP_PRELOAD="preload=64" ;;
*[Dd][Vv][Dd]*) CLOOP_PRELOAD="preload=128" ;;
*) CLOOP_PRELOAD="preload=32" ;;
esac

# cloop improves seek performance when caching the directory index
# (first few MB) of each cloop file.
# Default values depending on ramsize, override with cloop_preload=numblocks at boot.
if test "$TOTALMEM" -lt 128000; then
# up to 128MB: No preload.
CLOOP_PRELOAD=""
elif test "$TOTALMEM" -lt 256000; then
# less than 256MB: About 4MB preload w/ blocksize 128k
CLOOP_PRELOAD="preload=32"
elif test "$TOTALMEM" -lt 512000; then
# less than 512MB: About 8MB preload w/ blocksize 128k
CLOOP_PRELOAD="preload=64"
elif test "$TOTALMEM" -lt 1024000; then
# less than 1GB: About 16MB preload w/ blocksize 128k
CLOOP_PRELOAD="preload=128"
else
# 1GB Ram or more
# About 32MB w/ blocksize 128k
CLOOP_PRELOAD="preload=256"
fi

I imagine that I would need to comment all of that out. There is also a section called "mount knoppix" I will need to revise that part as well
It is my understanding that /static ash is now a symbolic link to busybox. Can someone verify that? If it is not how could I make it such? I think that it is correct that Debian's version of Busybox supports filesystems >2 gig. LFS=y.

knopx4me
02-27-2007, 08:56 PM
SIDUX is using squashfs. I think it is not just modifying the minirt file. I suggest you see it yourself:

http://www.sidux.org/

However, I noticed that less packages can be put in a CD with squashfs.

markpreston
02-28-2007, 01:45 AM
According to Thomas Matejicek ( http://www.slax.org )
squashfs can be patched with LZMA compression, so compressed filesystems are 30% smaller.

See also
http://www.squashfs-lzma.org/

Regards,
Mark Preston