今天升級內核到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就是把相關設備信息映射了下