久久ER99热精品一区二区-久久精品99国产精品日本-久久精品免费一区二区三区-久久综合九色综合欧美狠狠

新聞中心

EEPW首頁 > 模擬技術 > 設計應用 > Ubuntu Grub Rescue幾種修復方法

Ubuntu Grub Rescue幾種修復方法

作者: 時間:2011-06-11 來源:網絡 收藏

重啟電腦直接進入grub rescue模式重啟后的顯示是

GRUB loading

error: no such partition

grub rescue>

連XP都進不了了,知道怎么辦嗎!

下面一起來看看grub2幾種修復方法

1.Ubuntu Grub Rescue 雙系統重裝windows造成grub2被改寫的修復

方法一 grub4dos0.4.4

在Windows啟動項上加上grub4dos啟動(不多說了,看置頂貼),重啟選擇進入grub,在命令行下輸入(/boot單獨分區的去掉 /boot)

代碼:grub>find --set-root /boot/grub/core.imggrub>kernel /boot/grub/core.imggrub>boot進入grub2菜單,進入系統后再執行代碼:sudo grub-install /dev/sd?Ubuntu Grub Rescue方法二 進入Livecd 后修復引用:sudo -imount 你的根分區 /mntmount 你的/boot 分區 /mnt/boot #如果有的話#掛載你其他的分區,如果有的話# 重建grub到sda的mbrgrub-install --root-directory=/mnt /dev/sda

2. Ubuntu Grub Rescue由于root分區uuid改變造成的不能正常啟動,只能進入grub rescue模式的修復

代碼:

grub rescue>set  grub rescue>prefix=(hd?,?)/grub  grub rescue>root=hd?,?  grub rescue>set root=hd?,?  grub rescue>set prefix=(hd?,?)/boot/grub  grub rescue>set  grub rescue>root=hd?,?  grub rescue>prefix=(hd?,?)/boot/grub  grub rescue>insmod /boot/grub/normal.mod  grub rescue>normal  這時就可以調出 /boot/grub/grub.cfg,修改相應uuid,改到命令行下grub>insmod /boot/grub/linux.mod  grub>set root=hd?,?  grub>linux /boot/vmlinuz-*** root=/dev/sd??  grub>initrd /boot/initrg.img-****  進入系統hd?,? 是grub文件所在分區 sda? 是/分區。

3. grub模塊和配置文件grub.cfg受損無法啟動時修復

Livcd啟動進入試用引用:sudo -imount 你的根分區 /mntmount 你的/boot 分區 /mnt/boot #如果有的話# 掛載你其他的分區,如果有的話# 重建grub到sda的mbrgrub-install --root-directory=/mnt /dev/sda# 重建grub.cfgmount --bind /proc /mnt/proc  mount --bind /dev /mnt/dev  mount --bind /sys /mnt/sys  chroot /mnt update-grub  umount /mnt/sys  umount /mnt/dev  umount /mnt/proc


評論


相關推薦

技術專區

關閉