Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
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.
I'm confused whether I should choose windows or GRUB for the default boot loader.
RHEL recommends installing boot loader on MBR. It seems to suggest installing on MBR can handle booting linux and other os since when your machine boots, GRUB (or LILO) will present a boot prompt. You can then boot RHEL or any other operating system that you have congured the boot loader to boot.
I read many places not to do exactly that and install it in the /boot partition.
I don't have a floppy drive and have XP already installed on my PC with only a NTFS partition and do not plan to share partitions between xp and linux.
If I install GRUB in /boot how can i transfer the linux boot sector onto windows and refer it from boot.ini since I do not have a floppy drive and also do not have a VFAT shareable partition?
Whats the disadvantage of choosing the recommended MBR option and what option do I have if I want to install GRUB in /boot and then boot from the windows boot.ini,specially in the absence of a floppy drive and a VFAT shareable partition?
Whether or not you install grub (or lilo) to the MBR is a matter of personal choice. If you install to the MBR, you have a bootloader which will show you the installed OS's in a menu, and you select the one to boot into. If you choose to NOT install grub to the MBR, then you need an alternative method to boot the Linux partition, such as floopy, bootable cd, etc. Of course, those will only work as long as the media (disks) are good, and the drives still work.
Another method, seldom recommended but works great for me, is loadlin in the windows partition. There are howto's around which detail how to setup a folder in the windows partition, with a dos batch file, the loadlin executable, and a copy of the compressed kernel image from your Linux partition. To use it, when you turn on the computer, during POST (power on self test), you hold the control key (or whatever for xp) to get to the text menu, and boot into command-line mode in windows. Then navigate to the linux folder and run the batch file to launch Linux.
>> what option do I have if I want to install GRUB in /boot and then boot from the windows boot.ini,specially in the absence of a floppy drive and a VFAT shareable partition?
In-order to boot GRUB from NTLoader (default windows bootloader), you need to make a copy of the boot sector where GRUB is installed. If you use Linux to do this (e.g. 'dd -bs 512 -count 1 if=/dev/bootPartition of=grub.img') you will need to find some way to copy it to your MS-Windows partition (do you have a network you could copy (email/ftp whatever) it across? can you put the harddisk in another machine?). If you have absolutely no means of copying the image from your Linux partition to you MS-Windows partition, you will need to make the image file in MS-Windows. Once you have a copy of the boot sector image on your MS-Windows partition, all you need to do is make the necessary changes to your 'boot.ini'.
I think installing GRUB to your MBR is likely to be the simplest option (it might be a good idea to backup your MBR first (it is always a good idea to have backup anyway)). If it fails, run MS-Windows XP's 'fixmbr' and go for the other option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.