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

dumpe2fs

Show the superblock and block group details of an ext2/ext3/ext4 file system.

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

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

ماذا يفعل

dumpe2fs -h prints the superblock (like tune2fs -l): label, UUID, features, sizes, mount options. Without -h it also lists every block group — including where the backup superblocks are, which you need to repair a damaged file system with e2fsck -b.

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

dumpe2fs [-bfghixV] [-o superblock=N] [-o blocksize=N] DEVICE

الخيارات 10

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

-h
Only the superblock information.
-b
List the blocks marked as bad.
-x
Show block numbers in hex.
-g
Group descriptors in a machine-readable form.
-i
Read an image file made by e2image.
-f
Force output even with unknown features.
-m
Check if the device is in use (MMP feature).
-o superblock=N
Use this backup superblock.
-o blocksize=N
Use this block size (with superblock=).
-V
Show the version.

أمثلة 10

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

  1. 1Superblock only

    dumpe2fs -h /dev/vdb2

    Label, UUID, features, counts, times.

  2. 2Find the backup superblocks

    dumpe2fs /dev/vdb2 | grep -i 'backup superblock'
      Backup superblock at 32768, Group descriptors at 32769-32769

    Write these numbers down.

  3. 3Repair with a backup superblock

    e2fsck -b 32768 /dev/vdb2

    When the main superblock is damaged.

  4. 4Default mount options

    dumpe2fs -h /dev/vdb2 | grep -i 'mount options'

    Set with tune2fs -o.

  5. 5Features of the file system

    dumpe2fs -h /dev/vdb2 | grep -i features

    has_journal, extent, 64bit, metadata_csum …

  6. 6Reserved blocks and block size

    dumpe2fs -h /dev/vdb2 | grep -E 'Reserved block count|Block size|Block count'

    Calculate the percentage.

  7. 7When was it created and checked?

    dumpe2fs -h /dev/vdb2 | grep -E 'created|Last checked|Last mount time'

    History of the file system.

  8. 8Bad blocks list

    dumpe2fs -b /dev/vdb2

    Empty on healthy disks.

  9. 9Use a backup superblock to read

    dumpe2fs -o superblock=32768 -o blocksize=4096 /dev/vdb2 | head

    When the main one cannot be read.

  10. 10Check if the device is in use (MMP)

    dumpe2fs -m /dev/vdb2

    For shared storage with multi-mount protection.

رموز الخروج

0Done.
1Error.

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

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

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