Tips on how to (re)install grub on a HP ProLiant server

hp-proliant-g6-serverRecently, I needed to install Suse Linux Enterprise Server on a HP Proliant Server. The setup goes smoothly until I had to reboot the system, at which point, I got an error when I tried to boot from the hard disk – Error Loading Operating System. On booting with the installation disk in recovery mode, and trying to get grub to boot into the system on the hard disk, I kept on getting the error that /dev/had could not be found.

On looking at grub settings (grub.conf), I noticed that is was trying to boot from a had devise but seeing as the server was running HP’s SmartArray RAID controller, the boot device configures was stored as /dev/cciss/c0d0

So, in order to get things working, here is what I did.

  1. In /etc/grub.conf – add the following line – boot=/dev/cciss/c0d0
  2. Locate your device.map file and make sure it looks like this

    (fd0)    /dev/fd0
    (hd0)    /dev/cciss/c0d0

  3. Run Grub like this (from the installation disc in rescue mode)

    /sbin/grub –batch –device-map=<path>/device.map –config-file=<path>/grub.conf –no-floppy
    grub> root (hd0,0)
    grub> setup (hd0)
    grub> quit

This should successfully install grub on the SmartArray RAID and your system should now be able to boot on its own. I sure hope this helps and saves you the hours it took me to figure it out.

Share

Leave a Reply