gnu grub修復 如何修復grub異常

2021-10-13 23:34:10 字數 1230 閱讀 4495

gnu grub(grand unified bootloader簡稱「grub」)是乙個來自gnu專案的多作業系統啟動程式。grub是多啟動規範的實現,它允許使用者可以在計算機內同時擁有多個作業系統,並在計算機啟動時選擇希望執行的作業系統。grub可用於選擇作業系統分割槽上的不同核心,也可用於向這些核心傳遞啟動引數。

環境:red hat enterprise linux server release 7.3

檢視系統資訊並重現故障

故障重現

手動引導系統

重灌grub

[root@localhost ~]# ls /boot/grub2/device.map fonts grubenv i386-pc locale themes[root@localhost ~]# grub2-mkconfig > /boot/grub2/grub.cfggenerating grub configuration file ...found linux image: /boot/vmlinuz-3.10.0-514.el7.x86_64found initrd image: /boot/initramfs-3.10.0-514.el7.x86_64.imgfound linux image: /boot/vmlinuz-0-rescue-f0bcb62b11a44643824cde1c7f3833e4found initrd image: /boot/initramfs-0-rescue-f0bcb62b11a44643824cde1c7f3833e4.imgdone[root@localhost ~]# ls /boot/grub2/device.map fonts grub.cfg grubenv i386-pc locale themes[root@localhost ~]# reboot#重啟驗證修復結果

重啟後能再次成功進入系統,說明修復成功!

Ubuntu和windows系統修復GRUB

安裝linux 和windows 雙系統後會出現引導錯誤,啟動的時候直接進入grub rescue 介面的情況,這時候需要手動修復grub,步驟如下 檢視系統所有分割槽 grubrescue ls 逐個檢查分割槽,找出你的linux 系統盤,直到返回內容不是 error unknown filesy...

如何修復壞硬碟

前段時間用gnu ddrescue修復了乙個壞硬碟。順便看了下硬碟相關知識。先占個位,有空再來整理一下 dd unix dd rescue ddrescue,ddrescue manual 注意ddrescue 和dd rescue是兩個東西。沒有下劃線的是gnu出品,dd rescue的主頁上也推...

thinkphp漏洞如何修復

thinkphp漏洞修復,官方於近日,對現有的thinkphp5.0到5.1所有版本進行了公升級,以及補丁更新,這次更新主要是進行了一些漏洞修復,最嚴重的就是之前存在的sql注入漏洞,以及遠端 執行查詢系統的漏洞都進行了修復,官方本以為沒有問題了,但是在實際的安全檢測當中發現,還是存在問題,還是可以...