Fixed the exception that caused Ubuntu to become a read-only file system.

Source: Internet
Author: User
Today, the Ubuntu9.10 system suddenly prompts that the file cannot be written. At first, I thought it was a permission issue. I thought it was possible that I accidentally copied and pasted a command to correct the permission. As a result, the home directory is still not touch, and the permission is clearly writable. Sudo cannot write data either. Run mount and find/is mounted as read-only. So try to restart. After restart, you will find that you cannot access the graphic interface. If a DMA error is prompted, you can only open the diagnostic SHELL. Run the mount command again and find/still mounted.

When it is used today, the Ubuntu 9.10 system suddenly prompts that the file cannot be written.

At first, I thought it was a permission issue. I thought it was possible that I accidentally copied and pasted a command to correct the permission. As a result, the home directory is still not touch, and the permission is clearly writable. Sudo cannot write data either.

Run mount and find/is mounted as read-only. So try to restart.

After restart, you will find that you cannot access the graphic interface. If a DMA error is prompted, you can only open the diagnostic SHELL.

Run mount again and find that/is still mounted as read-only. Modify/etc/fstab and prompt the read-only file system, w! Also failed.

Run:

Mount/dev/sda1/-o rw, remount

Finally, you can write it, modify/etc/fstab, change-error = remount-ro in the row of the mounted/to rw, and restart.

After the restart, the graphic interface still cannot be started, and the file system is still read-only.

At this time, the brain opened a small gap, input exit, and then a bunch of error prompts. There is an fsck error. I want to execute fsck again to see if the error can be repeated. So:

Fsck/

Many inode errors are prompted soon. Select y to fix the problem. Finally, the system prompts you to restart. So:

Reboot

The system is successfully started. Then I changed the content of/etc/fstab to the original one, and everything went back to normal.

Then, I found that some people had the same error, but it was an old post of 01 years... Orz

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.