diff options
author | Ondrej Oprala | 2013-04-10 18:21:27 +0200 |
---|---|---|
committer | Karel Zak | 2013-04-26 12:27:37 +0200 |
commit | 7e658c15a2c1fc5092a790afbe7d9d395d04b098 (patch) | |
tree | 3b0bd40615c460fd413d912469972e4a0619305c /misc-utils/wipefs.8 | |
parent | tests: partx tests cleanup (diff) | |
download | kernel-qcow2-util-linux-7e658c15a2c1fc5092a790afbe7d9d395d04b098.tar.gz kernel-qcow2-util-linux-7e658c15a2c1fc5092a790afbe7d9d395d04b098.tar.xz kernel-qcow2-util-linux-7e658c15a2c1fc5092a790afbe7d9d395d04b098.zip |
wipefs: add --backup
[kzak@redhat.com: - don't wipe if failed to create a backup file
- use ts_scsi_debug_init in the regression tests]
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/wipefs.8')
-rw-r--r-- | misc-utils/wipefs.8 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/misc-utils/wipefs.8 b/misc-utils/wipefs.8 index cdf449ec4..fee9aaf14 100644 --- a/misc-utils/wipefs.8 +++ b/misc-utils/wipefs.8 @@ -40,6 +40,10 @@ erased. Erase all available signatures. The set of erased signatures can be restricted with the \fB\-t\fP \fIlist\fP option. .TP +.BR \-b , " \-\-backup" +Create a signature backup to the file $HOME/wipefs-<devname>-<offset>.bak. +For more details see EXAMPLES section. +.TP .BR \-f , " \-\-force" Force erasure, even if the filesystem is mounted. This is required in order to erase the partition table on a block device. @@ -75,6 +79,14 @@ taken. For more details see mount(8). .TP .BR -V , " \-\-version" Output version information and exit. +.SH EXAMPLES +.TP +.BR "wipefs --all --backup /dev/sdb" +Erases all signatures from the device /dev/sdb and creates a signature backup +file ~/wipefs-sdb-<offset>.bak for each signature. +.TP +.BR "dd if=~/wipefs-sdb-0x00000438.bak of=/dev/sdb seek=$((0x00000438)) bs=1 conv=notrunc" +Restores ext2 signature from the backup file ~/wipefs-sdb-0x00000438.bak. .SH AUTHOR Karel Zak <kzak@redhat.com> .SH ENVIRONMENT |