9 Replies Latest reply on Jan 21, 2009 8:07 AM by 506787

    GRUB Hard disk Error

    Kashif Manzoor

      I just installed Redhat Linux AS4, after installation upon rebooting it is giving an error,
      GRUB: Hard disk error.

      How i can fix this issue, please help me out.

        • 1. Re: GRUB Hard disk Error
          Well, it means that GRUB cannot read your boot device.

          What kind of boot device are you using? IDE? SCSI? LVM? SAN?
          • 2. Re: GRUB Hard disk Error
            Kashif Manzoor
            IDE & SAN is attached,

            but IDE is being used for boot devices.
            • 3. Re: GRUB Hard disk Error
              KM, does this mean your previous thread is resolved?
              Could you update that thread please, or mark it as solved?

              • 4. Re: GRUB Hard disk Error
                Kashif Manzoor
                I booted through Linux rescue and

                df command is showing following details:
                /dev/cciss/c0d0p1 /boot 698MB
                /dev/cciss/c0d0p2 / 10Gb
                /dev/cciss/c0d0p3 swap 10Gb
                /dev/cciss/c0d1p1 /stage 68Gb
                /dev/sdc1 /oradb 104Gb

                What id did till now:
                choroot /mnt/sysimage

                grub-install /dev/cciss/c0d0

                installation finished. no errors reported.
                this is the contents of the device map /boot/grub/device.map check if this is correct or not, if any of the lines is inncorrect, fix it and re-run the script grub-install.
                (fd0) /dev/fd0
                (hd3) /dev/cciss/c0d0

                Now what should i do, i am on the same stage GRUB harddisk error.
                Please advise further
                • 5. Re: GRUB Hard disk Error
                  In general, if you install a system in a normal way, the installer should take care of this for you. Probably you didn't choose to install grub in the MBR? (I don't see any other reason why you would encounter this situation, but if you've installed it in another way, please inform us in this thread)

                  At this point grub boots as bootmanager, but isn't able to start the linux installation. Well, look at it positive: you've made progress.

                  Can you issue:

                  grub-install --root-directory=/boot /dev/cciss/c0d0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                  • 6. Re: GRUB Hard disk Error
                    Kashif Manzoor
                    before going to issue below command, i just want to update one thing which i have noticed during installation.
                    grub-install --root-directory=/boot /dev/cciss/c0d0

                    on step of boot loader during installation.

                    it was showing me following by default.

                    GRUB boat loader will be installed on /dev/sda
                    default OS is /dev/cciss/c0d0p2

                    anyway i will update you after running of abvoe command.
                    • 7. Re: GRUB Hard disk Error
                      Is there a /dev/sda?

                      The bootloader should be installed in the MBR of the disk which is booted by your system.

                      Also, grub must be directed on which partition the linux image is present, which is the partition on which the /boot filesystem is present.
                      • 8. Re: GRUB Hard disk Error
                        Kashif Manzoor
                        the output of this command
                        grub-install --root-directory=/boot /dev/cciss/c0d0

                        (fd0) /dev/fd0
                        (hd0) /dev/sda
                        (hd1) /dev/sdb
                        (hd2) /dev/cciss/c0d0
                        (hd3) /dev/cciss/c0d1

                        any further suggestion
                        • 9. Re: GRUB Hard disk Error
                          sorry, I didn't put enough information in my previous post:

                          before issueing the grub-install command, the partition which contains /boot must be mounted on /boot.