Subject: fixing files after fsck -y
To: None <port-mac68k@netbsd.org>
From: Ken Hughes <hughes@interchange.ubc.ca>
List: port-mac68k
Date: 06/03/2000 21:12:58
Hello everyone
[Forgive the repeated query. The followup from Mr. Horrocks got
got answers, but nothing yetr for this pathetic newbie.]
I had repeated SCSI trouble during my current install, debug reboots,
etc., and then found 60+ lost+found entries after fsck(s) (where I
gave a "yes" to everything, fixing, adjusting, reconnecting, ...).
System is nice and fast (way better than previous version and hugely
more perky than Debian) but I would like to fix the following ...
# ls -ilF /lost+found
total 124
98883 -r--r--r-- 2 root wheel 2933 Aug 10 1999 #098883
... < 18 similar files omitted >
99842 drwxr-xr-x 2 root wheel 512 May 28 00:16 #099842/
101762 drwx------ 2 root wheel 512 Aug 10 1999 #101762/
104642 drwxrwx--- 2 root wheel 512 May 28 00:05 #104642/
106563 -rw------- 1 root wheel 592 Aug 11 1999 #106563
109442 drwxrwxr-x 2 games games 512 May 28 00:06 #109442/
113283 -rw-rw---- 1 games games 0 Aug 11 1999 #113283
... < 7 similar files omitted >
114256 ----r--r-- 1 root wheel 1558 Jan 28 1999 #114256
116162 drwxrwxrwt 2 root wheel 512 Aug 10 1999 #116162/
117122 drwxr-xr-x 2 daemon wheel 512 May 28 00:08 #117122/
119042 drwxr-x--- 2 root operator 512 Aug 10 1999 #119042/
124802 drwxr-xr-x 2 root wheel 512 Aug 10 1999 #124802/
133442 drwxr-xr-x 2 uucp daemon 512 Aug 10 1999 #133442/
... < etc. >
Installer problems looked like the following ...
Friday, 26 May 2K ERROR:
mode = 0100444, inum = 111364, fs = /
ialloc: dup alloc
And then after installing man, text and games,
the installer died about 90% of the way thru misc with:
mode = 0100444, inum = 11523, fs = /
ialloc: dup alloc
Some dirs are "empty" and some have further directories inside.
The installer's "ls" also shows 6 identical blanks at the end (below).
3 drwxr-xr-x 44 0 8192 May 27 23:08
3 drwxr-xr-x 44 0 8192 May 27 23:08
... < 4 identical listings omitted >
# df -i
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mount on
/dev/sd1a 618629 123357 433409 22% 5874 144844 3% /
kernfs 1 1 0 100% 0 0 100% /kern
procfs 4 4 0 100% 12 136 8% /proc
Searching for inode 99842 once led to /var/cron/tabs/root and
# ls -l /var/cron/tabs
ls: root: Bad file descriptor
# ls -l /var/cron
total 2
-rw------- 1 root wheel 732 May 28 00:44 log
drwx------ 2 root wheel 512 Aug 11 1999 tabs
# cat /var/cron/log
May 27 23:10:00 CRON[152]: (root) CMD (/usr/libexec/atrun)
< some /usr/libexec/atrun omitted >
May 28 00:00:00 CRON[235]: (root) CMD (/usr/bin/newsyslog)
May 28 00:43:40 cron[132]: (root) FSTAT FAILED (tabs/root)
Some files are gone now due to "rm -rf /lost+found/*" (thereby,
surely, losing my chances for file fixes) but others appear to be
be unremovable/disjoint/whatever without the right treatment.
# "clri /dev/sd1a 99842" ==> clri: /dev/sd1a: device is busy.
And I'm way too much of novice to use "fsdb" without more info.
Does anyone have a pointer, reference or tutorial to suggest.
No material I can find has clued me in yet.
Probably there's some simple thing I'm supposed to do ...
Of course, I could just install all over again, but I thought
I would try to learn something here.
Thanks for your assistance,
Ken Hughes hughes@unixg.ubc.ca
Centris 650 NetBSD 1.4.1 sets using Eric Winkler's 68040 kernel