Hello!
I have a virtualized RHEL server 5 inside a windows 2008 R2 machine.
Recently someone disconnected the VM without shuting it down first

Now, the system got stuck in the grub prompt.
So, when I try to configure grub manually I get this:
Code:
grub> root (hd0,<TAB>
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x83
Partition num: 1, Filesystem type unknown, partition type 0x8e
Partition num: 2, Filesystem type unknown, partition type 0x83
So even if I complete the command, grub can't mount the filesystem because it doesn't know the type (Part 0 is ext3, 1 is swap, and 2 ext3 also)
So, enter linux rescue.
With the media inserted y go to linux rescue and it succesfully mount the filesystem in /mnt/sysimage so I chroot /mnt/sysimage, start some services and voila, the system is up and running as always.
When i try to reinstall grub i get the following:
Code:
# grub-install /dev/hda
/dev/hda does not have any corresponding BIOS drive.
parted output:
Code:
(parted) print /dev/hda
Model: Virtual HD (ide)
Disk /dev/hda: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary boot
2 107MB 10.7GB 10.6GB primary lvm
3 10.7GB 53.7GB 42.9GB primary
Also I've noticed that /boot/grub/grub.conf does not exist. But I've created one based on another RHEL system with the same configuration and nothing happens.
I've spend 2 days trying to fix this, so I give up.
Thanks in advance!