Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 15:11:31 +0800
From:      netroby <hufeng1987@gmail.com>
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Delete files let FreeBSD crashes.
Message-ID:  <4F4C7E23.3050404@gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
i installed freebsd 9 on virtualbox, when i try to delete a directory
with following command:

rm -rf ./zf2

the system will halt , then restart.

i had using fsck -y to check the filesystem, but seems not work.

following the output:

-------------------------------------
bsd# cd /root/repos/
bsd# ls -l
total 8
drwxr-xr-x 12 root wheel 1024 Feb 28 14:26 httpd
drwxr-xr-x 4 root wheel 512 Feb 28 14:53 zf2
bsd# fsck -y
** /dev/ada0p2 (NO WRITE)

USE JOURNAL? no

** Skipping journal, falling through to full fsck

SETTING DIRTY FLAG IN READ_ONLY MODE

UNEXPECTED SOFT UPDATE INCONSISTENCY
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=332256 (2688 should be 768)
CORRECT? no

1393793 DUP I=332265
UNEXPECTED SOFT UPDATE INCONSISTENCY

1393794 DUP I=332265
UNEXPECTED SOFT UPDATE INCONSISTENCY

1402537 DUP I=332266
UNEXPECTED SOFT UPDATE INCONSISTENCY

INTERNAL ERROR: dups with softupdates
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 1b - Rescan For More DUPS
1402537 DUP I=331641
UNEXPECTED SOFT UPDATE INCONSISTENCY

1393793 DUP I=332080
UNEXPECTED SOFT UPDATE INCONSISTENCY

1393794 DUP I=332080
UNEXPECTED SOFT UPDATE INCONSISTENCY

** Phase 2 - Check Pathnames
DUP/BAD I=331641 OWNER=root MODE=100600
SIZE=3011 MTIME=Feb 28 14:59 2012
FILE=/root/.history

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

DUP/BAD I=332080 OWNER=root MODE=100600
SIZE=9115 MTIME=Feb 28 14:58 2012
FILE=/root/.viminfo

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

DIRECTORY CORRUPTED I=332254 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

SALVAGE? no

MISSING '.' I=332254 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

DIRECTORY CORRUPTED I=332277 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

SALVAGE? no

MISSING '.' I=332277 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

UNALLOCATED I=332089 OWNER=root MODE=0
SIZE=0 MTIME=Feb 28 14:51 2012
NAME=/root/repos/zf2/.git/objects/pack/tmp_pack_KboUfa

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

SETTING DIRTY FLAG IN READ_ONLY MODE

UNEXPECTED SOFT UPDATE INCONSISTENCY
SETTING DIRTY FLAG IN READ_ONLY MODE

UNEXPECTED SOFT UPDATE INCONSISTENCY
DIRECTORY CORRUPTED I=332275 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

SALVAGE? no

MISSING '.' I=332275 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

DIRECTORY CORRUPTED I=426347 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

SALVAGE? no

MISSING '.' I=426347 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

BAD INODE NUMBER FOR '.' I=426361 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
DIR=?

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

BAD TYPE VALUE I=426374 OWNER=root MODE=100644
SIZE=4289 MTIME=Feb 28 14:33 2012
FILE=?/pngtest

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

BAD TYPE VALUE I=426375 OWNER=root MODE=100644
SIZE=11439 MTIME=Feb 28 14:33 2012
FILE=?/zlib

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

BAD TYPE VALUE I=426376 OWNER=root MODE=100644
SIZE=5444 MTIME=Feb 28 14:33 2012
FILE=?/libpng

UNEXPECTED SOFT UPDATE INCONSISTENCY

FIX? no

UNALLOCATED I=439236 OWNER=root MODE=0
SIZE=0 MTIME=Feb 28 14:33 2012
NAME=/root/repos/zf2/library/Zend/Feed/Writer/AbstractFeed.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED I=439237 OWNER=root MODE=0
SIZE=0 MTIME=Feb 28 14:33 2012
NAME=/root/repos/zf2/library/Zend/Feed/Writer/Deleted.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED I=439238 OWNER=root MODE=0
SIZE=0 MTIME=Feb 28 14:33 2012
NAME=/root/repos/zf2/library/Zend/Feed/Writer/Entry.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

** Phase 3 - Check Connectivity
UNREF DIR I=441064 OWNER=root MODE=40755
SIZE=1024 MTIME=Feb 28 14:51 2012
RECONNECT? no

UNREF DIR I=441056 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:51 2012
RECONNECT? no

UNREF DIR I=426361 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
RECONNECT? no

