2020-08-31 00:59:50 +01:00
|
|
|
# e4defrag
|
|
|
|
|
2020-09-04 23:49:44 +01:00
|
|
|
> Defragment an ext4 filesystem.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manned.org/e4defrag>.
|
2020-08-31 00:59:50 +01:00
|
|
|
|
2020-09-04 23:49:44 +01:00
|
|
|
- Defragment the filesystem:
|
2020-08-31 00:59:50 +01:00
|
|
|
|
|
|
|
`e4defrag {{/dev/sdXN}}`
|
|
|
|
|
2020-09-04 23:49:44 +01:00
|
|
|
- See how fragmented a filesystem is:
|
2020-08-31 00:59:50 +01:00
|
|
|
|
|
|
|
`e4defrag -c {{/dev/sdXN}}`
|
|
|
|
|
|
|
|
- Print errors and the fragmentation count before and after each file:
|
|
|
|
|
|
|
|
`e4defrag -v {{/dev/sdXN}}`
|