Professional Documents
Culture Documents
Troubleshoot GRUB
Troubleshoot GRUB
This tells us that we have two /boot partitions, possibly due to use of software RAID or multiple OS
installations. One is on the first hard disk third partition, the other is on the second hard disk third partition.
To reinstall the GRUB configuration for the first instance to the MBR:
If other Linux versions such as Ubuntu are installed, there may be a menu.lst file but no grub.conf for that
installation, but as CentOS uses a symbolic link menu.lst pointing to grub.conf a find on menu.lst will work
for either:
This tells us that we have two /boot partitions, the first on the the first disk first partition, probably our
CentOS, and another Linux /boot on the first disk second partition.
To see what is in grub.conf and menu.lst files use the GRUB cat command:
If nothing was found on the first try it may be that there is no /boot partition and grub is installed on the root
partition. Try
In this example there are again two GRUB installations. One on the first disk first partition, and the other on
the second disk fifth partition - the first extended partition.
To restore the second instance and write the GRUB bootloader on the MBR of the first disk:
If in doubt as to where the root partition is located one might try to find a file in /etc. For example:
Thus we know our / is on the first disk second partition - /dev/sda2 for SCSI or SATA, or /dev/hda2 for
PATA.
The GRUB shell has a lot more capabilities, and is thoroughly documented in the GRUB info files,
accessible via "info grub".
This page created and maintained by PhilSchaffner. Other Wiki contributors are invited to make corrections,
additions, or modifications.
2023-09-11 07:23