UNREF DIR I=426347 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
RECONNECT? no

UNREF DIR I=332275 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
RECONNECT? no

UNREF DIR I=363375 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:51 2012
RECONNECT? no

UNREF DIR I=332277 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
RECONNECT? no

UNREF DIR I=332254 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
RECONNECT? no

UNREF DIR I=332253 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012
RECONNECT? no

** Phase 4 - Check Reference Counts
UNREF FILE I=194795 OWNER=operator MODE=100400
SIZE=2048 MTIME=Feb 28 13:11 2012
RECONNECT? no


CLEAR? no

LINK COUNT FILE I=194796 OWNER=smmsp MODE=100600
SIZE=50 MTIME=Feb 28 15:06 2012 COUNT 1 SHOULD BE 2
LINK COUNT INCREASING
UNEXPECTED SOFT UPDATE INCONSISTENCY

ADJUST? no

UNREF FILE I=194960 OWNER=root MODE=140666
SIZE=0 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194961 OWNER=root MODE=100600
SIZE=3 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194962 OWNER=root MODE=100444
SIZE=194 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194964 OWNER=root MODE=100444
SIZE=67 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194965 OWNER=root MODE=100644
SIZE=0 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194966 OWNER=root MODE=100600
SIZE=3 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194967 OWNER=root MODE=140666
SIZE=0 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194968 OWNER=root MODE=140600
SIZE=0 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194969 OWNER=root MODE=100644
SIZE=4297 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194970 OWNER=root MODE=100644
SIZE=3 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194971 OWNER=root MODE=100644
SIZE=3 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194972 OWNER=root MODE=100644
SIZE=5 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194973 OWNER=root MODE=100644
SIZE=5 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194974 OWNER=root MODE=100600
SIZE=79 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=194975 OWNER=root MODE=100600
SIZE=4 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=237063 OWNER=mysql MODE=100660
SIZE=0 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332251 OWNER=root MODE=100644
SIZE=41 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332252 OWNER=root MODE=100644
SIZE=41 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

LINK COUNT DIR I=332253 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012 COUNT 3 SHOULD BE 1
ADJUST? no

LINK COUNT DIR I=332254 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012 COUNT 2 SHOULD BE 1
ADJUST? no

UNREF FILE I=332255 OWNER=root MODE=100644
SIZE=160 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332256 OWNER=root MODE=100644
SIZE=1320096 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332261 OWNER=root MODE=100644
SIZE=8064 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332263 OWNER=root MODE=100644
SIZE=31042 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332264 OWNER=root MODE=100644
SIZE=11324 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

BAD/DUP FILE I=332265 OWNER=root MODE=100644
SIZE=7433 MTIME=Feb 28 14:33 2012
CLEAR? no

BAD/DUP FILE I=332266 OWNER=root MODE=100644
SIZE=3933 MTIME=Feb 28 14:33 2012
CLEAR? no

UNREF FILE I=332267 OWNER=root MODE=100644
SIZE=6963 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332268 OWNER=root MODE=100644
SIZE=8325 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332269 OWNER=root MODE=100644
SIZE=20357 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332270 OWNER=root MODE=100644
SIZE=16240 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332271 OWNER=root MODE=100644
SIZE=4023 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332272 OWNER=root MODE=100644
SIZE=16325 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332273 OWNER=root MODE=100644
SIZE=12003 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332274 OWNER=root MODE=100644
SIZE=2778 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

LINK COUNT DIR I=332275 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012 COUNT 2 SHOULD BE 1
ADJUST? no

UNREF FILE I=332276 OWNER=root MODE=100644
SIZE=2289 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

LINK COUNT DIR I=332277 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012 COUNT 2 SHOULD BE 1
ADJUST? no

UNREF FILE I=332278 OWNER=root MODE=100644
SIZE=1206 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=332279 OWNER=root MODE=100644
SIZE=41 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

LINK COUNT DIR I=364931 OWNER=root MODE=40755
SIZE=1536 MTIME=Feb 28 14:53 2012 COUNT 2 SHOULD BE 3
LINK COUNT INCREASING
UNEXPECTED SOFT UPDATE INCONSISTENCY

ADJUST? no

UNREF FILE I=426338 OWNER=root MODE=100644
SIZE=0 MTIME=Feb 28 15:06 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426340 OWNER=root MODE=100644
SIZE=22425 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426341 OWNER=root MODE=100644
SIZE=5490 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426342 OWNER=root MODE=100644
SIZE=19780 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426343 OWNER=root MODE=100644
SIZE=48929 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426344 OWNER=root MODE=100644
SIZE=8829 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426345 OWNER=root MODE=100644
SIZE=4035 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426346 OWNER=root MODE=100644
SIZE=1035 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

