mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 14:33:40 +02:00
e2image: add page (#4795)
This commit is contained in:
parent
45a5692ee8
commit
859988c83f
1 changed files with 24 additions and 0 deletions
24
pages/linux/e2image.md
Normal file
24
pages/linux/e2image.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# e2image
|
||||
|
||||
> Save critical ext2/ext3/ext4 filesystem metadata to a file.
|
||||
> More information: <https://linux.die.net/man/8/e2image>.
|
||||
|
||||
- Write metadata located on device to a specific file:
|
||||
|
||||
`e2image {{/dev/sdXN}} {{path/to/image_file}}`
|
||||
|
||||
- Print metadata located on device to `stdout`:
|
||||
|
||||
`e2image {{/dev/sdXN}} -`
|
||||
|
||||
- Restore the filesystem metadata back to the device:
|
||||
|
||||
`e2image -I {{/dev/sdXN}} {{path/to/image_file}}`
|
||||
|
||||
- Create a large raw sparse file with metadata at proper offsets:
|
||||
|
||||
`e2image -r {{/dev/sdXN}} {{path/to/image_file}}`
|
||||
|
||||
- Ceate a QCOW2 image file instead of a normal or raw image file:
|
||||
|
||||
`e2image -Q {{/dev/sdXN}} {{path/to/image_file}}`
|
Loading…
Add table
Reference in a new issue