Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2353347
  • 博文数量: 141
  • 博客积分: 3552
  • 博客等级: 中校
  • 技术积分: 4148
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-15 14:39
个人简介

熟悉Linux下程序设计及各种应用程序 熟悉C Language 熟悉Glusterfs、FFmpeg、CDN 系统设计,计算机图形系统设计、分布式程序设计 目前主要研究方向:流媒体

文章分类

全部博文(141)

分类: LINUX

2011-06-02 15:06:47

  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]# 

  1. [root@btg linux-2.6]# tune2fs -l /opt/linux-2.6/fsfile
  2. tune2fs 1.41.12 (17-May-2010)
  3. Filesystem volume name: <none>
  4. Last mounted on: <not available>
  5. Filesystem UUID: 1a1354d1-3a6d-4a32-bff6-6f0460d7173a
  6. Filesystem magic number: 0xEF53
  7. Filesystem revision #: 1 (dynamic)
  8. 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
  9. Filesystem flags: signed_directory_hash
  10. Default mount options: (none)
  11. Filesystem state: clean
  12. Errors behavior: Continue
  13. Filesystem OS type: Linux
  14. Inode count: 32768
  15. Block count: 131072
  16. Reserved block count: 6553
  17. Free blocks: 121285
  18. Free inodes: 32757
  19. First block: 1
  20. Block size: 1024
  21. Fragment size: 1024
  22. Reserved GDT blocks: 256
  23. Blocks per group: 8192
  24. Fragments per group: 8192
  25. Inodes per group: 2048
  26. Inode blocks per group: 256
  27. Flex block group size: 16
  28. Filesystem created: Thu Jun 2 15:15:12 2011
  29. Last mount time: Thu Jun 2 15:15:50 2011
  30. Last write time: Thu Jun 2 15:15:50 2011
  31. Mount count: 1
  32. Maximum mount count: 33
  33. Last checked: Thu Jun 2 15:15:12 2011
  34. Check interval: 15552000 (6 months)
  35. Next check after: Tue Nov 29 15:15:12 2011
  36. Lifetime writes: 8 MB
  37. Reserved blocks uid: 0 (user root)
  38. Reserved blocks gid: 0 (group root)
  39. First inode: 11
  40. Inode size:     128
  41. Journal inode: 8
  42. Default directory hash: half_md4
  43. Directory Hash Seed: 1514e018-3be3-4cdf-a60c-602892d9049f
  44. Journal backup: inode blocks
  45. [root@btg linux-2.6]#

  1. [root@btg linux-2.6]# tune2fs -L "HelloEXAMPLE" /opt/linux-2.6/fsfile
  2. tune2fs 1.41.12 (17-May-2010)
  3. [root@btg linux-2.6]# tune2fs -l /opt/linux-2.6/fsfile |grep "Filesystem volume name"
  4. Filesystem volume name: HelloEXAMPLE
  5. [root@btg linux-2.6]#

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

-c是设置最大挂载次数
-i是设定两次文件系统检查之间的最长时间间隔
-L设置label
-j 设置has_journal功能标记
-r设置保留块数


















阅读(4235) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~