الفلاتر
طريقة البحث
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • "كلمتان" تجد العبارة بالضبط.
  • --name أو -x تجد خيارًا.
  • #كلمة تبحث داخل الأوامر فقط.
  • @grep تجد الدروس والمعامل التي تستخدم grep.
  • الفلاتر: cat:network · in:labs · level:rhcsa · ch:8 · root:yes. ضع ! قبل كلمة لاستبعادها. OR بين الكلمات تعني إحداها.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث

wipefs

List or remove file system, RAID, LVM and partition table signatures from a device (fast, without wiping the data).

المستوى
لينكس اليومي
المجموعة
الأقراص وأنظمة الملفات
يحتاج root
نعم
الحزمة
util-linux

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

ماذا يفعل

Old signatures confuse tools: mkfs refuses, LVM sees an old PV, the installer shows old RAID members. wipefs DEVICE lists the signatures; wipefs -a DEVICE removes them. Only the few bytes of the signatures are erased, so it is very fast — but the old data is not securely deleted.

طريقة الكتابة

wipefs [OPTION]... DEVICE...

الخيارات 14

الأكثر استخدامًا

-a, --all
Remove all signatures.
-n, --no-act
Do everything except writing (test).
-b, --backup[=DIR]
Save each removed signature to a file first.
-o, --offset OFFSET
Remove only the signature at this offset.
-t, --types LIST
Only these types, like xfs,ext4 (no = exclude).
-f, --force
Also on mounted or busy devices (dangerous).
-q, --quiet
Less output.
-i, --noheadings
No header line.
-J, --json
JSON output.
-O, --output LIST
Choose columns.
-p, --parsable
Parsable output.
--lock[=MODE]
Lock the device.
-h, --help
Show help.
-V, --version
Show the version.

أمثلة 10

$ مستخدم عادي# بصلاحية root (أو مع sudo)

  1. 1List the signatures

    wipefs /dev/vdb
    DEVICE OFFSET        TYPE UUID LABEL
    vdb    0x200         gpt
    vdb    0x27ffffe00   gpt
    vdb    0x1fe         PMBR

    GPT has a backup at the end of the disk.

  2. 2Remove all signatures of a disk

    wipefs -a /dev/vdb

    The disk now looks empty for every tool.

  3. 3Test first

    wipefs -n -a /dev/vdb

    Shows what would be removed.

  4. 4Keep a backup of the signatures

    wipefs -a -b /dev/vdb1

    Files like ~/wipefs-vdb1-0x00000000.bak can restore it with dd.

  5. 5Remove only one type

    wipefs -a -t xfs /dev/vdb1

    Other signatures stay.

  6. 6Partitions first, then the disk

    wipefs -a /dev/vdb[0-9]*; wipefs -a /dev/vdb

    Clean reuse of an old disk.

  7. 7Before a new LVM PV

    wipefs -a /dev/vdc; pvcreate /dev/vdc

    pvcreate refuses disks with old signatures.

  8. 8JSON for automation

    wipefs -J /dev/vdb

    Check disks in scripts.

  9. 9After wipefs: really empty?

    lsblk -f /dev/vdb

    No FSTYPE, no partitions.

  10. 10Secure wipe needs more (security)

    blkdiscard /dev/nvme0n1

    wipefs leaves the data; use blkdiscard (SSD) or a full overwrite to destroy data.

رموز الخروج

0Done.
1Error.

الدليل الكامل

هذه الصفحة تشرح الأمر بكلمات بسيطة. الدليل الأصلي فيه كل التفاصيل.

في الطرفية: man 8 wipefs