You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Boot-repair陷入无限循环且修复失败,求助恢复原系统硬盘

Boot-repair陷入无限循环且修复失败,求助恢复原系统硬盘

Hey there, sorry to hear you're stuck with this frustrating Boot-repair mess—let's break down what might be going on and walk through practical fixes to get your original drive back up without redoing all that work.

First, let's tackle the network loop issue with Boot-repair. Even though the built-in browser works, the tool might be fussy about specific repository access or hidden proxy settings. Try these quick tweaks:

  • When Boot-repair starts pestering you for network access, look for its advanced options menu and uncheck any boxes related to downloading updates or network-dependent repair steps. This should skip the network check entirely.
  • If that doesn't stop the loop, manually set your DNS to 8.8.8.8 in the live environment's network settings—sometimes Boot-repair struggles with default DNS servers even if basic browsing works.

Since Boot-repair itself isn't delivering results, let's try a manual GRUB repair (this is often more reliable than relying on the tool):

  1. Boot from a Ubuntu 23.04 live USB (the same version you installed on your new drive)
  2. Open a terminal and identify your original drive's partitions:
    • Run sudo fdisk -l to list all partitions. Look for your root partition (usually ext4, the largest one) and if you're using UEFI, the small FAT32 EFI partition.
  3. Mount the root partition:
    sudo mount /dev/sdXn /mnt
    
    Replace sdXn with your root partition (e.g., /dev/sda1)
  4. If using UEFI, mount the EFI partition too:
    sudo mount /dev/sdXp /mnt/boot/efi
    
    Replace sdXp with your EFI partition (e.g., /dev/sda2)
  5. Chroot into your original system to work directly on it:
    sudo chroot /mnt
    
  6. Reinstall GRUB:
    • For UEFI: grub-install /dev/sdX (use the drive name, not partition—e.g., /dev/sda)
    • For BIOS/Legacy mode: Same command, but make sure you booted the live USB in BIOS mode (not UEFI)
  7. Update GRUB to detect all installed systems:
    update-grub
    
  8. Type exit to leave the chroot environment, then reboot—your original drive should now boot properly.

Before diving into repairs, make sure to back up your files from the old drive (since you can read it as a slave) just to be safe. Also, check for filesystem corruption on the original root partition from the live USB:

sudo umount /dev/sdXn
sudo fsck /dev/sdXn

This will fix any errors that might have caused the initial boot failure after your reboot.

As for why Boot-repair failed:

  • The 2014 version is way too outdated—it can't handle modern Ubuntu's UEFI setups and newer GRUB versions.
  • The newer Boot-repair might have hit a bug with your specific partition layout, or its network check is broken even though your connection works (skipping network steps should resolve that if you want to give it another shot).

If the manual GRUB repair doesn't work, try rebuilding the initramfs from the chroot to fix corrupted boot files:

update-initramfs -u

Hope these steps help you recover your original drive—feel free to ask if you run into any snags with specific commands!

备注:内容来源于stack exchange,提问作者Jim_HiTek

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 11:53:01