WIPEFS(8) | System-Administration | WIPEFS(8) |
BEZEICHNUNG¶
wipefs - eine Signatur von einem Gerät löschen
ÜBERSICHT¶
wipefs [options] device...
wipefs [--backup] -o offset device...
wipefs [--backup] -a device...
BESCHREIBUNG¶
wipefs can erase filesystem, raid or partition-table signatures (magic strings) from the specified device to make the signatures invisible for libblkid. wipefs does not erase the filesystem itself nor any other data from the device.
Werden keine Optionen verwandt, wird wipefs alle sichtbaren Dateisysteme und deren Versatz auf der Basis grundlegender Signaturen auflisten. Die Vorgabeausgabe kann sich ändern. Daher sollten Sie wann immer möglich vermeiden, die Vorgabeausgabe in Skripten zu verwenden. Definieren Sie in Umgebungen, in denen eine stabile Ausgabe benötigt wird, immer explizit die Spalten mittels --output Spaltenliste.
wipefs calls the BLKRRPART ioctl when it has erased a partition-table signature to inform the kernel about the change. The ioctl is called as the last step and when all specified signatures from all specified devices are already erased. This feature can be used to wipe content on partition devices as well as a partition table on a disk device, for example by wipefs -a /dev/sdc1 /dev/sdc2 /dev/sdc.
Note that some filesystems and some partition tables store more magic strings on the device (e.g., FAT, ZFS, GPT). The wipefs command (since v2.31) lists all the offsets where magic strings have been detected.
Mit der Option -a werden alle für libblkid(3) sichtbaren Magic Strings gelöscht. In diesem Fall durchsucht wipefs das Gerät erneut nach einer Änderung (Löschen), bis kein Magic String gefunden wird.
Beachten Sie, dass wipefs keine verschachtelten Partitionstabellen auf Geräteteilen löscht. Die Option --force wird dazu benötigt.
OPTIONEN¶
-a, --all
-b, --backup[=Verzeichnis]
-f, --force
-J, --json
--lock[=Modus]
-i, --noheadings
-O, --output Liste
-n, --no-act
-o, --offset Versatz
Dem Argument Größe kann eines der multiplikativen Suffixe KiB (=1024), MiB (=1024*1024) und so weiter für GiB, TiB, PiB, EiB, ZiB und YiB folgen (das »iB« ist optional, zum Beispiel ist »K« gleichbedeutend mit »KiB«) oder die Suffixe KB (=1000), MB (=1000*1000) und so weiter für GB, TB, PB, EB, ZB und YB folgen.
-p, --parsable
-q, --quiet
-t, --types Liste
-h, --help
-V, --version
UMGEBUNGSVARIABLEN¶
LIBBLKID_DEBUG=all
LOCK_BLOCK_DEVICE=<Modus>
BEISPIELE¶
wipefs /dev/sda*
wipefs --all --backup /dev/sdb
dd if=~/wipefs-sdb-0x00000438.bak of=/dev/sdb seek=$((0x00000438)) bs=1 conv=notrunc
AUTOREN¶
Karel Zak <kzak@redhat.com>
SIEHE AUCH¶
FEHLER MELDEN¶
Nutzen Sie zum Melden von Fehlern das Fehlererfassungssystem auf <https://github.com/util-linux/util-linux/issues>.
VERFÜGBARKEIT¶
Der Befehl wipefs ist Teil des Pakets util-linux, welches aus dem Linux-Kernel-Archiv <https://www.kernel.org/pub/linux/utils/util-linux/> heruntergeladen werden kann.
2024-04-03 | util-linux 2.40 |