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

Linux陷入grub rescue模式,求助一次性获取所需全部.mod文件

Fixing GRUB Rescue Mode: Get All Required .mod Files at Once

Hey there, let's sort out this GRUB rescue mess for you. It’s super frustrating when it keeps asking for one module after another—here’s how to grab all the critical ones you need, plus the smarter way to fix the root problem instead of chasing individual files.

Core GRUB Modules You’ll Definitely Need

These are the essential modules GRUB relies on to boot normally, so you’ll want to make sure all of these are present:

  • normal.mod: You already have this one—it’s the foundation for loading the full GRUB menu
  • terminal.mod: The one your system’s asking for right now, enables interactive terminal support
  • linux.mod: Lets GRUB load your Linux kernel
  • initrd.mod: Handles loading the initramfs/initrd image required for boot
  • part_msdos.mod or part_gpt.mod: Depends on your disk’s partition table (MBR = msdos, GPT = gpt)
  • ext2.mod/ext3.mod/ext4.mod: Match the filesystem of your /boot partition (most modern systems use ext4)
  • search.mod: Helps GRUB locate your system partitions and config files
  • configfile.mod: Loads your grub.cfg configuration file to show the boot menu
  • echo.mod: Useful for debugging and printing status messages

The Smart Way: Don’t Download Modules Individually

Instead of hunting down each .mod file one by one (which risks version mismatches), do this:

  1. Boot from a Linux Live USB/CD: Grab a bootable disk for your distro (Ubuntu, Fedora, etc.)—this will let you access your system’s files.
  2. Mount your system partition: Once in the Live environment, mount your root partition (and /boot separately if it’s a dedicated partition) to a directory like /mnt.
  3. Copy all GRUB modules: Navigate to /mnt/boot/grub/<your-architecture>/ (replace <your-architecture> with x86_64-efi for UEFI systems, or i386-pc for BIOS). Copy all the .mod files here to the same directory on your system (if the module folder was corrupted).
  4. Reinstall GRUB entirely (even better): To fix the problem permanently, run the GRUB install command from the Live system. For example:
    grub-install --root-directory=/mnt /dev/sda
    
    Replace /dev/sda with your actual disk device (not a partition like /dev/sda1). This will automatically deploy all necessary modules and rebuild the bootloader correctly.

If You Must Download Individual Modules

If you can’t use a Live system, make sure you download modules that match your GRUB version exactly (check with grub-install --version if you can access it). You can extract the modules from your distro’s GRUB package (e.g., grub2-common on Debian/Ubuntu, grub2 on RHEL/CentOS) instead of grabbing random files online—this avoids compatibility issues.

内容的提问来源于stack exchange,提问作者user781043

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.19 10:02:48