歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu升級後無法啟動 kernel panic - not syncing

Ubuntu升級後無法啟動 kernel panic - not syncing

日期:2017/2/28 16:38:15   编辑:Linux教程

Ubuntu ,無法啟動
出錯信息:
kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,6)

修復過程:
grub>ls
grub>ls (hd0,x)/ #找出WUBI安裝的盤,裡面有ubuntu/這個目錄。
grub> insmod ntfs #加載ntfs模塊,因為WUBI將ubuntu安裝到了我分的ntfs盤上
grub>set root=(hd0,5) #這裡(hd0,5)就是我找到的ubuntu安裝的分區
grub>ls $Boot #找到我們BOOT分區的UUID,下一步要用到,我這裡顯示出來的:2250018e50016a3d
grub>search --no-floppy --fs-uuid --set 2250018e50016a3d #這裡的UUID就是上一定找出來的那個
grub>loopback loop0 /ubuntu/disks/root.disk #設loop0,WUBI裝ubuntu安裝成了一個root.disk文件
grub>set root=(loop0) #重設root
grub>linux /boot/vmlinuzxxxxxxxxx (tab補全即可) root=/dev/sdax loop=/ubuntu/disks/root.disk ro quiet splash #這裡的x我的是5,你的就自己看吧。加載內核
grub>initrd /boot/initrd.imgxxxxxxxxxxxx(tab 補全即可) #不用說大家都知道
gurb>boot


此時要先卸載grub2,再重裝grub2

sudo apt-get purge grub-common grub-pc //卸載grub2
sudo apt-get install grub-common grub-pc //重裝grub2
sudo reboot 重啟即可

注意:
如果按照下面這個步驟 重裝grub2
sudo update-grub2
sudo reboot

重新啟動後,出現另一個錯誤:
屏幕上顯示:
GNU GRUB version 1.97~bea4
[minimal BASH-like lin editing is supported For the first word,TAB licts possible command completions Anywhere elso TAB lists possible device/file completions]
sh:grub>(光標,讓你輸入東西)

Copyright © Linux教程網 All Rights Reserved