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.
|
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
- Check filesystem `/dev/sdX`, reporting any damaged blocks:
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`fsck {{/dev/sdX}}`
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
- Check filesystem `/dev/sdX`, reporting any damaged blocks and interactively letting the user choose to repair each one:
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`fsck -r {{/dev/sdX}}`
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
- Check filesystem `/dev/sdX`, reporting any damaged blocks and automatically repairing them:
|
2016-06-23 18:41:44 +01:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`fsck -a {{/dev/sdX}}`
|