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. | |