PDA

View Full Version : Customize default knoppix boot options(knoppix home=scan etc



ktheking
03-30-2003, 05:01 PM
How to adapt you knoppix cd so that at boot time you don't have
to enter no more knoppix home=/dev/.... etc. ?

plz in linux newbie language (meaning step-by-step)

oscar
03-30-2003, 05:48 PM
the easy way is with windows. You must have winiso and winimage.
open knoppix3.2.iso with winiso. Extract boot.img
Open boot.img with winimage
extract and edit syslinux.cfg (add your cheatcodes near the cheatcodes already there)
add (copy) the edited syslinux.cfg to boot.img and save
open knoppix3.2.iso with winiso
menu bootable cd
load boot.img (boot.img c:\somewhere\boot.img)
menu file
save knoppix3.2.iso (with new boot.img already loaded)
burn knoppix3.2.iso

NB: It is not necessary to copy the edited boot.img into the cd,
but copy it if you want (with winiso)


A fragment of syslinux.cfg already edited

DEFAULT vmlinuz
APPEND ramdisk_size=100000 init=/etc/init lang=us keyboard=es xkeyboard=es screen=800x600 floppyconfig apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 initrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix
TIMEOUT 300

PROMPT 1
DISPLAY boot.msg
F1 boot.msg
F2 f2
LABEL knoppix
KERNEL vmlinuz
APPEND ramdisk_size=100000 init=/etc/init lang=us keyboard=es xkeyboard=es screen=800x600 floppyconfig apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 initrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix
LABEL knoppix-txt
KERNEL vmlinuz
APPEND ramdisk_size=100000 init=/etc/init lang=us keyboard=es xkeyboard=es screen=800x600 floppyconfig apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=normal initrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix
LABEL expert

ktheking
03-30-2003, 06:16 PM
Is it only the BOLD part that I insert my customisation or do I have to do it in all 3 APPEND sections ?

DEFAULT vmlinuz
APPEND ramdisk_size=100000 init=/etc/init lang=us keyboard=es xkeyboard=es screen=800x600 floppyconfig apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 initrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix
TIMEOUT 300

PROMPT 1
DISPLAY boot.msg
F1 boot.msg
F2 f2
LABEL knoppix
KERNEL vmlinuz
APPEND ramdisk_size=100000 init=/etc/init lang=us keyboard=es xkeyboard=es screen=800x600 floppyconfig apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 initrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix
LABEL knoppix-txt
KERNEL vmlinuz
APPEND ramdisk_size=100000 init=/etc/init lang=us keyboard=es xkeyboard=es screen=800x600 floppyconfig apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=normal initrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix
LABEL expert

oscar
03-30-2003, 06:52 PM
the first paragraph is only the default choise, the following paragraphs are alternatives at booting time

For example if at any time you want to boot into txt screen this part should be edited with yours personal cheatcodes

LABEL knoppix-txt
KERNEL vmlinuz
APPEND ramdisk_size=100000 init=/etc/init lang=us keyboard=es xkeyboard=es screen=800x600 floppyconfig apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=normal initrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix

NB: I am guessing here but it works :lol: