RHEL 5 system lost file system info, stuck on GRUB
Hello!
I have a virtualized RHEL server 5 inside a windows 2008 R2 machine. Recently someone disconnected the VM without shuting it down first :doh: 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> 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 Code:
(parted) print /dev/hda I've spend 2 days trying to fix this, so I give up. Thanks in advance! |
Quote:
|
Ok,
the contents of my /boot/grub directory is as follows: Code:
-rw-r--r-- 1 root root 30 Jan 8 11:36 device.map Then, running grub-install again: Code:
# grub-install /dev/hda --recheck |
Might be damage to (the start of) the container disk file on the host - everything is virtualised, including the MBR, and the "BIOS" boot sequence. As you can chroot into the system o.k., I'd get your data backed up and just stand up another guest and migrate over to that. Simplest way to ensure you have a clean environment to work with.
|
Thank you syg00. I was thinking the same thing as a plan B.
Its going to take some time to re-building the entire enviroment again, that's why I want it to try to recover from this error. I'm gonna give it one last try and if it doesn't work, we're gonna build another guest. |
Quote:
Code:
rpm -Vv grub|grep -v '^\.\{8\}[[:blank:]]' Quote:
|
Quote:
I will try to mount manually all the LVs inside /mnt/sysimage and run grub-install |
All times are GMT -5. The time now is 11:33 AM. |