e2image
Save critical ext2/ext3/ext4 filesystem metadata to a file. tldr-pages
On Linux
Linux
Write metadata located on device to a specific file
e2image /dev/sdXN path/to/image_fileIdentifyPrint metadata located on device to stdout
e2image /dev/sdXN -IdentifyRestore the filesystem metadata back to the device
e2image -I /dev/sdXN path/to/image_fileIdentifyCreate a large raw sparse file with metadata at proper offsets
e2image -r /dev/sdXN path/to/image_fileIdentifyCreate a QCOW2 image file instead of a normal or raw image file
e2image -Q /dev/sdXN path/to/image_fileIdentify