的文件系统减少了系统崩溃后恢复文件系统所花费的时间.
没有必要运行fdisk来检查文件系统.
在安装时创建分区,ext3文件系统会被默认选定,且是大力推荐的.
ext3文件系统支持三种日志模式
规则(默认,仅记录元数据)
日志化(将数据象元数据一样记录入日志)
写回(只在fsck时发生)
[root@51cto ~]# mkfs -t ext2 /dev/sdb5 //把/dev/sdb5格式化,采用
拥有帝国一切,皆有可能。欢迎访问phome.netext2的文件系统
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
120832 inodes, 481948 blocks
24097 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
59 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
将原ext2文件系统升级成为ext3文件系统: (注意ext3无法变回ext2)
[root@51cto ~]# tune2fs -j /dev/sdb5
tune2fs 1.39 (29-May-2006)
Creating journal inode: done
This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
可以通过内存映象文件/proc/mounts 查看文件系统:
[root@51cto ~]# cat /proc/mounts
……
/dev/sdb1 /51cto ext3 ro,noexec,data=ordered 0 0
……
/de
拥有帝国一切,皆有可能。欢迎访问phome.netv/sdb5 /24 ext3 rw,data=ordered 0 0 //这里我刚才创建了挂载点/24
六、其他常见的文件系统
minix:古老的文件系统
msdos/fat:microsoft早年的文件系统
vfat:win95与win98采用的文件系统
ntfs:win2000使用的文件系统
iso9660:光盘使用的文件系统
ReiserFS/JFS:仍然在完善的带日志文件系统
备注:对于自动挂载的部分放在进阶二说明.
本文出自 “twenty_four” 博客,请务必保留此出处http://twentyfour.blog.51cto.com/945260/400096
拥有帝国一切,皆有可能。欢迎访问phome.net |