|
check consistency of the filesystem on /dev/hda10
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Wed Sep 14 08:54:17 2005
###########
Replaying journal..
Reiserfs journal '/dev/hda10' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found 注:没有发现错误;
There are on the filesystem:
Leaves 2046
Internal nodes 15
Directories 130
Other files 2305
Data block pointers 1863657 (70565 of them are zero)
Safe links 0
###########
reiserfsck finished at Wed Sep 14 08:54:33 2005
###########
对于fsck.ext2和fsck.ext3常用的几个选项:
-p Automatic repair (no questions) 注:自动修复文件系统存在的问题;
-y Assume "yes" to all questions 注:如果文件系统有问题,会跳出提示是否修复,如果修复请按y;
-c Check for bad blocks and add them to the badblock list 注:对文件系统进行坏块检查;这是一个极为漫长的过程;
-n Make no changes to the filesystem 注:不对文件系统做任何改变,只要扫描,以检测是否有问题;
举例:比如 /dev/hda6 (文件系统是ext3的),我想扫描并自动修复;
[root@localhost beinan]# fsck.ext3 -p /dev/hda6
注意: 针对不同文件系统,最好用相应的工具;虽然有时fsck 在不加参数的情况下能识别不同的文件系统;
对于不同工具的最为详细的参数,请参看--help或者man ,谢谢。。
后记:
创建文件系统和加载文件系统就算写的差不多了;再高深的可能也不是我所能写的。为了写文件系统系统的挂载,我已经写过几篇文档。可能还得需补充几篇短小文档,以及还有一个总结性的文档;
比如Fedora Core 4.0 默认安装不支持创建reiserfs 文件系统,解决办法是安装reiserfs-utils ,这也是需要补充的; 上一页 [1] [2] [3] [4] |