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)