Run Script Before Bootloader

This is a discussion about Run Script Before Bootloader in the Customization Tweaking category; 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.

Customization Tweaking 1789 This topic was started by , . Last reply by ,


data/avatar/default/avatar30.webp

556 Posts
Location -
Joined 2003-03-28
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?

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Oct 15
Created
Oct 15
Last Response
0
Likes
1 minute
Read Time
User User
Users

Responses to this topic


data/avatar/default/avatar05.webp

748 Posts
Location -
Joined 2001-05-21
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

data/avatar/default/avatar30.webp

556 Posts
Location -
Joined 2003-03-28
OP
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.