Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I have a dual boot Windows 2000/Red Hat Enterprise Linux 4 WS on my PC. Windows 2000 was on hard drive a (/dev/hda1) with RHEL4 on hard drive b (/dev/hdb1). Hard drive a with Win 2K crashed and I have since replaced the hard drive. Now, I don't have the boot partion (/boot) on /dev/hda2, but RHEL4 is still on hard drive b. When I do the command "df" in linux rescue, I get the following:
/dev/root.old
/tmp/loop0
/dev/hdb1
/dev/root.old
Is there a way install the boot partion (/boot), so I can use the command "grub-install /dev/hda2" in linux rescue to install grub again?
I'm not familiar with grub, but when I found myself in that condition I had to modify lilo.conf to match the new mount point for the /boot (/mnt/boot in my case) partition using the rescue disk. Don't forget to backup the original config so you can restore once you are booting normally.
If when you installed Red you did not include a /boot, you don't need it. You do need to install grub in the MBR of the disc set to boot in the bios. Normally this is the primary drive which I assume is where Windows is installed. Putting grub in the MBR of the second drive where Red is installed will not give you a menu including both Windows and Linux because the bios would normally be set to boot the Windows drive. If you want to install it on the second drive you would have to set it to boot first in the bios, but you may end up having to go through an extra step to boot Windows. The proper set up is to install the boot loader on the first drive. Google to find how to use the Red Hat installation disc in rescue mode to reinstall the boot loader and put it in /dev/hda for a IDE drive, or /dev/sda for a SCSI drive, and you will only have to select the system you want without fiddling in the bios to boot the one you want.
When installing grub to /dev/hda in rescue mode, everything will be taken care of as far as having the right files/configuration in the first sector of /dev/hdb1, (the Red / partition). You did not mention what is the second partition on the first drive (/dev/hda2), this has me wondering why you want to put it there, this is a partition, the boot loader needs to be installed in the MBR (first sector of the drive), not the PBR (partition boot record, first sector of a partition). If you want to install it in a Linux / or /boot partition, you will need to add the Linux to the Windows boot loader. Which is allot more complicated than just installing grub in the MBR in rescue mode and all will be taken care of.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.