Thanks to the following for their responses:
misawa@physics.Berkeley.EDU (Shigeki Misawa)
Ric Anderson <ric@rtd.com>
Petros Michalis <michalis@dpg.rnb.com>
Michael Baumann <baumann@proton.llumc.edu>
Casper Dik <casper@holland.Sun.COM>
Matthias Kurz <mk@baerlap.north.de>
peter.allan@aeat.co.uk (Peter Allan)
Asim Zuberi <asim@psa.pencom.com>
Bill Kearney <wkearney@access.digex.net>
gdmr@dcs.ed.ac.uk (George Ross)
My original problem:
! I am in the process of upgrading a number of systems to Solaris 2.5/CDE 1.0.1.
! Due to space limitations I have to install CDE in /opt/dt instead of
! /usr/dt. This requires the install process to move the SUNWmfrun
! package from /usr/dt to /opt/dt. When this is done it leaves an empty
! directory behind that the system says can't be deleted because its not
! empty:
!
!
!
! (/usr)
! root@charon# ls -la dt.pre.CDE.29Mar96-01:15:24
! total 4
! drwxrwxr-x 3 root bin 512 Mar 29 01:16 ./
! drwxrwxr-x 29 root sys 1024 Mar 30 22:05 ../
!
! (/usr)
! root@charon# rmdir dt.pre.CDE.29Mar96-01:15:24
! rmdir: directory "dt.pre.CDE.29Mar96-01:15:24": Directory not empty
!
! (/usr)
! root@charon# rm -fr dt.pre.CDE.29Mar96-01:15:24
! rm: Unable to remove directory dt.pre.CDE.29Mar96-01:15:24: File exists
!
!
! Is it safe for me to use unlink to delete this directory? Is there
! something special about it?
Casper Dik and Matthias Kurz hit the right solution. The directory had
3 instead of 2 links, needing a fsck.
I had planned to take the system down and fsck the partition tonight
but an untimely kernel panic this afternoon took care of that for
me. The fsck found the problem and fixed it.
Here's what happened, when the CDE install script moved the existing
contents of /usr/dt (SUNWmfrun) to /opt/dt it incorrectly removed the
/usr/dt/man directory. This left the /usr/dt directory showing a link
to the /usr/dt/man directory and the /usr/dt/man directory tree was
lost in space.
This is just another one of the LONG list of things that is broken in
the CDE install script.
Johnie
==============================================================================
Johnie Stafford, System Administrator * Phone: (318) 981-1442
C & C Technologies, Inc. * Fax: (318) 988-1016
500 Dover Blvd. * E-mail: js@cctechnol.com
Lafayette, LA 70503 * URL: http://www.cctechnol.com
==============================================================================
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:56 CDT