快速业务通道

Ext3和Reiserfs文件系统占用空间的比较

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-05


  3.这样创建好文件系统之后,开始挂载它们,查看他们的可用空间吧.
 
  togry@xiaowp:~/disks$ sudo mount d-ext3fs ext/ -t ext3 -o loop
 
  togry@xiaowp:~/disks$ sudo mount d-reiserfs rei/ -t reiserfs -o loop
 
  togry@xiaowp:~/disks$ df
 
  文件系统 1K-块 已用 可用 已用% 挂载点
 
  ……(此处将不相干的东西略去)
 
  /home/togry/disks/d-ext3fs
 
  99150 5664 88366 7% /home/togry/disks/ext
 
  /home/togry/disks/d-reiserfs
 
  102392 32840 69552 33% /home/togry/disks/rei
 
  哟!reiserfs文件系统竟然占用了这么大的地方,三分之一都没有了.
 
  4.创建两个1GB的文件进行比较.相比前面,这里要简略一些.
 
  drwxr-xr-x 2 togry togry 48 2008-01-11 17:07 ext
 
  -rw-r——r—— 1 togry togry 1073741824 2008-01-22 20:53 ext3
 
  drwxr-xr-x 2 togry togry 48 2008-01-11 17:07 rei
 
  -rw-r——r—— 1 togry togry 1073741824 2008-01-22 20:50 reiserfs
 
  其中etc3和reiserfs两个文件就是“设备”.
 
  5.创建文件系统
 
  

togry@xiaowp:~/disks$ sudo mkfs.reiserfs reiserfs -f

mkfs.reiserfs 3.6.19 (2003 www.namesys.com)



A pair of credits:

Edward Shushkin wrote the encryption and compression file plugins, and the V3

journal relocation code.



Lycos Europe (www.lycos-europe.com) had a support contract with us that

consistently came in just when we would otherwise have missed payroll, and that

they kept doubling every year. Much thanks to them.





reiserfs is not a block special device

Continue (y/n):y

Guessing about desired format.. Kernel 2.6.23.1.build51 is running.

Format 3.6 with standard journal

Count of blocks on the device: 262144

Number of blocks consumed by mkreiserfs formatting process: 8219

Blocksize: 4096

Hash function used to sort names: "r5"

Journal Size 8193 blocks (first block 18)

Journal Max transaction length 1024

inode generation number: 0

UUID: 2b05d990-54b3-49c7-a197-79807a173c5b

Initializing journal - 0%....20%....40%....60%....80%....100%

Syncing..ok



Tell your friends to use a kernel based on 2.4.18 or later, and especially not a

kernel based on 2.4.9, when you use reiserFS. Have fun.



ReiserFS is successfully created on reiserfs.

togry@xiaowp:~/disks$ sudo mkfs.ext

mkfs.ext2 mkfs.ext3 

togry@xiaowp:~/disks$ sudo mkfs.ext3 ext

ext/ ext3 

togry@xiaowp:~/disks$ sudo mkfs.ext3 ext3 

mke2fs 1.40.4 (31-Dec-2007)

ext3 is not a block special device.



Proceed anyway? (y,n) y

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

131072 inodes, 262144 blocks

13107 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=268435456

8 block groups

32768 blocks per group, 32768 fragments per group

16384 inodes per group

Superblock backups stored on blocks: 

32768, 98304, 163840, 229376



Writing inode tables: done 

Creating journal (8192 blocks): done

Writing superblocks and filesystem accounting information: done



This filesystem will be automatically checked every 28 mounts or

180 days, whichever comes first. Use tune2fs -c or -i to override.
Empire CMS,phome.net

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号