有關grub的配置問題(lvm相關)

 今天升級內核到2.6.38-2-686出現了狀況

 

Generating grub.cfg ...

/usr/sbin/grub-probe: error: Couldn't find PV pv1. Check your device.map.

查詢以後發現與lvm相關,可能是我在安裝系統後又添加硬盤擴展的緣故。grub沒有新硬盤的信息。於是問題就好找了。
root@debian:~# vim /boot/grub/grub.cfg
root@debian:~# mv /boot/grub/grub.cfg /boot/grub/grub.cfg.bak
root@debian:~# update-grub
Generating grub.cfg ...
/usr/sbin/grub-probe: error: Couldn't find PV pv1. Check your device.map.
有問題?於是
root@debian:~# grub-mkdevicemap
root@debian:~# update-grub
Generating grub.cfg ...
Found linux p_w_picpath: /boot/vmlinuz-2.6.38-2-686
Found initrd p_w_picpath: /boot/initrd.img-2.6.38-2-686
Found linux p_w_picpath: /boot/vmlinuz-2.6.32-5-686
Found initrd p_w_picpath: /boot/initrd.img-2.6.32-5-686
done
 
然後在升級就ok了。
device.map就是把相關設備信息映射了下
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章