aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunchul Lee <hyc.lee@gmail.com>2022-09-14 16:35:09 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2022-09-14 22:16:51 +0900
commit6d52fb4a0f6a2df85381ec92fa11c9810044641e (patch)
tree8c88a5715ea874284298184c2b5feef99ecfc602
parentc195fdb1042920f7e0921234f20f8a4c48b1eb91 (diff)
downloadexfatprogs-6d52fb4a0f6a2df85381ec92fa11c9810044641e.tar.gz
exfat2img: add usage examples to manpage
Add usage examples to manpage. Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
-rw-r--r--manpages/exfat2img.87
1 files changed, 6 insertions, 1 deletions
diff --git a/manpages/exfat2img.8 b/manpages/exfat2img.8
index 1c7f288..bceaa08 100644
--- a/manpages/exfat2img.8
+++ b/manpages/exfat2img.8
@@ -19,13 +19,18 @@ dump metadata of exFAT filesystems for debugging. \fBexfat2img\fP dump boot sect
.TP
.BI \-o\ \-\-output
Specify output result file. If filesystem to which output file is written does not support sparse file, you should use '-' in place of \fIpath\fP.
-When restoring a partition from a dump image generated from stdout, exfat2img should be used. See Examples.
+Because a dump image generated from stdout has a special format, when restoring a partition from it, exfat2img should be used. See Examples.
.TP
.B \-V
Prints the version number and exits.
.SH EXAMPLES
.PP
+Dump metadata into a sparse file.
+.EX
+.RB "$" " exfat2img -o sda1.dump /dev/sda1
+
+Dump metadata into standard out and restore a partition
.EX
.RB "$" " exfat2img -o - /dev/sda1 | bzip2 > sda1.dump.bz2"
.RB "$" " bzip2 -dc sda1.dump.bz2 | exfat2img -o /dev/sdb1 -"