Linux Dropped to initramfs Shell Fix
About Linux Dropped to initramfs Shell Fix
Fix "(initramfs)" shell during boot. The kernel could not mount the root filesystem. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.
Here are the key things to understand: Prompt: (initramfs). Category: Linux Boot Error. Root filesystem mount failed. Kernel dropped to emergency shell. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.
The most common reasons this occurs include: Root filesystem is corrupted. Incorrect root= parameter in GRUB. Disk UUID changed after cloning. Missing filesystem driver in initramfs. Identifying the root cause is the first step toward finding the right solution.
To resolve this, follow these recommended steps: Run fsck: fsck /dev/sda2 (or the root partition). If fsck fixes errors, type exit to continue boot. Check GRUB config: cat /boot/grub/grub.cfg | grep root=. Update UUID: blkid and update GRUB accordingly. Rebuild initramfs from live USB if drivers are missing. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.
This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.
Quick Answer
What is initramfs?
Initial RAM filesystem — a mini Linux loaded before the real root filesystem.
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
- 1Run fsck: fsck /dev/sda2 (or the root partition)
- 2If fsck fixes errors, type exit to continue boot
- 3Check GRUB config: cat /boot/grub/grub.cfg | grep root=
- 4Update UUID: blkid and update GRUB accordingly
- 5Rebuild initramfs from live USB if drivers are missing