Linux operating system failure skills

  

Failure to shut down due to abnormal shutdown
If Linux does not shut down properly, it may result in the inability to enter the Linux KDE environment and only in the console environment, and there are always large and large pieces of English characters roll up. After logging in as root, type the startx command and the error message "x server cannot connect" appears. At this time, you can type setup in the console, the system setting menu appears, select the “X window setting”, and then set the display type, refresh frequency, memory size, resolution, etc. according to the prompts. If everything is correct, the system will automatically start the X Windows system, everything will be OK! It should be noted that when setting with Setup, there may be large blocks of English characters scrolling up. Please don't panic, see the screen, continue to use the [Tab] button or the arrow keys, and you will immediately click "Dark and Dark" .
How to deal with file system corruption
When the file system is destroyed, if you use the ext2fs file system, you can run the e2fsck command from the floppy disk to correct the corrupted data in the file system. For other types of file systems, the corresponding fsck command can be used. When checking the file system from a floppy disk, it is best not to use the mount command to install. Note: A common cause of file system corruption is that the superblock is corrupted. The superblock is the file system's "header". It contains information such as the state, size, and free disk blocks of the file system. If you damage a file system's super block (for example, accidentally write data directly to the file system's super block partition), then Linux may not recognize the file system at all, so you can't install it, even with the e2fsck command. I can't handle this problem either. However, the ext2fs type of file system backs up the contents of the superblock and stores it in the driver's block group boundary. You can use the following command to tell e2fsck to use the backup of the super block: # e2fsck -b 8193 -b The 8193 option is used to display the backup data of the super block of 8193 blocks stored in the file system.





























The easiest solution is to boot the system with the rescue disk set, install the hard disk file system in the /mnt directory, and then repair the libraries in the /mnt/lib directory.

Copyright © Windows knowledge All Rights Reserved