倒霉伊始
升級(jí)內(nèi)核過(guò)程中出現(xiàn)如下警告,然后重啟引導(dǎo)失?。?br>Warning: os-prober will not be executed to detect other bootable partitions
屏幕內(nèi)容如下:
GNU GRUB version 2.06
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions.
Anywhere else TAB lists possible device or file completions. ESC at any time exits.
grub>
從 GRUB 2 命令行界面啟動(dòng)系統(tǒng)
因?yàn)榭ㄔ?Grub 2 命令行界面,我們需要手動(dòng)輸命令引導(dǎo)。
- 一般情況只需要輸入
normal
并回車(chē),就能像往常一樣正常啟動(dòng)。
grub> normal
- 如果報(bào)不認(rèn)識(shí)該命令,那就加載
normal
模塊,再來(lái)一遍前面的操作。
grub> insmod normal
grub> normal
進(jìn)系統(tǒng)修復(fù)配置
根據(jù)知乎專(zhuān)欄作者 ayamir 寫(xiě)的文章 2021 Archlinux雙系統(tǒng)安裝教程(超詳細(xì))
說(shuō)是更新到 Grub 2.06 的 os-prober 用戶(hù)需要手動(dòng)干預(yù)
grub 2.06 更新已經(jīng)進(jìn)入官方源,本次更新有以下兩個(gè)需要注意的變化:
- 如果您正在使用 os-prober 生成其他系統(tǒng)的引導(dǎo)項(xiàng),grub 2.06 不再自動(dòng)啟用 os-prober,您需要添 GRUB_DISABLE_OS_PROBER=false 至 /etc/default/grub 配置文件中并且重新運(yùn)行 grub-mkconfig
- grub 2.06 現(xiàn)在會(huì)自動(dòng)添加 固件設(shè)置菜單 引導(dǎo)項(xiàng)目,無(wú)需手動(dòng)創(chuàng)建
不管何種原因?qū)е碌墓收?,我們都?/etc/default/grub
這個(gè)文件末尾添加一行
(如果有找到 #GRUB_DISABLE_OS_PROBER=false
則去掉前面的井號(hào) #
保存完事 )
GRUB_DISABLE_OS_PROBER=false
然后
sudo chmod 644 /etc/default/grub
sudo update-grub2
sudo apt update && apt install -y os-prober
徹底解決問(wèn)題的關(guān)鍵步驟
搬運(yùn)自 Ubuntu 只能進(jìn)入grub命令行解決方案sudo grub-install /dev/sda
(sda是你的硬盤(pán)號(hào)碼,千萬(wàn)不要指定分區(qū)號(hào)碼,例如sda1,sda5等都不對(duì))文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-721748.html
萬(wàn)事大吉
可以重啟測(cè)試一下了文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-721748.html
到了這里,關(guān)于Ubuntu 22.04 更新完內(nèi)核重啟卡在 grub 命令行解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!