LINK COUNT DIR I=426347 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012 COUNT 2 SHOULD BE 1
ADJUST? no

UNREF FILE I=426348 OWNER=root MODE=100644
SIZE=1135 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426349 OWNER=root MODE=100644
SIZE=1380 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426350 OWNER=root MODE=100644
SIZE=2423 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426351 OWNER=root MODE=100644
SIZE=1396 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426352 OWNER=root MODE=100644
SIZE=1379 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426353 OWNER=root MODE=100644
SIZE=6075 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426354 OWNER=root MODE=100644
SIZE=3996 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426355 OWNER=root MODE=100644
SIZE=3853 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426356 OWNER=root MODE=100644
SIZE=4683 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426357 OWNER=root MODE=100644
SIZE=2365 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426358 OWNER=root MODE=100644
SIZE=2909 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426360 OWNER=root MODE=100644
SIZE=1035 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

LINK COUNT DIR I=426361 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:33 2012 COUNT 2 SHOULD BE 1
ADJUST? no

UNREF FILE I=426362 OWNER=root MODE=100644
SIZE=1176 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426363 OWNER=root MODE=100644
SIZE=2402 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426364 OWNER=root MODE=100644
SIZE=3070 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426365 OWNER=root MODE=100644
SIZE=3291 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426366 OWNER=root MODE=100644
SIZE=7431 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426367 OWNER=root MODE=100644
SIZE=3565 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426368 OWNER=root MODE=100644
SIZE=2203 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426369 OWNER=root MODE=100644
SIZE=4107 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426370 OWNER=root MODE=100644
SIZE=2929 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426371 OWNER=root MODE=100644
SIZE=2259 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426372 OWNER=root MODE=100644
SIZE=1815 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426379 OWNER=root MODE=100644
SIZE=8754 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426380 OWNER=root MODE=100644
SIZE=4872 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426381 OWNER=root MODE=100644
SIZE=1211 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426382 OWNER=root MODE=100644
SIZE=19119 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426383 OWNER=root MODE=100644
SIZE=7719 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426384 OWNER=root MODE=100644
SIZE=3919 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426385 OWNER=root MODE=100644
SIZE=18025 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426386 OWNER=root MODE=100644
SIZE=1317 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

UNREF FILE I=426387 OWNER=root MODE=100644
SIZE=356 MTIME=Feb 28 14:33 2012
RECONNECT? no


CLEAR? no

ZERO LENGTH DIR I=440682 OWNER=root MODE=40755
SIZE=0 MTIME=Feb 28 14:51 2012
CLEAR? no

LINK COUNT DIR I=441056 OWNER=root MODE=40755
SIZE=512 MTIME=Feb 28 14:51 2012 COUNT 2 SHOULD BE 1
ADJUST? no

LINK COUNT DIR I=441064 OWNER=root MODE=40755
SIZE=1024 MTIME=Feb 28 14:51 2012 COUNT 2 SHOULD BE 1
ADJUST? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

ALLOCATED FRAGS 1330765-1330767 MARKED FREE
ALLOCATED FRAGS 1330776-1330783 MARKED FREE
ALLOCATED FRAGS 1393496-1393497 MARKED FREE
ALLOCATED FRAGS 1394192-1394193 MARKED FREE
ALLOCATED FRAGS 1399669-1399670 MARKED FREE
ALLOCATED FRAGS 1400060-1400061 MARKED FREE
ALLOCATED FRAGS 1402541-1402542 MARKED FREE
ALLOCATED FRAGS 1403456-1403457 MARKED FREE
ALLOCATED FRAG 1468654 MARKED FREE
ALLOCATED FRAGS 1704976-1704983 MARKED FREE
ALLOCATED FRAGS 1707960-1707967 MARKED FREE
228938 files, 649913 used, 1766357 free (13333 frags, 219128 blocks,
0.5% fragmentation)
bsd# ls -l
total 8
drwxr-xr-x 12 root wheel 1024 Feb 28 14:26 httpd
drwxr-xr-x 4 root wheel 512 Feb 28 14:53 zf2
bsd# rm -rf zf2
rm: zf2/.git/objects/pack/tmp_pack_KboUfa: Bad file descriptor
rm: zf2/.git/objects/pack: Directory not empty
rm: zf2/.git/objects: Directory not empty
rm: zf2/.git: Directory not empty


-------------------------------------------------------------------



netroby



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4F4C7E23.3050404>