问题
出现这个错误消息:
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
答案1
你没有内核的initramfs,从grub菜单中选择另一个内核,或者运行 update-initramfs -u -k version
生成initrd,然后update-grub
。
答案2
从LiveCD开始,打开终端
sudo fdisk -l
sudo mount /dev/sdax /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
现在,你可以update-initramfs
,更新grub,不会出现错误了。
update-initramfs -u -k 2.6.38-8-generic (or your version)
如果你不知道版本,使用:
dpkg --list | grep linux-image
更新Grub。
update-grub2
重新启动系统。
相关文章