Compatible Support Forums: Run Script Before Bootloader

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Run Script Before Bootloader

#1 User is offline   ViolentGreen 

  • addict
  • Group: Members
  • Posts: 557
  • Joined: 28-March 03

Posted 15 October 2003 - 06:22 PM

Is there any way to run a batch file before the NT bootloader kicks in?

I am dual boot boot linux and want to do something to the effect of "if f:\linux.bin exists, move to c:\lniux.bin" before the bootloader has the opportunity to load c:\linux.bin.

Is this possible?
0

#2 User is offline   AndyFair 

  • old hand
  • Group: Members
  • Posts: 748
  • Joined: 21-May 01

Posted 15 October 2003 - 06:53 PM

I don't think it's possible (and I don't think any other boot loader can do that either), but why not just add c:\linux.bin (or f:\linux.bin) as an option in boot.ini?

AndyF
0

#3 User is offline   ViolentGreen 

  • addict
  • Group: Members
  • Posts: 557
  • Joined: 28-March 03

Posted 15 October 2003 - 08:28 PM

Quote:
I don't think it's possible (and I don't think any other boot loader can do that either), but why not just add c:\linux.bin (or f:\linux.bin) as an option in boot.ini?

AndyF


Well I prefer not to keep it on F: for other reasons.

I am optimizing my linux kernel. The idea here is that when I recompile the kernel, I run a script to configure lilo and copy the boot sector to the F drive. I want to be able to reboot into linux without having to go into windows and copy the file to the c drive. Now that I have typed it up, I guess I could temporarily point the bootloader to the F drive while I am still optimizing. That's what I'll probably do.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users