ubuntu16.04出現以下畫面:
初步估計:引導出現問題了,系統啟動找不到引導了。
方案一:
- Reboot.
- Press F2 when the screen is lit up and go to the BIOS settings.
- System Configurations → SATA Operations
- Change RAID to AHCI
結果:沒有解決。
方案二:
I opened terminal and typed the following command:
sudo grub-install /dev/sda
and then I typed another command to update grub:
sudo update-grub
After all of this, I rebooted computer and finally, error disappeared and problem was fixed!
問題是:根本進不去桌面,無法打開終端,也就無法使用sudo指令。
方案三:
I just randomly started typing stuff... try:
(initramfs) blkid
(initramfs) blockdev --rereadpt /dev/sda
(initramfs) blkid
(initramfs) exit
This at least gets you to the desktop where you can begin trouble shooting your problem which is probably due to a proprietary driver or something.
結果:失敗,還是進入不了桌面。
下面我決定利用rufus軟體制作u盤啟動盤并進行引導的修複。
由于突然斷電,重新啟動後發現不能進入Ubuntu系統,進入了GRUB界面。按照網上的方法在GRUB界面下修複,但是還是不能成功。原因可能是GRUB啟動檔案或者啟動分區遭到破壞,于是嘗試了另外一種方法,就是利用Ubuntu的安裝CD光牒,加載Boot-Repair修複引導程式來解決問題。
這裡涉及三個問題:
- 制作Ubuntu安裝CD光牒或U盤,然後啟動到Ubuntu安裝界面,注意這時候要選擇“試用Ubuntu”,然後就能進入Ubuntu桌面。
- 連接配接上網際網路,打開終端,然後下載下傳安裝并運作Boot-Repair進行修複。
- 如果發生分區問題,要使用GParted分區軟體分出一個BIOS-boot分區,然後再修複。
【一般情況下的修複方法】
打開終端:
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
然後進入到Boot-Repair修複引導程式,點選“推薦修複”,如果沒有錯誤提示的話,重新開機豈可成功修複。
在運作:
sudo apt-get install -y boot-repair && boot-repair
的時候,出現如下界面:
即:無法定位軟體包:boot-repair.