linux的文件系统很容易损坏
[root@localhost qmail-1.03]# csh -cf `/var/qmail/rc &` &
[8] 14237
[root@localhost qmail-1.03]# shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
csh: No such file or directory
csh: Trying to start from "/root"
[8] Done csh -cf `/var/qmail/rc &`
我认为是文件系统出错,
所以[root@localhost qmail-1.03]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda5 5732024 2469924 2970924 46% /
所以试图修复文件系统
[root@localhost qmail-1.03]# fsck / -y
Parallelizing fsck version 1.19 (13-Jul-2000)
e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
/dev/hda5 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/ was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Deleted inode 163686 has zero dtime. Fix? yes
Deleted inode 163725 has zero dtime. Fix? yes
Deleted inode 165381 has zero dtime. Fix? yes
Deleted inode 165450 has zero dtime. Fix? yes
Inode 197009, i_blocks is 2424, should be 2408. Fix? yes
Inode 197674, i_blocks is 64, should be 32. Fix? yes
Inode 197675, i_blocks is 64, should be 32. Fix? yes
Inode 389736, i_blocks is 64, should be 8. Fix? yes
Inode 389741, i_blocks is 64, should be 8. Fix? yes
Inode 389742, i_blocks is 64, should be 8. Fix? yes
Inode 569230, i_blocks is 184, should be 128. Fix? yes
Inode 680401, i_blocks is 64, should be 32. Fix? yes
Inode 681654, i_blocks is 64, should be 40. Fix? yes
Inode 683283, i_blocks is 64, should be 8. Fix? yes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences: -45385 -45386 -333182 -333565 -333790 -333806 -334631 -339943 -339944 -339945 -339946 -339947 -339948 -339949 -339950 -340344 -340345 -340346 -340347 -340348 -340349 -340350 -340351 -340352 -340353 -340354 -340355 -340356 -340357 -340358 -340359 -409124 -409125 -409126 -409127 -410472 -410473 -410474 -410475 -797373 -797374 -797375 -797376 -797377 -797378 -797379 -797385 -797386 -797387 -797388 -797389 -797390 -797391 -798423 -798424 -798425 -798426 -798427 -798428 -798429 -1153281 -1153282 -1153283 -1153284 -1153285 -1153286 -1153287 -1381615 -1381616 -1381617 -1381618 -1381620 -1381621 -1381622 -1381623 -1381624 -1381625 -1381626 -1381651 -1381652 -1381653
Fix? yes
Free blocks count wrong for group #1 (0, counted=2).
Fix? yes
Free blocks count wrong for group #10 (21083, counted=21112).
Fix? yes
Free blocks count wrong for group #12 (16445, counted=16453).
Fix? yes
Free blocks count wrong for group #24 (19662, counted=19683).
Fix? yes
Free blocks count wrong for group #35 (23964, counted=23971).
Fix? yes
Free blocks count wrong for group #42 (20528, counted=20542).
Fix? yes
Free blocks count wrong (815444, counted=815525).
Fix? yes
Inode bitmap differences: -163686 -163725 -165381 -165450
Fix? yes
Free inodes count wrong for group #10 (12666, counted=12670).
Fix? yes
Directories count wrong for group #10 (222, counted=221).
Fix? yes
Free inodes count wrong (572351, counted=572355).
Fix? yes
/: ***** FILE SYSTEM WAS MODIFIED *****
/: 156285/728640 files (1.7% non-contiguous), 640357/1455882 blocks
再次运行qmail
[root@localhost qmail-1.03]# shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
csh: No such file or directory
csh: Trying to start from "/root"
[8] Done csh -cf `/var/qmail/rc &`
还是失败,各位有什么好办法?谢谢指点。