using cheatcodes automatically


Forum: HD Install
Topic: using cheatcodes automatically
started by: mark_one

Posted by mark_one on Nov. 07 2005,14:42
hi.

this is the first time i use this forum so don't hit me too hard if i'm writing bullshit.
i managed to install dsl to my hd via the frugal script.
i use two partitions. hda1 for the dsl image and hda2 for /home /opt and backup/restore.
my problem is:
how can i use cheat-codes after installing dsl to harddisk without typing them at the bootprompt? how can i pass this options to the kernel automatically? i know how to restore settings or reload extensions via bootlocal.sh but i don't know how to pass different kernel options automatically.
it's just that i sometimes want to load everything into ram and sometimes not. the background is that i want to do the frugal installation, change everything to my satisfaction (using fvwm instead of fluxbox, install mozilla....) an then turn on the "toram" switch to load everything into ram next time the system boots.  is that possible? or do i have to create a new mydsl-image?

i'm an average skilled user and all the different /etc and /KNOPPIX/etc directories a.s.o... are a bit confusing. the reason is that i don't know which files are editable and affect the next boot process and which files are not. is there any list? or is there any howto where i can read how booting works in dsl?

i hope you can help me. thanks in advance.

mark

Posted by mikshaw on Nov. 07 2005,17:01
With a frugal install, directories that are writeable using the backup/restore process are /home/dsl and /opt.
Using tar.gz mydsl packages, this is extended to /etc.
Using .dsl mydsl packages, you have write access to basically the whole system.

None of these options will affect the initial boot process.  In order to automatically enter boot options you will need to edit your bootloader's config file, which is most likely in /cdrom/boot (the partition that holds the DSL installation).  With Grub you can simply modify menu.lst.  With Lilo you will need to modify lilo.conf and then run the lilo command to reconfigure it (as far as i know).  If you're booting from the CD the bootloader is either isolinux or syslinux, which will require rebuilding the ISO file.

Posted by mark_one on Nov. 08 2005,10:13
Quote (mikshaw @ Nov. 07 2005,12:01)
[...]In order to automatically enter boot options you will need to edit your bootloader's config file, which is most likely in /cdrom/boot (the partition that holds the DSL installation).  [...]



hi.
thanks for helping me out. now i know at least which files to edit.
but i have another problem:
when i edit /cdrom/boot/lilo.conf (frugal installation without 'toram' option) as you said and then try to run lilo before i do a reboot i get this error:
'Fatal: creat /boot/map~: Read-only file system

now the only thing that 'mount' pretends to be read-only is
/dev/cloop on /KNOPPIX type iso9660 (ro)

what can i do to fix the problem? install grub? well i don't want you to take my hand and lead me through kindergarten. i know this is annoying. for me too because i'm not very patient and i hate to waste hours of time just to figure out how to solve problems like this.
but it would be nice if you could help me again.
thanks.

mark

Posted by doobit on Nov. 08 2005,12:57
You need to be in root to edit this file directly unless you save it to home after you edit it. If you do it that way you can then open a terminal as root and copy the file back over itself in the boot directory. The easier, but less safe way is to open Beaver as root from a terminal and edit the file lilo.conf directly.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.