2025-03-14 21:59:59 -06:00
|
|
|
# debugfs
|
|
|
|
|
|
|
|
|
|
> An interactive ext2/ext3/ext4 filesystem debugger.
|
|
|
|
|
> More information: <https://manned.org/debugfs>.
|
|
|
|
|
|
|
|
|
|
- Open the filesystem in read only mode:
|
|
|
|
|
|
|
|
|
|
`debugfs {{/dev/sdXN}}`
|
|
|
|
|
|
|
|
|
|
- Open the filesystem in read write mode:
|
|
|
|
|
|
|
|
|
|
`debugfs -w {{/dev/sdXN}}`
|
|
|
|
|
|
|
|
|
|
- Read commands from a specified file, execute them and then exit:
|
|
|
|
|
|
|
|
|
|
`debugfs -f {{path/to/cmd_file}} {{/dev/sdXN}}`
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- [Interactive] View the filesystem stats in debugfs console:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`stats`
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- [Interactive] Close the filesystem:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`close -a`
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- [Interactive] List all available commands:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`lr`
|