2016-06-23 18:41:44 +01:00
|
|
|
# fsck
|
|
|
|
|
|
|
|
> Check the integrity of a filesystem or repair it. The filesystem should be unmounted at the time the command is run.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manned.org/fsck>.
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2021-11-10 10:15:57 +00:00
|
|
|
- Check filesystem `/dev/sdXN`, reporting any damaged blocks:
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2021-11-10 10:15:57 +00:00
|
|
|
`sudo fsck {{/dev/sdXN}}`
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2021-11-10 10:15:57 +00:00
|
|
|
- Check filesystem `/dev/sdXN`, reporting any damaged blocks and interactively letting the user choose to repair each one:
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2021-11-10 10:15:57 +00:00
|
|
|
`sudo fsck -r {{/dev/sdXN}}`
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2021-11-10 10:15:57 +00:00
|
|
|
- Check filesystem `/dev/sdXN`, reporting any damaged blocks and automatically repairing them:
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2021-11-10 10:15:57 +00:00
|
|
|
`sudo fsck -a {{/dev/sdXN}}`
|