less than 1 minute read

I decided to upgrade a Debian based system with a new motherboard. I did not expect any issues because Linux is quite flexible regarding hardware changes. Unfortunately, the detection order of my hard drives changed (which is most probably my fault). This lead to an issue during the boot process saying that the root file system cannot be mounted.

The specific error shown was

mount: can't read '/etc/fstab': No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
No init found. Try passing init= bootarg.

The cause of the issue was a fixed parameter root in the Grub configuration that did not use a UUID but the name of the device. This name, obviously, did not match my new names. The boot failed.

The solution is to press the e key in the grub boot menu and change this parameter to the correct name. After booting, you just have to update grub by issuing the commands

  • update-grub
  • grub-install /dev/sdX

Afterwards, the system boots as before.

Sources: Stackexchange and HowToUbuntu