Ext3和Reiserfs文件系统占用空间的比较
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-05
|
6.挂载文件系统之后查看空间的剩余情况 togry@xiaowp:~/disks$ df 文件系统 1K-块 已用 可用 已用% 挂载点 …… /home/togry/disks/ext3 1032088 34092 945568 4% /home/togry/disks/ext /home/togry/disks/reiserfs 1048540 32840 1015700 4% /home/togry/disks/rei togry@xiaowp:~/disks$ df -h 文件系统 容量 已用 可用 已用% 挂载点 …… /home/togry/disks/ext3 1008M 34M 924M 4% /home/togry/disks/ext /home/togry/disks/reiserfs 1.0G 33M 992M 4% /home/togry/disks/rei 似乎文件空间的占用情况相当了.让我们再看看2GB文件系统里的情况: 7.创建文件: dd if=/dev/zero of=ext3 bs=1G count=2 dd if=/dev/zero of=reiserfs bs=1G count=2 看一下结果: drwxr-xr-x 2 togry togry 48 2008-01-11 17:07 ext -rw-r——r—— 1 togry togry 2147483648 2008-01-22 21:30 ext3 drwxr-xr-x 2 togry togry 48 2008-01-11 17:07 rei -rw-r——r—— 1 togry togry 2147483648 2008-01-22 21:35 reiserfs 8.创建文件系统:
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)
262144 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
togry@xiaowp:~/disks$ sudo mkfs.reiserfs reiserfs -f
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)
A pair of credits:
BigStorage (www.bigstorage.com) contributes to our general fund every month,
and has done so for quite a long time.
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: 524288
Number of blocks consumed by mkreiserfs formatting process: 8227
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: 0d3e668d-77e5-4b5d-a157-a3e937cbc7f4
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. | |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn
为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
|