home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!sci34hub!gary
- From: gary@sci34hub.sci.com (Gary Heston)
- Subject: Re: How do I remove a directory with no parent?
- Message-ID: <1992Sep2.133619.18698@sci34hub.sci.com>
- Reply-To: gary@sci34hub.sci.com (Gary Heston)
- Organization: SCI Systems, Inc., Huntsville, Al.
- References: <1992Aug29.151128.3376@magnus.acs.ohio-state.edu>
- Date: Wed, 2 Sep 1992 13:36:19 GMT
- Lines: 26
-
- In article <1992Aug29.151128.3376@magnus.acs.ohio-state.edu> bjones@magnus.acs.ohio-state.edu (William A Jones) writes:
- |I just recently installed smail v3.1.25 on my system (i486 running linux 0.97)
- |and during the installation process, the directory /usr/local/lib/smail/methods
- |was created. However, there is absolutely nothing in the directory -- no
- |., no .., no nothing. fsck kindly points this out but hasn't done anything
- |to fix it. rmdir, rm -rf, rm -d all don't work. I tried removing the entire
- |directory tree doing an "rm -rf /usr/local/lib/smail" but that doesn't work.
- |
- |Other than backing up everything else but this file and running mkfs to make
- |a clean disk is there any other way to fix this?
-
- Under linux.... Hmmm... If adb or something similar is available, you can
- hand edit the inode to convert it to a file entry, and then remove it. If
- you don't have adb, boot from a DOS floppy with something like Nortons'
- or Mace utilities and use the sector editor they have.
-
- I'm puzzled as to how this was created; after you get rid of the bogus
- entry, you may want to manually create the directory to avoid this happening
- again.
-
-
- --
- Gary Heston SCI Systems, Inc. gary@sci34hub.sci.com site admin
- The Chairman of the Board and the CFO speak for SCI. I'm neither.
- The most dangerous person in the world is Jessica Fletcher.
- Everywhere she goes, people die.
-