Ubuntu stuck on initramfs

Ubuntu stuck on initramfs, How to fix initramfs issue in Ubuntu, How do I exit initramfs on Ubuntu, How do I fix Ubuntu stuck on loading screen, मैं उबंटू पर initramfs से कैसे बाहर निकलूं, उबंटू initramfs के लिए क्या उपयोग करता है, Initramfs boot manually, Initramfs boot stuck, Initramfs boot Ubuntu, Ubuntu BusyBox initramfs boot, Initramfs Ubuntu 22, Initramfs fsck not found, Kubuntu stuck on initramfs, Busybox v1 30.1 Ubuntu initramfs, initramfs prompt fix, Initramfs prompt fix ubuntu, Initramfs prompt fix command line, Initramfs boot manually, How to exit from initramfs in Ubuntu, Initramfs boot stuck, Initramfs reboot not working, Initramfs fsck not found, Initramfs fix, Ubuntu boot error fsck, ubuntu fsck on boot, ubuntu fsck manually, run fsck manually ubuntu initramfs, how to run fsck manually from initramfs, fsck error 2, ubuntu 22.04 fsck on boot, fsck exited with status code 4, fsck /dev/sdal, How to fix fsck errors in Ubuntu, How do I boot into fsck in Ubuntu, How to fix boot issues in Ubuntu, How to force fsck at boot, Ubuntu fsck on boot, Ubuntu boot error fsck kali, Ubuntu fsck manually, Run fsck manually Ubuntu initramfs, How to run fsck manually from initramfs, Fsck error 2, Ubuntu 22.04 fsck on boot, Fsck exited with status code 4, Ubuntu filesystem check command, ubuntu fsck on boot, fsck ubuntu, fsck command, fsck command in linux, fsck command not found, fsck repair command, how to run fsck manually in linux, fsck /dev/sdal, fsck command in linux, fsck linux command, fsck command linux, linux fsck command, linux file system check command, fsck, fsck command, linux file system check, run fsck manually, how to check file system in linux, fsck linux, linux fsck, Ubuntu recovery from initramfs, how to exit from initramfs in ubuntu, initramfs boot manually, initramfs boot stuck, initramfs ubuntu 22, ubuntu busybox initramfs boot, busybox vl 30.1 ubuntu initramfs, ubuntu initramfs missing modules, ubuntu 24.04 initramfs, Ubuntu recovery from initramfs not working, Ubuntu recovery from initramfs command line, How to exit from initramfs in Ubuntu, Initramfs boot manually, Initramfs boot stuck, Initramfs Ubuntu 22, Ubuntu BusyBox initramfs boot, Busybox v1 30.1 Ubuntu initramfs, initramfs no blkid output, initramfs blkid empty, initramfs list disks, initramfs boot manually, initramfs uuid does not exist, initramfs commands, initramfs fsck not found, blkid no output, initramfs not found, Initramfs no blkid output ubuntu, Initramfs blkid empty, Initramfs list disks, Initramfs no blkid output mac, Initramfs boot manually, Initramfs uuid does not exist, Initramfs commands, Initramfs fsck not found, fsck no such file or directory, fsck no such file or directory, fsck no such file or directory while trying to open, fsck auto no such file or directory, fsck ext2 no such file or directory, fsck ext4 no such file or directory, fsck.ext2 no such file or directory while trying to open, initramfs fsck no such file or directory, fsck ext4 no such file or directory while trying to open dev, fsck error 2 no such file or directory, ubuntu initramfs fsck no such file or directory, Fsck no such file or directory ubuntu, Fsck no such file or directory ext2, Fsck error 2 (No such file or directory) while executing fsck ext2, E2fsck: No such file or directory while trying to open, Run fsck manually Ubuntu initramfs, Fsck exited with status code 1, How to run fsck manually, Fsck ext4 No such file or directory, boot-repair ubuntu, ubuntu boot-repair tool, ubuntu grub repair, ubuntu boot-repair usb, boot repair-disk, unable to locate package boot-repair, install boot-repair ubuntu, boot-repair linux, boot repair, boot repair disk ubuntu, boot repair in ubuntu, boot repair ubuntu, boot-repair disk ubuntu, boot-repair-disk ubuntu, ubuntu boot repair, ubuntu boot-repair, ubuntu boot-repair-disk, ubuntu repair boot, boot-repair ubuntu, boot-repair, boot repair windows 10, grub repair ubuntu, boot repair disk, boot-repair-disk, boot repair-disk, repair grub, repair ubuntu, windows 10 boot repair tool, Ubuntu boot repair command line, Ubuntu live USB repair, boot-repair ubuntu, ubuntu boot-repair tool, ubuntu live usb download, repair ubuntu from terminal, ubuntu repair grub from live usb, repair ubuntu 24.04 from usb, create bootable usb ubuntu from windows, ubuntu bootable usb windows 10, how to fix Ubuntu boot stuck, Ubuntu stuck on boot black screen, How to fix ubuntu boot stuck reddit, Ubuntu stuck on boot after update, Ubuntu stuck on boot dev sda1 clean, Ubuntu stuck on boot gdm service, Ubuntu stuck on installing the system, Ubuntu stuck on login screen, Ubuntu 24.04 stuck on boot screen,

