There was a discussion about possibility of using superblock backup for creating images with e2image. https://www.spinics.net/lists/linux-ext4/msg30583.html Now our customer faced with situation then it would be useful to have image file from partition with broken superblock. Here is set of patches that adds this functionality. Artem Blagodarenko (4): ext2fs: opening filesystem code refactoring e2image: add -b option to use supperblock backup tests: add test for e2image -b option man: add -b option to e2image e2fsck/unix.c | 28 +++------------------------- lib/ext2fs/ext2fs.h | 4 ++++ lib/ext2fs/openfs.c | 32 ++++++++++++++++++++++++++++++++ misc/dumpe2fs.c | 17 +++-------------- misc/e2image.8.in | 15 +++++++++++++++ misc/e2image.c | 38 ++++++++++++++++++++++++++++++++------ tests/i_zero_super/expect | 22 ++++++++++++++++++++++ tests/i_zero_super/image.gz | Bin 0 -> 13262 bytes tests/i_zero_super/script | 36 ++++++++++++++++++++++++++++++++++++ 9 files changed, 147 insertions(+), 45 deletions(-) create mode 100644 tests/i_zero_super/expect create mode 100644 tests/i_zero_super/image.gz create mode 100644 tests/i_zero_super/script