Hi,
I had dual boot with rhel4 and windowsxp. I installed rhel5 by using edit of older partitions. Installation had no error. After reboot I have no grub.
sh-3.1# uname -a
Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 athlon i386 GNU/Linux
I tried rescue and then re-install grub but getting error.
sh-3.1# grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.
partition table as follows.
sh-3.1# fdisk -l /dev/sda
Disk /dev/sda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4462 35840983+ 7 HPFS/NTFS
/dev/sda2 4463 4475 104422+ 83 Linux
/dev/sda3 4476 5750 10241437+ 83 Linux
/dev/sda4 5751 9733 31993447+ 5 Extended
/dev/sda5 5751 6387 5116671 83 Linux
/dev/sda6 6388 6642 2048256 82 Linux swap / Solaris
/dev/sda7 6643 6897 2048256 83 Linux
/dev/sda8 6898 7152 2048256 83 Linux
/dev/sda9 7153 7241 714861 83 Linux
I used grub-shell then which is giving me error of no such partition:
grub> root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "embed /grub/e2fs_stage1_5 (hd0,1)"... failed (this is not fatal)
Running "install /grub/stage1 (hd0,0) /grub/stage2 p /grub/grub.conf "... fail
ed
Error 22: No such partition
did ls and found vmlinuz,initrd and other /boot/ files at the right place.
I found my /boot/grub/grub.conf
#boot=/dev/sdb
default=0
timeout=5
splashimage=(hd2,1)/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$EfjvUqFA$KRwo.7YS0pE0tkQqqJbnv/
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd2,1)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.18-8.el5.img
title Other
rootnoverify (hd2,0)
chainloader +1
which says grub installed on my second hard disk

. Whereas I deselected my two other hard disks during partitioning (I always follow this rule as I have important data on other hard disks.).
I can reinstall but...
1.Why it happened ?
2.Why am I getting error when I am trying to install grub on my first hard disk ? /dev/sda ?
3.How to resolve it, i.e. to install grub on my first hard disk?
Thanks and regards
Anuj singh "anugunj"