mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
636 B
Plaintext
34 lines
636 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|
|
|
|
- [Interactive] View the filesystem stats in debugfs console:
|
|
|
|
`stats`
|
|
|
|
- [Interactive] Close the filesystem:
|
|
|
|
`close -a`
|
|
|
|
- [Interactive] List all available commands:
|
|
|
|
`lr`
|