LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2009, 09:07 AM   #1
brettmehaffey
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Boot to windows from centos, boot from centos to windows


I'm trying to setup a dual boot server using Windows 2003 Server and CentOS 5. I need to be able to control and change the boot order remotely. Should I use grub, or windows boot manager and how should I configure them?
 
Old 08-18-2009, 11:00 AM   #2
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Up to you. I think you should be able to update boot order remotely either way with the correct permissions.

I presume Windows 2003 server still uses boot.ini or a similar text file?

Mons
 
Old 08-18-2009, 12:54 PM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
brettmehaffey,

Yes you can. But this needs more configurations to do in order to exploit it.

This may help you: http://tldp.org/HOWTO/Remote-Serial-...rnel-grub.html

at least this one too: http://forums.remote-exploit.org/bac...blem-grub.html

hope it helps.
 
Old 08-18-2009, 02:53 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i dual boot win-2k and rh-9 at home and from what i can tell windows cant modify /boot/grub/menu.lst (also i never been able to ssh into win-2k).


a few lines of bash can modify /boot/grub/menu.lst before a reboot.
 
Old 08-18-2009, 05:51 PM   #5
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Rep: Reputation: 16
Wink

Quote:
Originally Posted by schneidz View Post
i dual boot win-2k and rh-9 at home and from what i can tell windows cant modify /boot/grub/menu.lst (also i never been able to ssh into win-2k).


a few lines of bash can modify /boot/grub/menu.lst before a reboot.
definatly it possible but would suggest o use grub as the loader and let u control windows from it
 
Old 08-19-2009, 09:26 AM   #6
brettmehaffey
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Yes, Windows Server 2003 still has the boot.ini file.

What changes do I need to make to the file?

Right now when I boot, it boots to the CentOS 5, OS.

Currently, I have to choose "other", in grub to get to the windows load.
 
Old 08-19-2009, 09:39 AM   #7
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Quote:
Originally Posted by brettmehaffey View Post
Yes, Windows Server 2003 still has the boot.ini file.

What changes do I need to make to the file?

Right now when I boot, it boots to the CentOS 5, OS.

Currently, I have to choose "other", in grub to get to the windows load.
Don't remember the details of boot.ini. Its got similar things to menu.lst but in a different syntax.
However, since you already have CentOS as boot and can do Windows boot from Grub, the easiest (and probably most secure) is to stick with that.

Check some of links above form the others. I guess in searches your keywords would be "ssh grub".

Mons
 
Old 08-19-2009, 12:11 PM   #8
brettmehaffey
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
It isn't the config I need.

I need to be able to reboot in a diff os remotely.

So if i'm in CentOS and need to be in windows, I would like to choose the default boot os before rebooting, while I have remote access.

Currently, I have to be at the console to choose the os. This will not work for me due to shipping server to remote location and will not have tech onsite to choose the os if I reboot it.

It all needs to be managed remotely.
 
Old 08-19-2009, 01:58 PM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
robooting to windows from linux is the easy part.
all you do is 'vi /boot/grub/menu.lst' and change default from '0' to '1' and then sudo /sbin/shutdown -r now.

that should reboot into windows. now on windows you need to be able to ssh in (perhaps cygwin would help you there -- but i have no experience with that since i dont use windows much.) then you need the ability to edit the grub menu.lst from within windows. perhaps windows has some ext2 reading/ writing program but i am not sure.
 
Old 08-19-2009, 02:09 PM   #10
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
Quote:
Originally Posted by schneidz View Post
i dual boot win-2k and rh-9 at home and from what i can tell windows cant modify /boot/grub/menu.lst (also i never been able to ssh into win-2k).


a few lines of bash can modify /boot/grub/menu.lst before a reboot.
You would have to assume that he doesn't have ext as the /boot fs? If he is using ext there are a couple ext2 drivers for windows, then he could mount the partition that has /boot and edit the menu.lst! Or he could be using fat32 for the /boot partition, then there would be native support on either system. There are pleny of creative ways to get menu.lst to be edited from windows. Just think outside the box... =) I would say use the ext drivers.
 
Old 08-19-2009, 03:14 PM   #11
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Quote:
Originally Posted by mushroomboy View Post
You would have to assume that he doesn't have ext as the /boot fs? If he is using ext there are a couple ext2 drivers for windows, then he could mount the partition that has /boot and edit the menu.lst! Or he could be using fat32 for the /boot partition, then there would be native support on either system. There are pleny of creative ways to get menu.lst to be edited from windows. Just think outside the box... =) I would say use the ext drivers.
Good point. Schneidz suggestion should work for going from CentOS to Windows, but then you need to do something like this to go back from Windows to CentOS...

For manipulating the boot order it might actually be easier to change from Grub to the Windows boot loader since it would be easier to edit boot.ini from linux then menu.lst from Windows.

This is an old boot.ini I used ones a few years ago:
Code:
[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
C:\UBUN_HD0.BIN="Ubuntu Linux (Removed)"
As you see you have a list of OSes and a default one selected with a timeout. You have to set the whole thing before the "=" sign in the default statement.
This example booted Ubuntu and I think I created the file using the dd command in Linux. You have to google that, don't remember what I did exactly. But ones the .bin file was created I just copied it to the C drive and edited boot.ini. This worked with WinXP, not sure if it will with 2003, you'll have to try it.

So you have your choices. Either this or finding a reliable ext driver for Windows...

Mons

Last edited by monsm; 08-19-2009 at 03:16 PM.
 
Old 08-19-2009, 05:35 PM   #12
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
or you could think a little farther outside the box, just use fdisk on either and manually set a different active partition for booting... =) the biggest hint in all this is breaking down the boot process and how it all works.

http://www.fs-driver.org/

There are working ext drivers... But really think how you want all this to go down.
 
Old 08-19-2009, 06:25 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Run a virtual machine and use both at the same time...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 4.0 + Windows XP Dual Boot laserlight Linux - Enterprise 9 02-01-2010 01:51 PM
[SOLVED] How to dual boot Linux (CentOS 5.3) and Windows 7 on 2 partitions. purerage34 Linux - Newbie 7 01-14-2010 01:52 AM
Missing Commands on CentOS 5.3 dual boot with Windows XP LiNuXMaN31509 Linux - Newbie 6 06-08-2009 06:39 AM
Windows XP and CentOS dual boot problem on a laptop computer filippa Linux - Newbie 5 06-13-2008 08:49 AM
Adding CentOS to Windows Boot.ini dbough Linux - Newbie 5 04-15-2007 10:38 PM


All times are GMT -5. The time now is 07:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration