Welcome, Guest. Please login or register.

Author Topic: boot menu settings from code ?  (Read 952 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kas1eTopic starter

boot menu settings from code ?
« on: October 09, 2005, 03:48:30 AM »
Hello. It is possible to disable/enable and set as boot device ,devices from my programm ? For example i want to boot after reboot from another partition, but i do not want to go in boot menu.
 

Offline Ilwrath

Re: boot menu settings from code ?
« Reply #1 on: October 09, 2005, 12:17:34 PM »
So you want to cold boot from one partition, reboot, and have the machine boot from a different partition?

That won't be easy, as there isn't really a way to change settings in that early boot menu.  (it's generated by hardware, really -- essentially, the only thing the Amiga has done by that time is to have completed its self-test and read the configuration from RDB.)

I think you could probably accomplish the same thing by booting with only one partition and using some creative startup-sequence scripting.  Basically, have your first boot set up a RAD or something, and then do an IF EXISTS at the startup-sequence to see if RAD exists, and if so, assign SYS:, LIBS:, S:, etc, to the new drive, and then start executing startup-sequence from that drive.  

Technically, you'll still boot from the same first partition twice, but on the 2nd boot, it'll hand over control to the 2nd partition.  Probably the best you're going to get without doing some REALLY ugly and possibly dangerous tricks (like having a script that alters RDB!)
 

Offline kas1eTopic starter

Re: boot menu settings from code ?
« Reply #2 on: October 09, 2005, 12:22:45 PM »
thanks, but if i want to disable dh0: and dh1: and boot only from dh2: witchout any other partition ? (basically i need only two thinks - boot from other partition and disable some partition).
 

Offline Thomas

Re: boot menu settings from code ?
« Reply #3 on: October 09, 2005, 01:18:12 PM »

You could change the flags in the RDB. This would be a permanent change, though. You should have an emergency floppy disk at hand for the case that your scripts are buggy.

Here is a shell program which can be used in a script: http://thomas-rapp.homepage.t-online.de/downloads/changebootpri.lha

Bye,
Thomas