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.
grub doesn't use drive names such as hda, hdb, etc. grub uses hd0, hd1, etc, where hd0=hda, hd1=hdb, etc. If you simply tell grub to install the first part to hd0, then it will overwrite the MBR, and windows will not be bootable without a boot disk until you edit /etc/grub.conf (if that's what your distro uses), or edit /boot/grub/menu.lst (if that's what your distro uses) to add windows to the menu.
If you install grub to (hd0,1) or whatever the linux partition is, then all of grub will be installed in the linux partition, and you won't be able to boot linux without a boot disk, or loadlin in the windows partition.
For more info on the ins and outs of grub, google up a copy of 'Zen and the Art of Using Grub'.
For more info on how to setup loadlin in the windows partition, use google to search for the loadlin HOWTO that explains how to do it.
This is what my /boot/grub/menu.lst has for my windows partition:
title windows
root (hd0,0)
chainloader +1
My /etc/grub.conf has this:
root (hd0,2) #where boot is located
install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0) /grub/stage2 0x8000 (hd0,2) /grub/menu.lst
quit
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.