Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Mar 2001 04:07:00 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        Trevin Chow <trevin@mail.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Can't delete an empty directory?
Message-ID:  <Pine.BSF.4.21.0103020404340.84311-100000@ren.sasknow.com>
In-Reply-To: <5.0.2.1.2.20010301202957.0254ccd0@mail.brightmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Trevin Chow wrote to questions@FreeBSD.ORG:

> For some reason I cannot remove a directory even though there are no files 
> in it.  I recently had to run "fsck" manually as my machine had a "kernel 
> panic" .  These events must be related.  Here's some output of what's happened:
> 
> /usr/ports/textproc/aspell/work/aspell-.33/scowl/r # ls -al
> total 2
> drwxr-xr-x  3 500  500  512 Mar  1 20:30 ./
> drwxr-xr-x  3 500  500  512 Mar  1 20:30 ../
> 
> /usr/ports/textproc/aspell/work/aspell-.33/scowl # rmdir r
> rmdir: r: Directory not empty
> 
> Any ideas what might be causing this?

What about the output of `ls -alid r` ?

Have you tried `rm -Rf r` ?

Did fsck actually fix anything?

- Ryan

-- 
  Ryan Thompson <ryan@sasknow.com>
  Network Administrator, Accounts

  SaskNow Technologies - http://www.sasknow.com
  #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2

        Tel: 306-664-3600   Fax: 306-664-1161   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103020404340.84311-100000>