cheatcodes in cd/DVD labels
First of all, hello to everibody.
you all know the possibility to write labels like "system id", "author", "publisher" etc..
everyone is able to change them, and all burning programs support them.
It would be nice to use them to define cheetcodes for booting knoppix.
E.G. you set the author "Sofia Loren" and knoppix starts in italian.
It is much easier then remastering.
of course it can be done only for parameters not concerning the kernel (you need the kernel for reading the CD labels)
Simone
Re: cheatcodes in cd/DVD labels
Quote:
Originally Posted by simone.montanari
you all know the possibility to write labels like "system id", "author", "publisher" etc..
everyone is able to change them, and all burning programs support them.
It would be nice to use them to define cheetcodes for booting knoppix.
E.G. you set the author "Sofia Loren" and knoppix starts in italian.
It is much easier then remastering.
of course it can be done only for parameters not concerning the kernel...
Hello Simone and welcome.
That's certainly an interesting thought. Of course, rather than being cryptic or cute about it, one could just let one of the label fields hold the parameters desired and pass them at boot time (in other words, set publisher to acpi=off noscsi desktop=icewin and that would be picked up by the kernel at boot time). I doubt the limitation that you mentioned with the kernel is much of an issue, I don't think Knoppix has included more than one Kernel since the days when it had the 2.4 and 2.6 kernels.
The question that I have about this is that while most serious burning programs (unfortunately not some free burners) do support these fields, I'm thinking that they may not support them for ISO burning. That is to say, if in Nero or some similar program I try to set up an author or publisher string and then I burn an ISO file, will that information end up on the disc? As far as I know, it will not. If I'm correct about that (and I would be glad to find out that I was wrong), then this approach would not help the average guy who just wanted to burn an ISO with the cheat codes that he always needs enabled, and anyone capable of unpacking the ISO porperly into it's components and rebuilding a bootable disc should already be able to sneak in the extra boot paramenters he wants for his custom version. So I'm not sure that this would work, although it would be great idea if it would and you could convince Klaus to add the start-up code.
If writing of an ISO works like I suspect and prevents this information from being added, might there be another way to accomplish the same end? Such as writing a second session to an unfinalized disc? I doubt this would be a good approach with a CD version (if there is even going to be a CD Knoppix any more), as the overhead of a second session even for a tiny file is way too many megs to justify this. And I have less experience with multi-session DVDs (and suspect that DVD+R and DVD-R may be different). But there is enough room on the DVD that, if a second session is viable and would still leave the disc in a bootable form, it could allow for the passing of boot parameters, and perhaps more (think a few extra programs and a custom install script).
Re: cheatcodes in cd/DVD labels
Quote:
Originally Posted by simone.montanari
First of all, hello to everibody.
you all know the possibility to write labels like "system id", "author", "publisher" etc..
everyone is able to change them, and all burning programs support them.
It would be nice to use them to define cheetcodes for booting knoppix.
E.G. you set the author "Sofia Loren" and knoppix starts in italian.
It is much easier then remastering.
of course it can be done only for parameters not concerning the kernel (you need the kernel for reading the CD labels)
Simone
Use an ISO editor to change the file named ISOLINUX.CFG inside the Knoppix.iso image.
Then use a text editor to change the contents of this file.
Edit the line directly underneath the word DEFAULT.
Add whatever cheatcodes that you wish, ie: lang=IT, etc.
Save the file into the ISO and burn your newly customized Knoppix DVD.
Re: cheatcodes in cd/DVD labels
Quote:
Originally Posted by cbagger01
Use an ISO editor to change the file named ISOLINUX.CFG .....
That's easy to say in vague general terms. But can you suggest a specific free ISO editor that new users could use to do this, in either Windows or Knoppix? I know of no editor that will do this unless you pay a pretty outrageous price for it. I hope that you do.
Simone's original idea is more appealing to me, and seems like it could be documented in a way that would be easy to instruct new users to make these changes for themselves. Perhaps if he wrote the code he could even get Klaus to include it in a future version of Knoppix. While I still don't think these "labels" can be changed when burning an ISO file as an image, it should be simple enough to get Klaus to put a long known string in one of the fields (such as publisher). To edit the ISO then it would only require finding that string with a hex editor (I can find you several of those) and replace it with the desired boot prompts. (Obviously the new code should not pass the original publisher string if unedited, but I believe even if it did it would just be ignored if it didn't match known boot options.) As long as sufficient space is preallocated, nothing else in the ISO needs to be moved or edited, which allows one to do this with a simple hex editor when they otherwise couldn't change ISOLINUX.CFG as easily.
Re: cheatcodes in cd/DVD labels
Quote:
Originally Posted by Harry Kuhman
Quote:
Originally Posted by cbagger01
Use an ISO editor to change the file named ISOLINUX.CFG .....
That's easy to say in vague general terms. But can you suggest
a specific free ISO editor that new users could use to do this, in either Windows or Knoppix? I know of no editor that will do this unless you pay a pretty outrageous price for it. I hope that you do.
.
Thanks Harry, I am happy that you liked the idea
For cbugger01, I know that there is always a smarter way.
The original idea was to put standard cheatcodes in the publisher label. (Clearly “sofia loren” was a joke). I do not like the idea of editing the original iso: it is too hard to explain my mother on the telephone how to use vi.
Concerning labels:
Windows: Nero OK and CDBurnerXP(freeware) OK and magicISO OK
They all support the labels but only magicISO can modify them easily (Harry this is a problem).
UNIX: cdrdao OK and cdrecord OK and dvdrtools OK and dvd+rw-tools OK and K3B OK
and probably all kde or gnome programs which use them
Concerning the reading script for K.Knopper:
dd if=/dev/dvd of=dvdstart.dat bs=2048 count=1000
the labels are just after the string “CD001”
Two examples with very few labels:
Datei: DVD2.dat Spalte 0 2048000 Bytes
1%.CD001.. DVDVOLUME ........
<......<.......................................... ..*......*................"....................... ..........DVDVOLUME
DVD CREATOR (11852); COPYRIGHT 1999 SONIC SOLUTIONS.
Datei: DVD.dat Spalte 0 20480000 Bytes
ââââââââââââââââââââv0%.CD001. . MASTER_AND_COMMANDER ........./".."/.............................................*.... ..*................".................h...$........ ...UNDEFINED