Cannot open access to console, the root account is locked

I have a Debian 11 that i was using LVM for data only, i did the following commands:

mount /dev/srv-vg/lv-data /mnt/data
vi /etc/fstab
/dev/srv-vg/lv-data /mnt/data ext4 defaults 0 0

The mount command worked pretty well, the folder works just fine but after adding the fstab line when i reboot i get the following errors:

[FAILED] Failed to mount /mnt/data
[DEPEND] Dependency failed for Local File Systems

Cannot open access to console, the root account is locked
Press ENTER to continue

When i press enter, it just says the same message again (Root account is locked.)

Can someone help me?

Edit: Fixed typo.

Asked By: Raul Chiarella

||

Boot from external hard disk or USB stick, change back /etc/fstab. Alternatively, take out hard disk, attach it to another computer, mount, edit /etc/fstab.

And I second the comment to add nofail for non-essential mounts.

Answered By: dirkt
Categories: Answers Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.