Ubuntu An unexpected shutdown recovery (orphan cleanup on ReadOnly FS)

Source: Internet
Author: User
Tags call back dmesg

This is the way things go:

I am copying a large file is, suddenly Ubuntu GUI interface card die, how to change can not call back, so--"forcibly shut down the machine

And then power on again, it has been black screen, unable to enter the GUI interface.

My recovery process is as follows:

1. Press CTRL+ALT+F1 under the black screen

2. Enter the user name, password, enter the CLI interface

3. View DMESG | Less then enter/SDA to find the disk-related information, find the following information:

[3.746177] Ext4-FS (SDA3): Info:recovery required on readonly filesystem[3.746181] Ext4-fs (SDA3):Writeaccess would be enabled during recovery[3.929572] random:nonblocking pool is initialized[5.484289] Ext4-FS (SDA3): Orphan cleanup on readonly fs[5.484354] Ext4-fs (SDA3):5Orphan inodes deleted[5.484356] Ext4-FS (SDA3): Recovery complete[5.565464] Ext4-FS (SDA3): mounted filesystem with ordered data mode. Opts: (NULL)

Sda3 is my Ubuntu partition, it seems that I just forced shutdown caused a sudden termination of the copy file, there is orphan inode problem, Linux has been automatically restored:

4. View the current mount condition and discover that the primary partition is read-only:

Mans Mount [email protected] Mount/dev/sda3 on/type ext4 (ro,errors=remount-///sys/fs//sys/fs/ fuse//sys/kernel//sys/kernel//dev type Devtmpfs (rw,mode=0755)

5. Now use Mount-a to mount the primary partition as RW

sudo Mount -A
[Email protected]:/var/log$ sync; sudo reboot-f

After reboot, Ubuntu will automatically enter the GUI interface

Ubuntu/linux in the humanization of a long way to go, but, for technical people, in this situation, to see DMESG is very helpful

Ubuntu An unexpected shutdown recovery (orphan cleanup on ReadOnly FS)

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.