|
When you get the machine back up again, you may need to change the hard drive jumpers to MASTER or CABLE SELECT and go into bios to make sure that it is properly detected.
Now, since you don't have a boot loader setup for now and you may not have a linux boot floppy handy, you can use CDROM1 to get back into the system and repair the grub.
Note: You will need to edit the /etc/grub.conf to have the correct location of the Redhat root partition and remove the Windows entry while you're at it.
You also need to edit the /etc/fstab to point to the new location of your swap partition. For example, /dev/hda2 instead of /dev/hdb2
1. Boot your machine from your boot media (cdrom1) and select linux rescue to install to the command prompt.
2. Redhat displays a message “If you would like to make your system the root environment, run the command: chroot /mnt/sysimage”. Go ahead and do that.
3. Get into the grub configuration utility with the command:grub.
· At the prompt grub> type the command: root (hd0,0) ; this will tell grub that the linux files it needs are in the first partition (0) of your first hard disk (hd0). Change this to meet your configuration needs. For instance, if the linux files are on the second partition (1) of the second hard disk (hd1), then type root (hd1,1).
· If you selected the correct location (where linux is installed), you should see a message as follows.... Filesystem type is Ext2fs, partition type is 0x83.
· Then issue the following command: setup (hd0) ; this will install grub in the MBR of your first hard disk. You could change that to use the /boot partition if desired.
· Exit the grub utility with the command: quit
You can also try to use grub-install /dev/hda to install grub on your first hard drive's MBR, but that doesn't always work.
You still need to edit the /etc/grub.conf and /etc/fstab files.
Reboot and try it!
|