Boot to windows from centos, boot from centos to windows
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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".
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.
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.
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.