查看分区信息

这里也只是一个命令, 就是输出的有点多.

tune2fs,这个在之前有用到过, 是用来查看分区信息的.

  1. # tune2fs -l /dev/sda1
  2. tune2fs 1.35 (28-Feb-2004)
  3. Filesystem volume name: /home/database
  4. Last mounted on: <not available>
  5. Filesystem UUID: f1234556-e123-1234-abcd-bbbbaaaaae11
  6. Filesystem magic number: 0xEF44
  7. Filesystem revision #: 1 (dynamic)
  8. Filesystem features:
  9. sparse_super resize_inode filetype
  10. Default mount options: (none)
  11. Filesystem state: not clean
  12. Errors behavior: Continue
  13. Filesystem OS type: Linux
  14. Inode count: 1094912
  15. Block count: 140138994
  16. Reserved block count: 0
  17. Free blocks: 16848481
  18. Free inodes: 1014969
  19. First block: 0
  20. Block size: 2048
  21. Fragment size: 2048
  22. Reserved GDT blocks: 512
  23. Blocks per group: 16384
  24. Fragments per group: 16384
  25. Inodes per group: 128
  26. Inode blocks per group: 8
  27. Filesystem created: Tue Jul
  28. Last mount time: Thu Aug 21 05:58:25 2008
  29. Last write time: Fri Jan
  30. Mount count: 2
  31. Maximum mount count: 20
  32. Last checked: Tue Jul
  33. Check interval: 15552000 (6 months)
  34. Next check after: Sat Dec 27 23:06:03 2008
  35. Reserved blocks uid: 0 (user root)
  36. Reserved blocks gid: 0 (group root)
  37. First inode: 11
  38. Inode size: 128
  39. Default directory hash: tea
  40. Directory Hash Seed: 12345829-1236-4123-9aaa-ccccc123292b

完全复制粘贴的作者的磁盘信息. 感觉用处不是很大的样子… 知道有这么个东西就好.