Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: this is a strange idea, what do you think..



Scott,

Another option....

I normally use the NT boot loader to dual boot Linux if the machine
has NT on it. 

The NT boot loader is controled by the C:\boot.ini (hidden) file,
which looks like this:

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000
Professional"
/fastdetect
C:\bootpart\BOOTLIN5.BIN="Linux"

The BOOTLIN5.BIN file has the first hunk of the Linux boot partition
(i.e., lilo), extracted with "dd if=/dev/hda5 of=bootlin5.bin size=512
count=1".

So... if your Windows program can swap out the boot.ini file with one 
that starts Linux by default, then reboot, you are there.

Jake

--- Scott Stone <SStone@example.com> wrote:
> 
> I just had a thought (run! run for the hills!) ... would it not be
> nice if
> you had a little bitty daemon that runs under *windows* that you
> could
> telnet to and give a command like "reboot linux" and it would modify
> the
> lilo configuration on the mbr such that it would reboot the system
> into
> linux, in case you had a dual boot system and had left it booted into
> windows, but you want it to boot into linux so you can use it
> remotely?
> 
> -----------------------------------------------------
> Scott M. Stone <sstone@example.com>
> Senior Technical Consultant - UNIX and Networking
> Taos, the Sysadmin Company - Santa Clara, CA
> 
>
-----------------------------------------------------------------------
> Next Nomikai Meeting:    Fri, Aug 17 19:30-  Tengu Tokyo Eki-Mae
> Next Technical Meeting:  Sat, Sep 15 13:30-  Akasaka Kumin Center
>
-----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online
> Japan
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links