error: no such partition
grub rescue>
連XP都進(jìn)不了了,知道怎么辦嗎!
grub2修復(fù)方法:
1.Ubuntu Grub Rescue 雙系統(tǒng)重裝windows造成grub2被改寫的修復(fù)
方法一 grub4dos0.4.4
在Windows啟動項上加上grub4dos啟動(不多說了,看置頂貼),重啟選擇進(jìn)入grub,在命令行下輸入(/boot單獨分區(qū)的去掉 /boot)
代碼:
grub>find –set-root /boot/grub/core.img
grub>kernel /boot/grub/core.img
grub>boot
進(jìn)入grub2菜單,進(jìn)入系統(tǒng)后再執(zhí)行
代碼:
sudo grub-install /dev/sd?
Ubuntu Grub Rescue方法二 進(jìn)入Livecd 后修復(fù)
引用:
sudo -i
mount 你的根分區(qū) /mnt
mount 你的/boot 分區(qū) /mnt/boot #如果有的話
#掛載你其他的分區(qū),如果有的話
# 重建grub到sda的mbr
grub-install –root-directory=/mnt /dev/sda
2. Ubuntu Grub Rescue由于root分區(qū)uuid改變造成的不能正常啟動,只能進(jìn)入grub rescue模式的修復(fù)
代碼:
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
這時就可以調(diào)出 /boot/grub/grub.cfg,修改相應(yīng)uuid,
改到命令行下
grub>insmod /boot/grub/linux.mod grub>set root=hd?,? grub>linux /boot/vmlinuz-*** root=/dev/sd grub>initrd /boot/initrg.img-****
進(jìn)入系統(tǒng)
hd?,? 是grub文件所在分區(qū) sda? 是/分區(qū)。
3. grub模塊和配置文件grub.cfg受損無法啟動時修復(fù)
Livcd啟動進(jìn)入試用
引用:
sudo -i
mount 你的根分區(qū) /mnt
mount 你的/boot 分區(qū) /mnt/boot #如果有的話
# 掛載你其他的分區(qū),如果有的話
# 重建grub到sda的mbr
grub-install –root-directory=/mnt /dev/sda
# 重建grub.cfg
mount –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
感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“Ubuntu Grub Rescue修復(fù)方法有哪些”這篇文章對大家有幫助,同時也希望大家多多支持箭頭云,更多相關(guān)知識等著你來學(xué)習(xí)!
更多關(guān)于云服務(wù)器,域名注冊,虛擬主機(jī)的問題,請訪問三五互聯(lián)官網(wǎng):m.shinetop.cn