fsck 磁盘检查
env: solaris8, sparc hardwarethe following is test for our server when it can not be mounted.
bash-2.03# mount /dev/dsk/c1t0d0s2/data-hda
mount: the state of /dev/dsk/c1t0d0s2 is not okay
and it was attempted to be mounted read/write
mount: Please run fsck and try again
bash-2.03# fsck /dev/dsk/c1t0d0s2
** /dev/dsk/c1t0d0s2
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=1022906 (2 should be 0)
CORRECT?
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILEI=1022905OWNER=root MODE=100644
SIZE=613 MTIME=Oct 30 20:30 2008
RECONNECT?
CLEAR? y
UNREF FILE I=1022906OWNER=root MODE=0
SIZE=0 MTIME=Oct 30 20:30 2008
CLEAR? y
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? y
79926 files, 9920211 used, 5138040 free (5184 frags, 641607 blocks,0.0% fragmentation)
***** FILE SYSTEM WAS MODIFIED *****
bash-2.03#
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/68079/showart_1354797.html
页:
[1]