Hi everyone,
My original problem:
>
> I have an SS20 151 running Solaris 2.5.1.
>
> I came in this morning to find that overnight someone or something
> had caused the system to reboot and now it refuses to get through an
> fsck on the root directory.
>
> On boot I get:
>
> Checking /dev/rdsk/c0t3d0s0
> /dev/rdsk/c0t3d0s0: MISSING '.' I=17237 OWNER=lp MODE=40711
> /dev/rdsk/c0t3d0s0: SIZE=512 MTIME=Jun 2 10:14 1997
> /dev/rdsk/c0t3d0s0: DIR=/var/spool/lp/tmp
> /dev/rdsk/c0t3d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
>
> Running fsck gives the following:
>
> Phase 1 - Check blocks and sizes
> Phase 2 - Check pathnames
> MISSING '.' I=17237 OWNER=lp MODE=40711 SIZE=512
> DIR=/var/spool/lp/tmp
> CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS *
> Phase 3 - Check Connectivity
> Phase 4 - Check Reference Counts
> Phase 5 - Check Cylinder Groups
>
> and of course the system will not mount this partition read/write.
>
> Is there anything I can do short of reinstalling/upgrade given that
> there is not a decent backup of this partition?
The overwhelming consensus was that I should run "clri" on the
offending slice and inode, and then rerun fsck.
i.e.
# clri /dev/rdsk/c0t3d0s0 17237
# fsck /dev/rdsk/c0t3d0s0
I did, and it worked beautifully - on a reboot the system recreated the
missing directory with the correct ownerships and permissions for me.
Obviously (I say obviously, but perhaps it isn't to all), the above was
done from system maintenance (single user) mode.
There were a couple of other suggestions which involved removing the
directory or moving it elsewhere, or booting with an alternate
superblock, booting from the cd and mounting the directory read/write
in order to access the partition, etc. etc., however, I obviously
did not try any of these.
My thanks to:
Renato Moutinho Silva (clri)
David S. Foster
Martin Huber (clri)
Shriman Gurung
Peter M Allan
David Lee (clri)
David Mitchell (clri)
Jochen Bern
Casper Dik (clri)
Brad Young
Ed Finch
Jason Keltz
for replying to my original post.
Amanda
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Amanda Simondson ajs@IEOR.Berkeley.EDU IEOR Department, UC Berkeley 4121 Etcheverry Hall Ph: 510-643-8657 Berkeley, CA 94720-1777 FAX: 510-642-1403 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:56 CDT