Linux machine can't mount a disk and boot

Linux machine can't mount a disk and boot.

Challenge

A Linux machine can't mount a disk and boot.

Cause

A wrong disk label is written in fstab, so the machine can't mount the disk and boot.

Solution

1. Type in your root password and press "Enter" to log in to a maintenance session.


2. Run blkid command to find out the UUID of the boot partition. This partition has the label "hx_lock":




3. Open the /etc/fstab file with a text editor of your choice. The specified boot partition will have a label that does not exist anymore:



4. Replace "LABEL=<label>" with "UUID=<uuid>" using the UUID from the "blkid" output in Step 2:


5. Save your changes and reboot. The system should start normally.