Joined: Nov. 2005
||Posted: Oct. 13 2006,23:51
APOLOGIES! INCOMPLETE ADVICE!
Anshik, the primary Knoppix boot script is "linuxrc". This script is packed into file "minirt24.gz." which is on your bootfloppy if you use a floppy, or in folder "BOOT" on your CD or USB stick if you use ISOLINUX version of DSL. SYSLINUX version slightly different.
"minirt24.gz" is compressed. On the bootfloppy, it is less than 1 MB but when it is decompressed it occupies 3-4 MB of drive space. Thus you must first copy the ".gz" somewhere else to decompress if you are starting with a floppy. Then uncompress with:
Above command will erase "minirt24.gz" and overwrite it with 3-4MB "minirt24". Now, "minirt24" is a ramdrive image -- ext2 filesystem. To access the files within this image, mount the image with
mount -t ext2 -o loop minirt24 /t
where /t is a temporary folder created just for this mount [["mkdir /t"]].
After above, you will find file "linuxrc" in folder /t, where you can edit it. Since the ramdrive image is for a 3-4 MB drive, the folder /t must not contain more than 3-4 MB; but there is soemthing like 500 KB of free space so you can do a ton of script editing without modifying the ramdrive parameters. Unmounting the ramdrive then is all that is needed to leave the new contents in the image. Than recompress the ramdrive image and you are done!
This is only for people who want to do really heavy Linux scripting. Unnecessary for most for sure.