Simone,

At first I did not understand your request so my reply was not valid, but I read it a second time and now I understand.
This is a great idea.

With today's knoppix, there are 2 ways to adjust the boot commands

1) Type in a cheatcode at the boot prompt.
2) Remaster knoppix to change the boot cheatcodes for the DEFAULT boot inside ISOLINUX.CFG

You are suggesting a 3rd and easier way to adjust the boot process.

Before the user burns the knoppix ISO, he or she can rename the volume name or author or publisher to something like "lang=IT".
When the user boots his or her newly burned disc, the KNOPPIX autoconfigurer will look at the volume name or author for the disc and grab any valid cheatcodes from within these fields. These cheatcodes would then be appended to the commandline and handled as if someone had typed them in during the initial boot prompt screen.


This is a great idea and I am sure that it is possible. There must be a commandline tool that can be used inside a KNOPPIX script to directly read the volume name, author, or publisher fields from a physical disc.

You might even be able to write a script yourself and add it to the ISO as "knoppix.sh" and have it run automatically every time at bootup.

Regarding your "dd" example, you could combine the raw dump and pipe it through the "grep" command to isolate the part that starts with "CD001" or even "DVDVOLUME".

In other words, something like:

dd if=/dev/dvd bs=2048 count=1000 | grep -A 1 DVDVOLUME

and if you knew the characters that was the end of the volume name, say for example "ENDOFVN"
You could use a stream editor like "sed" to snip out the volume name and ignore the rest of the raw data. In shell scripting there are a number of ways to capture this information and trap it into a variable.

Once you do this, you can append the cmdline string with the contents of the variable that contains the volume name.