If your Ubuntu system is stuck on the initramfs prompt, it usually indicates that the system is having trouble mounting the root filesystem. This can happen due to various reasons such as filesystem corruption, incorrect UUIDs in /etc/fstab, or hardware issues. Here are some steps you can take to troubleshoot and resolve the issue:

Problem Overview

If Ubuntu boots into the initramfs shell ((initramfs) prompt), it usually means it can’t find or mount the root filesystem. Common causes:

  • Filesystem corruption

  • Wrong UUID in /etc/fstab

  • Disk not detected

  • LVM/encryption issues

  • Hardware failure

Step-by-Step Fix

Step 1: Check if Disks Are Detected

At the (initramfs) prompt, run:

 
ls /dev/sd*

Also try:

ls /dev/nvme*

You should see something like /dev/sda, /dev/sda1, /dev/nvme0n1p1, etc.

❌ If nothing is shown, try loading drivers:

modprobe ahci # For SATA drives
modprobe nvme # For NVMe SSDs
modprobe dm-mod # For LVM or RAID

Then check again with ls /dev/sd*.

 Step 2: Identify Your Root Partition

If disks are listed, run:

blkid

You’ll see output like:

pgsql
/dev/sda1: UUID="xxxx" TYPE="ext4"

If blkid gives no output, try:

fdisk -l

Look for a Linux partition (usually ext4 or xfs). Example: /dev/sda1, /dev/nvme0n1p2.

Step 3: Run Filesystem Check (fsck)

Now run:

fsck -f /dev/sda1

Replace /dev/sda1 with your partition.


If you get “no such file or directory”, double-check the device name.

If fsck finds and fixes errors, type:

reboot

If fsck still fails, try:

fsck -y /dev/sda1

This will automatically confirm fixes.

 Step 4: Check for LVM or Encrypted Partitions (If Applicable)

If you’re using LVM or encryption:

lvm lvscan # List logical volumes
vgchange -ay # Activate all volume groups

Then:

fsck -f /dev/mapper/ubuntu--vg-root

Step 5: Check or Fix /etc/fstab (Advanced)

If fsck succeeds, try mounting the root partition:

mount /dev/sda1 /mnt
ls /mnt

If the root filesystem is visible:

nano /mnt/etc/fstab

Check for wrong UUIDs. Get the correct one using:

blkid

Compare UUIDs and correct them in /mnt/etc/fstab.

 Step 6: Rebuild Initramfs (Optional if root mounts)

If you’re still stuck, try this:

chroot /mnt # If you're in a live USB environment
update-initramfs -u
exit

Then reboot:

reboot

 If Nothing Works – Use Live USB

If the issue cannot be fixed via initramfs, boot into a Ubuntu Live USB:

Step-by-Step:

  1. Boot into Ubuntu Live USB

  2. Open terminal

 
sudo fdisk -l # Find your root partition
sudo mount /dev/sda1 /mnt
sudo fsck -f /dev/sda1 # Check filesystem
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
update-initramfs -u
update-grub
exit
sudo reboot

Bonus: Reinstall GRUB (If Bootloader Is Corrupted)

In chroot from live USB:

grub-install /dev/sda # Not /dev/sda1!
update-grub

Check Disk Health (Optional but Recommended)

From live USB:

sudo apt install smartmontools
sudo smartctl -a /dev/sda

Look for Reallocated Sector Count, Pending Sectors, etc.

 Summary

Step Task
1️⃣ Check disk detection: ls /dev/sd*
2️⃣ Identify partition: blkid or fdisk -l
3️⃣ Run fsck: fsck -f /dev/sda1
4️⃣ For LVM: vgchange -ay, then fsck
5️⃣ Mount and check /etc/fstab
6️⃣ Rebuild initramfs: update-initramfs -u
7️⃣ Use Live USB if needed
8️⃣ Check disk health: smartctl -a /dev/sda
9️⃣ Reinstall GRUB if needed

Recent Post

Scroll to Top