Error Codes Wiki

Linux Dropped to initramfs Shell Fix

Criticallinux boot

Overview

Fix "(initramfs)" shell during boot. The kernel could not mount the root filesystem.

Key Details

  • Prompt: (initramfs)
  • Category: Linux Boot Error
  • Root filesystem mount failed
  • Kernel dropped to emergency shell

Common Causes

  • Root filesystem is corrupted
  • Incorrect root= parameter in GRUB
  • Disk UUID changed after cloning
  • Missing filesystem driver in initramfs

Steps

  1. 1Run fsck: fsck /dev/sda2 (or the root partition)
  2. 2If fsck fixes errors, type exit to continue boot
  3. 3Check GRUB config: cat /boot/grub/grub.cfg | grep root=
  4. 4Update UUID: blkid and update GRUB accordingly
  5. 5Rebuild initramfs from live USB if drivers are missing

Tags

linuxlinux-bootlinux initramfs shellubuntuterminal

More in Linux Boot

Frequently Asked Questions

Initial RAM filesystem — a mini Linux loaded before the real root filesystem.