Fstab file error causes system startup failure

Source: Internet
Author: User
Article Title: fstab file error causes system startup failure. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

1.3. Problem

1.3.1. Problems Encountered during restart

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // linux.chinaitlab.com/uploadfiles_7565/201006/20100603151510930.png');} "alt =" "src =" http://Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151549230.png "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>
. 1

The LABEL =/other volume LABEL in fstab does not exist.

2. troubleshooting Process

2.1. Enter running level 1

Enter the root user password to enter runlevel 1.

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151550329.png');} "alt =" "src =" http://Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151550329.png "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>
. 1

Try to modify the/etc/fstab file

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151551991.png');} "alt =" "src =" http://Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151551991.png "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>
. 2

The file system is read-only.

Re-mount/

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // linux.chinaitlab.com/uploadfiles_7565/201006/20100603151551_3.png');} "alt =" "src =" http://Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151551273.png "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>
. 3

Modify the fstab file again

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151551386.png');} "alt =" "src =" http://Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151551386.png "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>
. 4

After the modification is completed, restart the system (init 6 ).

The system can be started normally and the problem is solved.

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151552298.png');} "alt =" "src =" http://Linux.chinaitlab.com/UploadFiles_7565/201006/20100603151552298.png "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>
. 5

3. Problem Summary

The above problem occurs because the/etc/fstab file is configured incorrectly. When the system restarts, the volume label (/other) cannot be identified, resulting in the normal startup. If you run the mount-a command to verify whether the configuration is correct after modifying the/etc/fstab file, this problem can be avoided.

The solution is not only applicable to the problems described above, but also to other problems that may cause system startup failure due to incorrect Configuration modification.

Re-mount/is a key step in solving the problem (mount-n-o remount, rw /). If you do not perform this operation, the file system is read-only. As a result, you cannot modify the configuration file and save it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.