Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Friday, February 14, 2020 at 10:25


Also in 2019, I shipped another GNU/Linux multiboot to Kalimantan Island, Indonesia. It was KNOPPIX --the first distro known to bring LiveCD technology--. And once again it was not supported by GLIM Maker. But fortunately, I managed to make it works by custom scripts. You can use scripts below to make KNOPPIX multiboot USB. Happy hacking!

Subscribe to UbuntuBuzz Telegram Channel to get article updates directly.


Get KNOPPIX OS


Download it from knopper.net. I was using version 7.2 CD at that time. It was a very lightweight KNOPPIX with beautiful desktop animations.


grub.cfg



#KNOPPIX
for isofile in ${isopath}/knoppix/KNOPPIX_*.iso; do
  if [ -e "$isofile" ]; then
    menuentry "KNOPPIX >" --class knoppix {
      configfile "${prefix}/inc-knoppix.cfg"
    }
    break
  fi
done

This code represents first page on the bootloader. This code calls next script inc-knoppix.cfg when we select (pressed Enter) on KNOPPIX entry. That entry will appear only if this script found a KNOPPIXblablabla.iso file within /knoppix/ directory. Please take note that the file name are all capital letters.

inc-knoppix.cfg


# KNOPPIX GNU/Linux
for isofile in $isopath/knoppix/KNOPPIX*.iso; do
  if [ ! -e "$isofile" ]; then break; fi
  regexp \
    --set 1:isoname \
    --set 2:version \
    --set 3:arch \
    --set 4:variant \
    "^${isopath}/knoppix/(KNOPPIX([^-]+)-([^-]+)-([^-]+)\.iso)\$" "${isofile}"
  menuentry "KNOPPIX ${version} ${arch} ${variant}" "${isofile}" "${isoname}" --class knoppix {
    set isofile=$2
    set isoname=$3
    bootoptions="bootfrom=/mnt-iso/$isofile  lang=en apm=power-off nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1"    
    echo "Using ${isofile}..."
    loopback loop $isofile
    linux (loop)/boot/isolinux/linux  $bootoptions
    initrd (loop)/boot/isolinux/minirt.gz
  }
done
This code boots up the real things which are two, the kernel file, and the initrd file, in the last lines. Kernel is called by linux command  and initrd by initrd. The bootoptions are the thing that distinguishes KNOPPIX and other distros, as I found (please give corrections if you have) it will not work except with that bootfrom code. Once again, yes, KNOPPIX works with loopback just as Debian as it was derived from Debian.

Icon


Download this KNOPPIX icon and save it as knoppix.png. This icon is what called by the code --class knoppix in the first and second scripts above.



Code Screenshot

Compare your codes with screenshot below to make sure we put codes in right places.


Bootloader 


Once booted up, you will see new entry with the name KNOPPIX on your bootloader.


Result


Successful configuration can make KNOPPIX LiveCD runs from multiboot USB. From this point you can run the very lightweight but pretty desktop of KNOPPIX or install the system to your computer. Congrats!



This article is licensed under CC BY-SA 3.0.