How can I recover a system which fails to reboot following a mistake editing /etc/fstab?

Solution Unverified - Updated -

Issue

How can I recovery /etc/fstab if I made some mistake when editing it and system can not boot up?

For example, I modify /etc/fstab, after system reboot, it can not mount some of the filesystems successfully and enter in "repair mode" like below:

linux err.JPG

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content