2020-10-28 17:48:42 +00:00
|
|
|
# e2image
|
|
|
|
|
|
|
|
> Save critical ext2/ext3/ext4 filesystem metadata to a file.
|
2021-04-16 15:42:14 +01:00
|
|
|
> More information: <https://manned.org/e2image>.
|
2020-10-28 17:48:42 +00:00
|
|
|
|
|
|
|
- Write metadata located on device to a specific file:
|
|
|
|
|
|
|
|
`e2image {{/dev/sdXN}} {{path/to/image_file}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Print metadata located on device to stdout:
|
2020-10-28 17:48:42 +00:00
|
|
|
|
|
|
|
`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}}`
|
|
|
|
|
2020-12-04 12:37:44 +00:00
|
|
|
- Create a QCOW2 image file instead of a normal or raw image file:
|
2020-10-28 17:48:42 +00:00
|
|
|
|
|
|
|
`e2image -Q {{/dev/sdXN}} {{path/to/image_file}}`
|