How to identify Red Hat version?
Hello All,
I have a Red Hat Linux system that does not boot. The boot partition is damaged and files cannot be recovered. I would like to know how to find out which version of Red Hat was installed from the program/data partition which is undamaged and accessible from Fedora Live CD. I assume this is available in a configuration file somewhere. I plan to download the appropriate version and re-install. Thanks Evsam |
Boot the Fedora Live CD, mount the Red Hat file system, eg:
Code:
mkdir temp |
as long as the /boot is separate from the rest of the system than booting to a live cd and reading /etc/issue
or /etc/redhat-release should tell you however if you /boot partition is really separate, you shouldn't have to re-install your whole system to fix this what you would do is boot from a live/rescue cd create a mount point (directory) for the / partition for my example i will use /repair mount the / partition Code:
mount /dev/sda3 /repair Code:
mkfs -t ext(2,3, or 4) /dev/sda1 Code:
mount /dev/sda1 /repair/boot Code:
$ su -c 'mount ‐‐bind /dev /repair/dev' Code:
$ su -c 'chroot /repair' once you have that done, you can simply use yum (or up2date if you are using Red hat enterprise linux) to re-install the packages (the kernel packages) from the repositories (assuming your live/repari cd provides internet access), or from locally downloaded copies if you don't and reinstall grub to generate a new grub configuration file Code:
# grub-install /dev/sda note, /dev/sda, /dev/sda1 and /dev/sda3 are merely examples, you should figure out which ones are correct for your system. |
All times are GMT -5. The time now is 04:03 AM. |