Hi guys, long time no see. :d,
I want to share a triki or stupid trick on MBR problem.
Yesterday, I was fix a boot problem of HP Blade 460C with CentOS 5.4 i386 installed in my customer, some people in the Net fix that problem with reinstalling grub with grub-install command, I assume they have /dev/sda or /dev/hda on boot device, but since HP comes with RAID Controller (SMART ARRAY) hardware, the sda or hda seem not be use in here, because boot or any disk device come with /dev/cciss/c0d0.
So a workaround for solving this problem is just change boot device and device map on grub configuration.
See my old configuration bellow.
-/etc/grub.conf------- # grub.conf generated by anaconda # # #boot=/dev/sda # default=0 # commented out by Proliant HBA install script default=2 fallback=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu [...]
-/boot/grub/device.map---- # this device map was generated by anaconda (hd4) /dev/cciss/c0d0 (hd0) /dev/sda
Now change "#boot=/dev/sda" with "boot=/dev/cciss/c0d0" in /etc/grub.conf
and "(hd0) /dev/sda" with "(hd0) /dev/cciss/c0d0" in /boot/grub/device.map
after that just running simple grub command bellow
bash> grub --batch --device-map=/boot/grub/device.map --config-file=/boot/grub/grub.conf grub> root (hd0,0) grub> setup (hd0) grub> quit
Restart and hope this help