Skip to content

Instantly share code, notes, and snippets.

@codethereforam
Created August 17, 2024 07:33
Show Gist options
  • Select an option

  • Save codethereforam/857e0cffe3f828a6ace059bf2180c206 to your computer and use it in GitHub Desktop.

Select an option

Save codethereforam/857e0cffe3f828a6ace059bf2180c206 to your computer and use it in GitHub Desktop.
无法启动Lubuntu,报错和initramfs相关

启动报错

initramfs: couldn't load /libahci.ko: exec format error
initramfs: timeout while waiting for devices / filesystem to appear(did you specify the correct ones?)

解决思路

  1. 启动Live USB
  2. 挂载根文件系统到 /mnt
  3. 挂载必要的文件系统 (/dev, /proc, /sys, /run)
  4. 进入chroot环境:sudo chroot /mnt
  5. 更新initramfs文件:update-initramfs -u
  6. 退出并重启
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment