Fixing Manjaro Linux Boot Error - Unable to find root device

If you update your Manjaro Linux operating system to a newer version of the Linux kernel and the update fails. Your favorite Linux operating system might not boot anymore. In this article, I show you how to fix it.

The issue

A couple of days ago I was working in Manjaro I saw system updates being available. As usual, I update my system. When I looked at the update log, I saw the update to the latest Linux kernel failed. I continued to restart my machine and try the update again. That was my initial thought. Then my system did not want to boot into the OS anymore. I get to the GRUB menu to see my available operating system but if I select my Manjaro operating system to boot into I get the following error.

ERROR: device 'UUID-snip' not found. Skip fsck.

ERROR: Unable to find root device 'UUID-snip'

You are being dropped to a recovery shell

snip = GUID value

The magic fix

To solve this error and be able to boot back into your Manjaro Linux OS you have to perform a recovery update to reinstall the Linux kernel. To start, you need a Manjaro Live CD to start up from.

You boot into a Manjaro Live CD.
Make a directory to mount the root partition

mkdir /mnt/manjaro  
mount /dev/sda2 /mnt/manjaro  

Mount system folders and files.

cd /mnt/manjaro  
mount -t proc proc proc/  
mount -t sysfs sys sys/  
mount -o bind /dev dev/  

My boot directory is NOT on a separate partition. If yours are on a separate partition, then you need to mount that as well.

mount /dev/sda1 boot/  

Then issue the chroot command and configure the network:

chroot . /bin/bash  
dhcpcd eth0  

Execute the following commands.

pacman -Syy  
pacman -Syu  
pacman -S udev  
pacman -S mkinitcpio  
pacman -Sy linux  
mikinitcpio -p linux  

When all the above commands executed successfully, you can exit and reboot your machine.

exit  
reboot  

Summary

As you can see, all operating systems are vulnerable to updates failing and breaking your operating system. The steps and commands above have helped me to recover my machine where an upgrade to the latest Linux kernel upgrade failed. I hope this article helps you if you have the same problem.

Table of contents
Article Tags
Getting Started SharePoint Office 365 Azure SQL Server Node.js IoT News Architecture Review Elixir Programming Elm
Up