Ubuntu successfully resolved: fsck failed with exit status 4

Problem performance:

Encountered the following error when booting: inodes that were part of a corrupted orphan linked list found; fsck failed with exit status 4;

Cause:

This error is caused¹² by your root filesystem /dev/sda1 having a corrupt orphan node. Corrupted orphan nodes are nodes that have no directory entry associated with them, that is, they cannot be accessed¹. Orphaned nodes with corruption can have several reasons¹²:
- Temporary files are deleted but still open by some process (this is a common practice), occupying the node on the file system; if the system does not shut down gracefully but Reboot and these nodes will stay and become orphaned

solve:

You need to manually run the fsck command to check and repair your filesystem¹². At the (initramfs) prompt, type fsck -f /dev/sda1 and press Enter². Then choose whether to fix the error according to the prompt. If there are too many errors or important files are involved, you may need to back up your data or reinstall the system.

Knowledge points:

The fsck  command checks and interactively repairs inconsistent file systems. Normally, the file system is coherent, and the fsck  command simply reports the number of files, used blocks, and free blocks in the file system. If the file system is inconsistent, the fsck  command displays information about those inconsistencies found and prompts you for permission to repair them. If FileSystem is not specified  , all file systems will be checked.

Reference link: IBM Documentation

おすすめ

転載: blog.csdn.net/u010087338/article/details/131090923