Solution with fstab file error causing Linux to fail to start

  
                

In Linux system operation, sometimes the system fails to start because the fstab file is modified. How to solve this situation? Don't be afraid, the following small series will introduce you to the solution to the problem that the system cannot be started due to the modification of the fstab file.

presumably want to do it is to modify automatically mount /dev /sda5 to /u01 under Linux, modified to /dev /sda5 /weblogic, so the fstab file in /u01 modified into /weblogic , then the tragedy happened, the startup time can not mount the error, after entering the repair filesystem mode, you want to modify /etc/fstab, the result file is read only, the system can not start normally, how to solve this problem?

Solution:

1. Start linux prompt failure, enter the root account password, enter repair filesystem#, note that repairing the fstab file will prompt readonly can not save changes.

2. Lifting the right into root

3.mount /-o remount

At this time, /etc/fstab can be modified, this step is the core content

4. Modify the fstab file vi /etc/fstab

If the fstab file is broken, there will be a backup to restore it. If you can't write it yourself, the key is to know the partition situation and the previous situation. .

The above is the introduction of the solution to modify the fstab file under Linux, which can cause the system to fail to start. Follow the above steps to easily solve the problem that the system cannot be started. This method is only applicable to the system caused by modifying the fstab file. Startup issue.

Copyright © Windows knowledge All Rights Reserved