[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:56823] Re: grub-install のエラー



木下さん

先日の週末に復旧に取り組んでみました。
まず、LVM ですが、結論から言うと、壊れているわけではありませんでした。前回は、rescue CDで立ち上げた後に、mount -a しても logical volume が mountできなかったので、LVM の partition 構成が壊れてしまったのだと思ったのですが、今回 lvscan をしてみたところ、きちんとlogical volumeが認識されました。
mount -a で logical volumeがmountされないと誤解したのは、rescue CDで root の mount point に /dev/(lvm name)/root を選択した場合には、/etc/mtab の内容が、 /dev/(lvm name)/root/ のentry のみになってしまい、更にmatabがread onlyになっているため書き換えされず、実際には他のlvmもmountされているにも関わらず、それらが mountやdfでは見えないからでした。実際にはmountされていたので、後は、GRUB さえ、きちんとinstallできれば良いという状況でした。
そこで、/dev/sda1を/bootにmountして grubのinstallをしようとしたのですが、/dev/sda1がunknown formatでmountできない状態でしたので、まずは、/dev/sda1をetx2でformatしなおしてから、再度 /bootに mountし、grub-install /dev/sdaを実行しましたが、

# 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: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is descouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.

となり、前回と同様の状況に戻りました。そこで、余り深いことは考えずに、いつものパーンで
# grub-install --force /dev/sda
を実行したところ、no errorで処理が完了してしまいました。この状態でrebootしたところ、grubも正常に動作し、復旧するこ とができました。
うまく行かなかった理由、うまく言った理由、いずれも全くわからないまま、結果オーライになってしまったため、皆さんの参考にはなりません が、結果報告とさせていただきたいと思います。

木下さん、情報提供ありがとうございました。再度、grubでハマった時には、頂いた方法を試してみたいと思います。余り、そういう状況に陥 りたくはありませんが。。。。

 笛田

(2013/05/26 9:33), htaka wrote:
> 木下さん
>
> こんちには、笛田です。情報ありがとうございます。
>
> 実は、前回の投稿後、ネットで見つけた
> # parted /dev/sda set 1 bios_grub on
> # grub-mkdevicemap
> # del /etc/mtab
> 等をしてしまった結果、bootは、GRUB loadingまで進むようになったものの、LVMの構成が見えない状態になってしまいました。
> まずは、LVMの復旧をしてから、木下さんに教えていただいた方法を試してみます。
>  笛田
>
> (2013/05/26 1:17), Haruo Kinoshita wrote:
>> こんにちは、木下です。
>>
>> grub苦労人おつかれさまです。
>> 一足先にUEFIにgrubをインストールできてハマりからは卒業できました。
>>
>> grub-install で自分は上手く行ったためしがないので、
>> ブートを壊したときは、rescue modeの中で
>> dpkg-reconfigure grub-pc と update-grub を実行して直していました。
>>
>> ご参考になれば。
>>
>> 2013/5/25 htaka <9seihtaka@xxxxxxxxx>:
>>> みなさん、こんにちは。お世話になります。
>>>
>>> Debian をWheezyにupgradeし、Kernel 3.2.41をrecomplieして、dpkg -i linux-image....debをしてrebootしたところ、
>>> bootの際に、GRUBと表示された状態で止まってしまうようになってしまったため、install CDのrescue modeで、grub-installを実行したのですが、
>>>
>>> # 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: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is descouraged..
>>> /usr/sbin/grub-setup: error: will not proceed with blocklists.
>>>
>>> # grub-install --force /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: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is descouraged..
>>> /usr/sbin/grub-setup: error: cannot read `/grub/core.img' correctly.
>>>
>>> となってしまいます。解決のためには、何から手を付けたら良いのか、アドバイスを頂けないでしょうか。なお、Diskのpartitionは、
>>> # parted /dev/sda
>>> Model: ATA .....
>>> Disk /dev/sda: 2000GB
>>> Sector size (logical/physical): 512B/512B
>>> Partition Table: gpt
>>>
>>> Number Start End Size File system Name Flags
>>> 1 17.4kB 256MB 256MB ext2 boot
>>> 2 256MB 2000GB 2000GB lvm
>>>
>>> という状態です。
>>> また、dpkg -i linux-image...debを実行すると、最後に
>>> Imagepath /boot/images not found
>>> done
>>> と表示されます。
>>> よろしくお願いします。
>>>
>>>  笛田
>>>
>>>
>