温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

怎样修复Boot引导错误

发布时间:2026-09-22 04:54:40 来源:亿速云 阅读:178 作者:小樊 栏目:系统运维

修复 Boot 引导错误(如 Windows/Linux 无法启动、提示 bootmgr is missing、GRUB rescue、No bootable device 等)通常按下面步骤进行。先判断系统类型,再选对应方法。


一、先确认基本情况

  1. 是哪个系统?
    • Windows(10/11)
    • Linux(Ubuntu/CentOS 等)
    • Windows + Linux 双系统
  2. 错误现象是什么?
    • 黑屏提示 No bootable device
    • BOOTMGR is missing
    • GRUB rescue >
    • 自动进入 BIOS/UEFI

二、Windows 引导修复(最常见)

方法 1:用 Windows 安装盘 / PE 修复

  1. 用 Windows 安装 U 盘启动
  2. 选择「修复计算机」→「疑难解答」→「命令提示符」
  3. 依次执行:
bootrec /scanos
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
  1. 重启

若 fixboot 提示“拒绝访问”,在 GPT+UEFI 模式下用下面方法。


方法 2:UEFI 模式修复(GPT 磁盘)

diskpart
list disk
select disk 0
list partition

找到 EFI 分区(通常 100–300MB,FAT32)

select partition x
assign letter=Z:
exit

Z:
cd EFI\Microsoft\Boot
bootrec /fixboot
bcdboot C:\Windows /s Z: /f UEFI

三、Linux(GRUB)引导修复

方法 1:Live CD 修复 GRUB

  1. 用 Ubuntu Live U 盘启动
  2. 打开终端:
sudo fdisk -l
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo update-grub

方法 2:GRUB rescue 模式

ls
set root=(hd0,1)
set prefix=(hd0,1)/boot/grub
insmod normal
normal

进入系统后执行:

sudo grub-install /dev/sda
sudo update-grub

四、双系统引导丢失(Windows + Linux)

推荐用 Linux Live 修复 GRUB(GRUB 可引导 Windows):

sudo os-prober
sudo update-grub

五、BIOS/UEFI 设置检查

  • 启动模式:UEFI / Legacy 要一致
  • 启动顺序是否正确
  • 关闭 Secure Boot(Linux 常见)

六、仍无法启动?

可提供:

  • 系统版本
  • 错误截图或提示
  • 磁盘类型(MBR/GPT)

我可以直接给你一步一步命令版修复方案。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI
助
手