前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >LPI学习-----3

LPI学习-----3

作者头像
用户3765803
发布2019-03-05 09:57:39
5490
发布2019-03-05 09:57:39
举报
文章被收录于专栏:悟空被FFmpeg玩悟空被FFmpeg玩
  1. [root@btg linux-2.6]# truncate --size 128M fsfile
  2. [root@btg linux-2.6]# mkfs.ext4 -F fsfile
  3. mke2fs 1.41.12 (17-May-2010)
  4. 文件系统标签=
  5. 操作系统:Linux
  6. 块大小=1024 (log=0)
  7. 分块大小=1024 (log=0)
  8. Stride=0 blocks, Stripe width=0 blocks
  9. 32768 inodes, 131072 blocks
  10. 6553 blocks (5.00%) reserved for the super user
  11. 第一个数据块=1
  12. Maximum filesystem blocks=67371008
  13. 16 block groups
  14. 8192 blocks per group, 8192 fragments per group
  15. 2048 inodes per group
  16. Superblock backups stored on blocks: 
  17. 8193, 24577, 40961, 57345, 73729
  18. 正在写入inode表: 完成                            
  19. Creating journal (4096 blocks): 完成
  20. Writing superblocks and filesystem accounting information: 完成
  21. This filesystem will be automatically checked every 33 mounts or
  22. 180 days, whichever comes first.  Use tune2fs -c or -i to override.
  23. [root@btg linux-2.6]# 
  24. [root@btg linux-2.6]# losetup /dev/loop0 fsfile
  25. [root@btg linux-2.6]# mount /dev/loop0 mnt
  26. [root@btg linux-2.6]# 
  27. [root@btg linux-2.6]# tune2fs -l /opt/linux-2.6/fsfile
  28. tune2fs 1.41.12 (17-May-2010)
  29. Filesystem volume name: <none>
  30. Last mounted on: <not available>
  31. Filesystem UUID: 1a1354d1-3a6d-4a32-bff6-6f0460d7173a
  32. Filesystem magic number: 0xEF53
  33. Filesystem revision #: 1 (dynamic)
  34. Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize
  35. Filesystem flags: signed_directory_hash
  36. Default mount options: (none)
  37. Filesystem state: clean
  38. Errors behavior: Continue
  39. Filesystem OS type: Linux
  40. Inode count: 32768
  41. Block count: 131072
  42. Reserved block count: 6553
  43. Free blocks: 121285
  44. Free inodes: 32757
  45. First block: 1
  46. Block size: 1024
  47. Fragment size: 1024
  48. Reserved GDT blocks: 256
  49. Blocks per group: 8192
  50. Fragments per group: 8192
  51. Inodes per group: 2048
  52. Inode blocks per group: 256
  53. Flex block group size: 16
  54. Filesystem created: Thu Jun 2 15:15:12 2011
  55. Last mount time: Thu Jun 2 15:15:50 2011
  56. Last write time: Thu Jun 2 15:15:50 2011
  57. Mount count: 1
  58. Maximum mount count: 33
  59. Last checked: Thu Jun 2 15:15:12 2011
  60. Check interval: 15552000 (6 months)
  61. Next check after: Tue Nov 29 15:15:12 2011
  62. Lifetime writes: 8 MB
  63. Reserved blocks uid: 0 (user root)
  64. Reserved blocks gid: 0 (group root)
  65. First inode: 11
  66. Inode size:     128
  67. Journal inode: 8
  68. Default directory hash: half_md4
  69. Directory Hash Seed: 1514e018-3be3-4cdf-a60c-602892d9049f
  70. Journal backup: inode blocks
  71. [root@btg linux-2.6]#
  72. [root@btg linux-2.6]# tune2fs -L "HelloEXAMPLE" /opt/linux-2.6/fsfile
  73. tune2fs 1.41.12 (17-May-2010)
  74. [root@btg linux-2.6]# tune2fs -l /opt/linux-2.6/fsfile |grep "Filesystem volume name"
  75. Filesystem volume name: HelloEXAMPLE
  76. [root@btg linux-2.6]#

上面可以查看/dev/sda1上面的左右的可调参数

-c是设置最大挂载次数

-i是设定两次文件系统检查之间的最长时间间隔

-L设置label

-j 设置has_journal功能标记

-r设置保留块数

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2011-06-02 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档