iT邦幫忙

5

在 SmartArray RAID controller 裝 grub

沒太多機會在不同的 server 裝 Linux,
昨天有機會在這舊的 hp proliant 360 G5 作安裝,
結果最後 grub 不認得 HP SmartArray RAID controller 的 /dev/cciss
而無法把 grub 裝到能順利開機。
爬文後用以下步驟才裝上grub:
所要安裝分割的配置環境為:
/dev/cciss/c0d0p1 掛在 /boot
/dev/cciss/c0d0p3 掛在 /

在安裝最後步驟裝不上 grub 後,
或者用安裝光碟片開機後,
掛載分割區的情況會像是這樣:

/dev/cciss/c0d0p1 /mnt/boot
/dev/cciss/c0d0p3 /mnt

如果 ls /mnt/dev 是空的話,
下這個指令把目前的 /dev 也bind在 /mnt/dev 的下面
mount --bind /dev /mnt/dev

然後 vi /mnt/boot/grub/device.map
內容為:

(hd0) /dev/cciss/c0d0


chroot /mnt /bin/bash
grub --device-map /boot/grub/device.map
# 進入到 grub 的模式
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

重開就能順利進到開機的程序。

參考:
HP ProLiant DL380 G5 - Gentoo Linux Wiki
Quick GRUB - Gentoo Linux Wiki
HOWTO: Restore GRUB (if your MBR is messed up)


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言