Kernel Panic - not syncing - Linux

Table of Contents

我使用的是Lubuntu 15.04

原來的剛安裝完lubuntu,Linux kernel的版本 3.19

因為我需要修改一些network的code,我去找了

3.18.24的source code來編譯,編譯都沒有什麼問題

順利成功 /boot下也有了3.18.24的版本

然後重新 update-grub後

重新開機選擇3.18.24卻出現

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

開不了

但是如果使用原來的 3.19 卻沒有問題

我有google,有提供一些解決方式

但是沒有說明是什麼原因造成的

解決文章說要先開原來版本3.19

sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
update-initramfs -u -k 3.18.24
update-grub2

重新開機,選擇3.18.24就可以開了

不曉得是什麼原因會有這問題?

謝謝!

--

All Comments

Edward Lewis avatarEdward Lewis2015-12-14
你的 config 怎麼生出來的
Hedwig avatarHedwig2015-12-19
原本有跑過 update-initramfs 嗎?