<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot Delete Empty Directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203693#M748655</link>
    <description>Jeff,&lt;BR /&gt;  When running rm -i inside the dir it returns the following:&lt;BR /&gt;No match&lt;BR /&gt;&lt;BR /&gt;What do you think about the "Cannot Unlink" error when moving the dir to another filesystem?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 26 Feb 2004 17:23:51 GMT</pubDate>
    <dc:creator>Tommy_6</dc:creator>
    <dc:date>2004-02-26T17:23:51Z</dc:date>
    <item>
      <title>Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203684#M748646</link>
      <description>I noticed I have an empty directory.  As root, when I do an ls -la I receive the following:&lt;BR /&gt;Total 0&lt;BR /&gt;&lt;BR /&gt;There is no "." or ".."&lt;BR /&gt;When I try to rm -rf the directory as root, it returns the following:&lt;BR /&gt;rm: directory &lt;DIR&gt; not removed.  Directory not empty&lt;BR /&gt;&lt;BR /&gt;Anyone have an idea.  Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Tommy&lt;/DIR&gt;</description>
      <pubDate>Thu, 26 Feb 2004 16:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203684#M748646</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-26T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203685#M748647</link>
      <description>Maybe its a special file or there is a soft link to it somewhere else.&lt;BR /&gt;&lt;BR /&gt;maybe lsof or fusers -cu to identify a process on the fs&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 26 Feb 2004 16:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203685#M748647</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-26T16:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203686#M748648</link>
      <description>You probably have a file with a control character as the name --- or maybe even a single space.&lt;BR /&gt;&lt;BR /&gt;cd to the directory and do an ls -b. That will display any non-printable characters in octal notation.&lt;BR /&gt;&lt;BR /&gt;You can remove the directory d by issueing a recursive rm, rm -r dirname and that will remove all files/directories below dirname before removing dirname itself. Man rm for details.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2004 16:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203686#M748648</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-02-26T16:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203687#M748649</link>
      <description>There are no instances of the directory when running the lsof command.  When running "fuser -cu &lt;DIR&gt;" it would return:&lt;BR /&gt;&lt;BR /&gt;fuser: could not find file system mounted at &lt;DIR&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/DIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 26 Feb 2004 16:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203687#M748649</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-26T16:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203688#M748650</link>
      <description>Clay,&lt;BR /&gt;  There are no non-printable characters in the directory name, when trying to remove the directory recursively with "rm -rf", it complains that the directory is not empty.  &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2004 16:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203688#M748650</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-26T16:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203689#M748651</link>
      <description>Try moving it first:&lt;BR /&gt;&lt;BR /&gt;mv DIR NEWDIR&lt;BR /&gt;&lt;BR /&gt;Does that work?&lt;BR /&gt;&lt;BR /&gt;No - what happens when you do a:&lt;BR /&gt;&lt;BR /&gt;fuser -cu /YOURDIR&lt;BR /&gt;&lt;BR /&gt;If yes, try ftp'ing to the server using a ftp client like WSFTP - as root - then try to delete the directory from within ftp.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 26 Feb 2004 17:00:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203689#M748651</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-02-26T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203690#M748652</link>
      <description>Hi Tommy,&lt;BR /&gt;&lt;BR /&gt;If you&lt;BR /&gt;rm -i /dir_name&lt;BR /&gt;does it respond with anything at all - even an invisible filename?&lt;BR /&gt;If so - reply "y" to remove it.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 26 Feb 2004 17:07:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203690#M748652</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-02-26T17:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203691#M748653</link>
      <description>Geoff,&lt;BR /&gt;  I can mv the dir, but still cannot delete it after moving it. When running "fuser -cu &lt;DIR&gt;", it returns:&lt;BR /&gt;fuser: could not find file system mounted at &lt;DIR&gt;.&lt;BR /&gt;Also tried through an ftp client and it complained about the directory not being empty&lt;BR /&gt;&lt;BR /&gt;When trying to mv &lt;DIR&gt; to a differant filesystem, it would return the following:&lt;BR /&gt;&lt;BR /&gt;rm: directory &lt;DIR&gt; not removed.  Directory not empty&lt;BR /&gt;mv: &lt;DIR&gt;: Cannot unlink&lt;BR /&gt;&lt;BR /&gt;Any ideas on the "Cannot unlink"&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;&lt;/DIR&gt;&lt;/DIR&gt;&lt;/DIR&gt;&lt;/DIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 26 Feb 2004 17:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203691#M748653</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-26T17:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203692#M748654</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Meant rm -i * inside that dir...&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 26 Feb 2004 17:09:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203692#M748654</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-02-26T17:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203693#M748655</link>
      <description>Jeff,&lt;BR /&gt;  When running rm -i inside the dir it returns the following:&lt;BR /&gt;No match&lt;BR /&gt;&lt;BR /&gt;What do you think about the "Cannot Unlink" error when moving the dir to another filesystem?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 26 Feb 2004 17:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203693#M748655</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-26T17:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203694#M748656</link>
      <description>Found this on google:&lt;BR /&gt;&lt;BR /&gt;"I have seen this before.  It happens when a directory has an extra hard&lt;BR /&gt;link.  This isn't supposed to happen.  If you do "ll -d" on that&lt;BR /&gt;directory, does it show 3 links?  If so, then somewhere on the system,&lt;BR /&gt;there is (if fsck passes) another directory name that is the same&lt;BR /&gt;directory.  Do "ll -ia" on the directory.  This will tell you the inode&lt;BR /&gt;numbers of the directory and what it thinks is its parent.  Then, you&lt;BR /&gt;can do something like "find / -inum [inodenum] -print" (where [inodenum]&lt;BR /&gt;is the inode number of "."  from above) to discover where the two links&lt;BR /&gt;are.  Now, do "ll -id" on both parent directories to see which one does&lt;BR /&gt;NOT match the inode number of ".."  in the bad directory.  Do an&lt;BR /&gt;"unlink" on the bad directory where the inode number of ".."  doesn't&lt;BR /&gt;match the inode number of its parent.  Then you should be able to&lt;BR /&gt;"rmdir" the other one."&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 26 Feb 2004 17:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203694#M748656</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-02-26T17:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203695#M748657</link>
      <description>Geoff, &lt;BR /&gt;  Still no luck, when I do an "ll -d &lt;DIR&gt;"&lt;BR /&gt;drwxrwxrwx   2 root       sys         114688 Jan 25 23:28 &lt;DIR&gt;&lt;BR /&gt;&lt;BR /&gt;When I do an "ll -ia &lt;DIR&gt;", it returns:&lt;BR /&gt;total 0&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/DIR&gt;&lt;/DIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 26 Feb 2004 17:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203695#M748657</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-26T17:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203696#M748658</link>
      <description>Tommy, - mv it back to the old dir name - then rerun the ll -d&lt;BR /&gt;&lt;BR /&gt;Though I'm pretty sure you will get the same results....&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2004 17:45:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203696#M748658</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-02-26T17:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203697#M748659</link>
      <description>BTW - did you fsck the filesystem this DIR is on?  you may have a corrupt inode....&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 26 Feb 2004 17:52:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203697#M748659</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-02-26T17:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203698#M748660</link>
      <description>Hi Tommy,&lt;BR /&gt;&lt;BR /&gt;Try 'ncheck /dev/vgxx/lvolx &amp;gt; /tmp/&lt;DIR&gt;.out' and search for this directory name. Note the corresponding inode and see if there is any other inode. If so, then it is a mere link. You may have to do 'unlink &lt;DIR&gt;' to get rid of it. Atleast you will find out what's going on with this directory. It will show the inodes corresponding to each path.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/DIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 26 Feb 2004 18:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203698#M748660</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-26T18:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203699#M748661</link>
      <description>Could it be that the directory in question is a mountpoint? Perhaps NFS? Or is the filesystem containing the dir an NFS mounted filesystem? In that case, how does it look like on the NFS server?&lt;BR /&gt;&lt;BR /&gt;If it is not, I would suggest to run an fsck on the filesystem the dir is in. Something or someone really messed it up... But that would mean you have to unmount it first.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 02:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203699#M748661</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-02-27T02:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203700#M748662</link>
      <description>Well, I tried umounting the filesystem and running fsck on it.  This is what is returned&lt;BR /&gt;&lt;BR /&gt;fsck /dev/vgX/lvolX&lt;BR /&gt;&lt;BR /&gt;fsck: /etc/default/fs is used for determining the file system type&lt;BR /&gt;vxfs fsck: cannot stat -&lt;BR /&gt;vxfs fsck: file system had I/O error(s) on meta-data.&lt;BR /&gt;vxfs fsck: file system had I/O error(s) on user data.&lt;BR /&gt;log replay in progress&lt;BR /&gt;full file system check required, exiting ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now I can't mount the filesystem.  Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 11:39:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203700#M748662</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-27T11:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203701#M748663</link>
      <description>try fsck -o full&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 27 Feb 2004 11:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203701#M748663</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-02-27T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203702#M748664</link>
      <description>Tommy,&lt;BR /&gt;&lt;BR /&gt;# fsck -F vxfs -y -o full /dev/vgxx/lvolx&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Fri, 27 Feb 2004 11:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203702#M748664</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-02-27T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Empty Directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203703#M748665</link>
      <description>Tried the following:&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs -y -o full /dev/vgX/lvolX&lt;BR /&gt;&lt;BR /&gt;vxfs fsck: file system had I/O error(s) on meta-data.&lt;BR /&gt;vxfs fsck: file system had I/O error(s) on user data.&lt;BR /&gt;log replay in progress&lt;BR /&gt;pass0 - checking structural files&lt;BR /&gt;pass1 - checking inode sanity and blocks&lt;BR /&gt;vxfs fsck: fsck read failure bno = 89608, off = 0, len = 8192&lt;BR /&gt;file system check failure, aborting ...&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 11:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-empty-directory/m-p/3203703#M748665</guid>
      <dc:creator>Tommy_6</dc:creator>
      <dc:date>2004-02-27T11:49:56Z</dc:date>
    </item>
  </channel>
</rss>

