Linux系統安裝出錯後出現grub rescue的修複方法

來源:互聯網
上載者:User

Linux系統安裝出錯後出現grub rescue的修複方法 1、先使用ls命令,找到Linux系統的安裝檔案在哪個分區: grub rescue>ls 會羅列所有的磁碟分割資訊,比方說:(hd0,1),(hd0,5),(hd0,3),(hd0,2) 2. 然後依次調用如下命令: X表示各個分區號碼 grub rescue>ls (hd0,X) 如果都找不到的話,需要查一下是否因為Linux版本差異,造成grub的路徑不對。 3. 假設找到(hd0,5)時,顯示了檔案夾中的檔案,則表示Linux安裝在這個分區。 4. 調用如下命令: grub rescue>set root=(hd0,5) grub rescue>set prefix=(hd0,5)/boot/grub grub rescue>insmod normal 5.(成功後grub rescue字型的顏色會發生變化)然後調用如下命令,就可以顯示出丟失的grub菜單了。 grub rescue>normal 如果不行可把部分命令改成下面形式試下: grub rescue>ls (hd0,X)/boot/grub grub rescue>set root=(hd0,5) grub rescue>set prefix=(hd0,5)/boot/grub grub rescue>insmod /boot/grub/normal.mod 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.