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

Ubuntu 20.04升级至22.04 Jammy后重启进入Initramfs问题求助

Ubuntu 20.04升级至22.04 Jammy后重启进入Initramfs问题求助

Hey there, sorry to hear you're stuck with this annoying initramfs loop after upgrading to Ubuntu 22.04 Jammy—this issue usually pops up due to filesystem corruption mid-upgrade or misconfigured boot components. Let's walk through practical fixes to get your laptop back on track:

  • Fix 1: Run filesystem check (fsck)
    The most common cause here is a corrupted root filesystem. In the initramfs prompt, first find your root partition using lsblk or blkid—look for the ext4 partition marked as /. Then run:
    fsck /dev/sdaX
    Replace /dev/sdaX with your actual root partition (like /dev/sda1). When prompted to fix detected errors, type y and hit Enter for each prompt. Once the check finishes, type reboot to restart your system.

  • Fix 2: Boot with an older kernel and repair GRUB
    If fsck doesn't resolve the issue, try booting with a legacy kernel from your 20.04 setup:

    1. Reboot your laptop and hold the Shift key to bring up the GRUB menu.
    2. Select Advanced options for Ubuntu, then pick the oldest available kernel (labeled with your 20.04 version).
    3. Once logged into the system, update GRUB to properly recognize the new Jammy kernel:
      sudo update-grub
    4. Reboot your laptop—this should let you boot into Ubuntu 22.04 normally.
  • Fix 3: Regenerate the initramfs image
    If the above steps fail, the initramfs image for the new kernel might be corrupted. Boot into the older kernel as described in Fix 2, then run:
    sudo update-initramfs -u -k all
    This regenerates initramfs for all installed kernels. After it completes, run sudo update-grub again and reboot.

If none of these work, double-check that your /boot partition isn't full—you can verify this once logged into the older kernel with df -h /boot. A full boot partition can break kernel updates and initramfs generation.

备注:内容来源于stack exchange,提问作者ميرفت خليل السامي

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.21 12:29:35