Incorrect shutdowns, power outages, errors in upgrades… There are many situations that can corrupt the sectors of the storage media and end up with a boot to initramfs screen.

If you see this message, it means that the system is in recovery mode. This mode allows us a limited set of commands that serve mainly to recover the system to a functional state.

Therefore, we will proceed as follows:

  • List the storage drives:
(initramfs) blkid
  • Repair the affected units:
(initramfs) fsck /dev/sdb -y

fsck

  • Restart:
(initramfs) reboot