From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Feb 14 23:26:30 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id XAA96838;
	Wed, 14 Feb 2001 23:26:30 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from inform.co.jp (ns.inform.co.jp [210.155.34.2])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id XAA96831;
	Wed, 14 Feb 2001 23:26:27 +0900 (JST)
	(envelope-from ttaniguchi@inform.co.jp)
Received: from cf-b5v.inform.co.jp (router03.inform.co.jp [210.155.34.20])
	by inform.co.jp (8.9.3/3.7W) with SMTP id XAA08071;
	Wed, 14 Feb 2001 23:26:10 +0900 (JST)
Message-Id: <200102141426.AA00300@cf-b5v.inform.co.jp>
From: Tadashi Taniguchi <ttaniguchi@inform.co.jp>
Date: Wed, 14 Feb 2001 23:26:14 +0900
To: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Cc: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: <20010214223423B.iwasaki@jp.FreeBSD.org>
References: <20010214223423B.iwasaki@jp.FreeBSD.org>
MIME-Version: 1.0
X-Mailer: AL-Mail32 Version 1.11
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: FreeBSD-users-jp 59039
Subject: [FreeBSD-users-jp 59039] Re: directory lost ?
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: ttaniguchi@inform.co.jp

$BC+8}!w%$%s%U%)!<%`%7%9%F%`$G$9(B

>$B$$$o$5$-$H?=$7$^$9(B

$B!!!!5~ET$G$OL[!9$H(BThinkPad$B$KBG$A9~$`;Q$,0u>]E*$G$7$?!#(B

>> $B!!$H$J$j(B/usr/src$B$r>C$9$3$H$b0\F0$9$k$3$H$b$G$-$J$/$J$j$^$7$?!#(B
>> fsck$B$r9T$C$F$b%(%i!<$O=P$:$K@5>o=*N;$7$?$h$&$G$9!#(B
>> /usr/src$B$r2?$i$+$NJ}K!$G>C$9$3$H$O$G$-$J$$$G$7$g$&$+!)(B
>
>fsdb(8) $B$J$I$O$$$+$,$G$7$g$&(B?
># $B$4$/$?$^$K$*@$OC$K$J$j$^$9$,!"$"$^$jCg$h$/$7$?$/$J$$%D!<%k$G$9$M(B (^^;

$B!!!!=i$a$F$*@$OC$K$J$j$=$&$G$9!#!!@8$-$F$$$kItJ,$@$1$G$b%P%C%/%"%C%W$7$F(B
$B!!(Bfsdb$B$r;H$C$F$_$?$$$H;W$$$^$9!#!!1s3VCO$K@_CV$7$?5!3#$J$N$G2?$+$"$C$?$i(B
$B!!Ht$s$G$$$1$^$;$s!#(B

www02# fsdb -d /dev/ad0s1f
** /dev/ad0s1f (NO WRITE)
Editing file system `/dev/ad0s1f'
Last Mounted on /usr
current inode: directory
I=2 MODE=40755 SIZE=512
        MTIME=Feb 14 21:32:56 2001 [0 nsec]
        CTIME=Feb 14 21:32:56 2001 [0 nsec]
        ATIME=Feb 14 23:06:18 2001 [0 nsec]
OWNER=root GRP=wheel LINKCNT=18 FLAGS=0 BLKCNT=2 GEN=7d007855
fsdb (inum: 2)> ls
command `ls
'
slot 0 ino 2 reclen 12: directory, `.'
slot 1 ino 2 reclen 12: directory, `..'
slot 2 ino 7936 reclen 12: directory, `bin'
slot 3 ino 15872 reclen 16: directory, `include'
slot 4 ino 341248 reclen 12: directory, `lib'
slot 5 ino 372992 reclen 16: directory, `libdata'
slot 6 ino 261907 reclen 16: directory, `libexec'
slot 7 ino 349189 reclen 16: directory, `local'
slot 8 ino 365061 reclen 16: directory, `mdec'
slot 9 ino 372997 reclen 16: directory, `sbin'
slot 10 ino 269873 reclen 16: directory, `share'
slot 11 ino 357305 reclen 12: directory, `src'
slot 12 ino 119164 reclen 16: directory, `X11R6'
slot 13 ino 79419 reclen 16: directory, `compat'
slot 14 ino 87400 reclen 16: directory, `games'
slot 15 ino 47709 reclen 12: directory, `obj'
slot 16 ino 285751 reclen 12: directory, `tmp'
slot 17 ino 111203 reclen 268: directory, `ports'

fsdb (inum: 2)> rm src
command `rm src
'
Name `src' removed
fsdb (inum: 2)> ls
command `ls
'
slot 0 ino 2 reclen 12: directory, `.'
slot 1 ino 2 reclen 12: directory, `..'
slot 2 ino 7936 reclen 12: directory, `bin'
slot 3 ino 15872 reclen 16: directory, `include'
slot 4 ino 341248 reclen 12: directory, `lib'
slot 5 ino 372992 reclen 16: directory, `libdata'
slot 6 ino 261907 reclen 16: directory, `libexec'
slot 7 ino 349189 reclen 16: directory, `local'
slot 8 ino 365061 reclen 16: directory, `mdec'
slot 9 ino 372997 reclen 16: directory, `sbin'
slot 10 ino 269873 reclen 16: directory, `share'
slot 11 ino 0 reclen 12: unknown, `src'
slot 12 ino 119164 reclen 16: directory, `X11R6'
slot 13 ino 79419 reclen 16: directory, `compat'
slot 14 ino 87400 reclen 16: directory, `games'
slot 15 ino 47709 reclen 12: directory, `obj'
slot 16 ino 285751 reclen 12: directory, `tmp'
slot 17 ino 111203 reclen 268: directory, `ports'
fsdb (inum: 2)> q
command `q
'
*** FILE SYSTEM MARKED DIRTY
*** BE SURE TO RUN FSCK TO CLEAN UP ANY DAMAGE
*** IF IT WAS MOUNTED, RE-MOUNT WITH -u -o reload
www02# fsck /usr
** /dev/ad0s1f (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
28048 files, 464956 used, 1519523 free (16243 frags, 187910 blocks, 0.8% fragmentation)
www02# cd /usr
www02# ls
X11R6   bin     compat  games   include lib     libdata libexec local   mdec    obj     ports   
sbin    share   src     tmp
www02# ls -l
ls: src: Input/output error
total 32
drwxr-xr-x   6 root  wheel   512 Apr 28  2000 X11R6
drwxr-xr-x   2 root  wheel  6656 Jan 30 21:37 bin
drwxr-xr-x   2 root  wheel   512 Apr 28  2000 compat
drwxr-xr-x   3 root  wheel  1024 May 30  2000 games
drwxr-xr-x  35 root  wheel  3072 May 30  2000 include
drwxr-xr-x   4 root  wheel  6144 May 30  2000 lib
drwxr-xr-x   9 root  wheel   512 Apr 28  2000 libdata
drwxr-xr-x   8 root  wheel  1536 Jan 30 21:37 libexec
drwxr-xr-x  17 root  wheel   512 Jan 30 21:37 local
drwxr-xr-x   2 root  wheel   512 Mar 21  2000 mdec
drwxr-xr-x   2 root  wheel   512 Dec 26 11:41 obj
drwxr-xr-x   5 root  wheel   512 Jun 23  2000 ports
drwxr-xr-x   2 root  wheel  4096 Jan 30 21:37 sbin
drwxr-xr-x  25 root  wheel   512 Mar 22  2000 share
drwxrwxrwt   2 root  wheel   512 Nov  1 20:52 tmp

$B!!!!8=CO$K$F(Bmount$B$d$jD>$7$F$b%@%a$@$C$?$iJL%G%#%9%/$K0\F0$7$F(B
$B!!:n$jD>$7$^$9!#(B

---------------------------------------------------------------------------
 $B%$%s%U%)!<%`%7%9%F%`3t<02q<R!J(BOCN/DION,KDDI/ODN$B3F<oBeM}E9!K(B
$B!!(B $B")(B532-0011  $BBg:e;TMd@n6h@>CfEg(B 4-7-18 $B$^$k$_$d%S%k!!#23,(B
 $B!!(B $BC+8}!!Ci;K(B  mailto : ttaniguchi@inform.co.jp
                http://www.inform.co.jp/
