LVM on RAIDしようと思ったらDebianのインストールに手間取った
grub-install /dev/sdaが失敗しましたってエラーが出る。
原因は
- GPTにシステムをインストール + BIOSから起動する*1場合はBIOS Boot Partitionというものが必要
- /dev/sd[ab]の先頭に1007KiBのbootable flagが付いたパーティションが必要
- Debianインストーラを入れたUSBメモリに何故かbootable flagが付いていた*2
- bootable flagをoffにした*3
経過
Execute a shellして「chroot /target; grub-install /dev/sda」したらインストーラでは出なかったエラーメッセージが出てきた。
今後もDebianインストーラで困ったら試してみる。*4
# chroot /target # どうやら/targetがインストールされるファイルシステムっぽい事が分かったので # grub-install /dev/sda /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!. /usr/sbin/grub-setup: error: embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.