Having had the misfortune to be editing the partition table of one of our Oracle servers, I discovered that Grub 0.97 (the SLES SP1 variety) doesn’t play well with DL380 Smart Array Controllers. The magic auto detection that we’ve all grown to know and love just… it just doesn’t. Here’s how to regain that Grub magic…
[ad#leaderboard]
WMSR0008:~ # grub-install –recheck –root-directory=/mnt /dev/cciss/c0d0
WMSR0008:~ #/dev/cciss/c0d0 does not have any corresponding BIOS drive.
You have to hand hold Grub through the process instead.
Map hd0 to the correct device node
grub> device (hd0) /dev/cciss/c0d0
Specify the root device
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
Search for and (hopefully) find the stage1 loader
grub> find /grub/stage1
(hd0,0)
Tell it to install to the bootsector
grub> setup (hd0)
Checking if “/boot/grub/stage1” exists… yes
Checking if “/boot/grub/stage2” exists… yes
Checking if “/boot/grub/e2fs_stage1_5” exists… yes
Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 22 sectors are embedded. succeeded
Running “install /boot/grub/stage1 d (
hd0) (hd0)1+22 p
(hd0,0)/boot/grub/stage
2 /boot/grub/grub.conf”…
succeeded Done.
Hurray!
grub> quit
One fresh bootsector and bootloader. Reboot and you’re sorted.
Recent Comments