Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dual Boot - Remotely changing

1 view
Skip to first unread message

Jess

unread,
Jan 27, 2004, 4:56:44 AM1/27/04
to
Hi:

I guess I am greedy, but I would like to be able to remotely reboot my
Mandrake 9.2 / Windows XP Pro dual boot PC to the OS of my choice.

I can go from Mandrake to XP easily enough -- just change the default in
"Configure your Computer" / "Boot" and change the "default" to XP in
GRUB boot loader via my VNC connection and reboot via shh login as root.

But the other way is beyond me except through directly editing in GRUB
file from XP. But I am running EXT3 on the Linux partitions and a
concerned as I have read the Win32 software to write to Linux partitions
is not 100% reliable.

Any help would be appreciated.

Thanks,
Jess

Jesper Schmitz Mouridsen

unread,
Jan 27, 2004, 6:09:49 AM1/27/04
to
Jess wrote:

> Hi:
>
> I guess I am greedy, but I would like to be able to remotely reboot my
> Mandrake 9.2 / Windows XP Pro dual boot PC to the OS of my choice.
>
> I can go from Mandrake to XP easily enough -- just change the default in
> "Configure your Computer" / "Boot" and change the "default" to XP in
> GRUB boot loader via my VNC connection and reboot via shh login as root.

Do not do it this way, instead install lilo as a bootloader.
Your default is linux and ALWAYS linux, BUT with lilo -R you can set the
default for next reboot only! See man page for lilo or ask again.

Douglas Mayne

unread,
Jan 27, 2004, 4:09:01 PM1/27/04
to

This was a tricky one, but I think I have it. This uses the technique
detailed here:
http://www.geocities.com/epark/linux/grub-w2k-HOWTO.html

Prepartion:
1. Boot Linux and goto your grub directory.
2. make two copies of stage2
cat stage2 >stage2.linux
cat stage2 >stage2.xp

3. make two copies of menu.lst (or grub.conf)
cat menu.lst >menu.linux
cat menu.lst >menu.xp

4. edit menu.linux to setup default entry to point to linux stanza
5. edit menu.xp to setup default entry to point to xp stanza
6. run grub to install grub on your ext2/ext3 partition (using
(hd0,1) as an example here):
grub>root (hd0,1)
grub>setup (hd0,1)
grub>install /boot/grub/stage1 (hd0,1) /boot/grub/stage2.linux p /boot/grub/menu.linux
grub>quit

7. save the partition's BPB to a file:
dd if=/dev/hda2 of=bs.linux count=1 bs=512

8. run grub to install grub on your ext2/ext3 partition (using
(hd0,1) as an example here):
grub>root (hd0,1)
grub>setup (hd0,1)
grub>install /boot/grub/stage1 (hd0,1) /boot/grub/stage2.xp p /boot/grub/menu.xp
grub>quit

9. save the partition's BPB to a file:
dd if=/dev/hda2 of=bs.xp count=1 bs=512

10. Transfer the files (bs.linux and bs.xp) to your windows partition and modify boot.ini per
the instructions above (ed park).

Now, when booted into XP, you can set boot.ini to either boot linux or xp on the next boot.

Keep GRUB at the MBR. When booted into linux, you change the default OS
as you have been doing, by changing the menu.lst file.

It's not pretty, but I think it works!

--
And you let him in...
http://us.imdb.com/title/tt0078748/quotes

Michael Heiming

unread,
Jan 27, 2004, 5:17:53 PM1/27/04
to
Jesper Schmitz Mouridsen <jes...@altern.org> wrote:
> Jess wrote:

> > Hi:
> >
> > I guess I am greedy, but I would like to be able to remotely reboot my
> > Mandrake 9.2 / Windows XP Pro dual boot PC to the OS of my choice.
> >
> > I can go from Mandrake to XP easily enough -- just change the default in
> > "Configure your Computer" / "Boot" and change the "default" to XP in
> > GRUB boot loader via my VNC connection and reboot via shh login as root.

> Do not do it this way, instead install lilo as a bootloader.
> Your default is linux and ALWAYS linux, BUT with lilo -R you can set the
> default for next reboot only! See man page for lilo or ask again.

Full ack! Forget about GRUB, simply use lilo.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM

Douglas Mayne

unread,
Jan 27, 2004, 6:10:20 PM1/27/04
to
On Tue, 27 Jan 2004 23:17:53 +0100, Michael Heiming wrote:

> Jesper Schmitz Mouridsen <jes...@altern.org> wrote:
>> Jess wrote:
>
>> > Hi:
>> >

>> > <snip>


>
> Full ack! Forget about GRUB, simply use lilo.
>

Question: Does lilo run in some environment under windows? I don't
think it does. Neither will grub, but I think grub's options are more
flexible for my taste.

BTW, the real answer to the OP is to forget about windows. Simply use
GNU/Linux.

First, OS wars. Now, loader wars.

--
Licked? I'm not licked. I'm tarred and feathered, that's all.
http://us.imdb.com/title/tt0065988/quotes

Michael Heiming

unread,
Jan 27, 2004, 7:00:56 PM1/27/04
to
Douglas Mayne <do...@slackware-1.localnet> wrote:
> On Tue, 27 Jan 2004 23:17:53 +0100, Michael Heiming wrote:

> > Jesper Schmitz Mouridsen <jes...@altern.org> wrote:
> >> Jess wrote:
> >
> >> > Hi:
> >> >
> >> > <snip>
> >
> > Full ack! Forget about GRUB, simply use lilo.
> >
> Question: Does lilo run in some environment under windows? I don't
> think it does. Neither will grub, but I think grub's options are more
> flexible for my taste.

Don't know, I don't use M$.

> BTW, the real answer to the OP is to forget about windows. Simply use
> GNU/Linux.

Yep, that sums it up.
;)

BTW
However, you want to run lilo anyway.

0 new messages