Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4277  / 2 Years ago, thu, march 10, 2022, 4:33:56

This is a rather dumb question but my googling didn't give me any direct anwser. So I have a computer which ubuntu (12.04) filesystem has gone corrupted. Now I want to try to repair it with fsck from a live usb but since there are alot of important files (mainly pictures) I want my files not to get deleted. So I'd like to know that does fsck keeps my files when I start the repair process?


More From » filesystem

 Answers
7

fsck does not touch your files. It is basically a front-end program that does all kinds of filesystem checks (ie. it checks the integrity of the journaling system).



If you run it interactively it will report on what it did. The checks it runs are:



** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups


and below this it will show a summary of




  • Number of inodes in use

  • Number of fragments in use

  • Number of unused fragments

  • Number of unused non-block fragments

  • Number of unused full blocks

  • Percentage of fragmentation, where: free fragments x 100 / total fragments in the file system



Besides checking inodes and blocks fsck also checks for incorrect . and .. entries and incorrect directories.



More reading material (links from wikipedia on fsck):




[#24759] Thursday, March 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uccase

Total Points: 473
Total Questions: 100
Total Answers: 110

Location: Anguilla
Member since Sun, Jan 29, 2023
1 Year ago
uccase questions
;