I have a directory on a file system that I can't delete. I have tried rm -rf My_dirbut the directory persists. So I ran stat My_dirand it returned the following:-bash-3.2$ stat My_dirFile: `My_dir'Size: 0             Blocks: 0          IO Block: 4096   directoryDevice: 801h/2049d  Inode: 191961      Links: 4294967278Access: (0777/drwxrwxrwx)  Uid: (   48/  apache)   Gid: (  100/   users)Access: 2017-02-25 21:49:02.000000000 +0000Modify: 2017-02-25 22:19:45.000000000 +0000Change: 2017-02-26 05:03:46.000000000 +0000As you can see the directory has an interesting amount of Links so I assume it may be corrupted. So I got to running fsck as I hoped it would be straight forward for it to discover and fix the issue, however, it returned-bash-3.2$ /sbin/fsck /dev/sda1fsck 1.39 (29-May-2006)Refusing to operate on read-write mounted device /dev/sda1.then trying to umount /dev/sda1returnedumount: /my_device: device is busyIm wondering if I can get around the whole fsck business and force a delete in some other way?(I'm a bit of a novice in this world BTW)EDIT#1I'd been using sudo to push commands through already. But the problem persisted.As an update. After a restart of the drive with the corrupted folder, the problem directory appeared to return the following after calling stat:File: `My_dir'Size: 4096          Blocks: 8          IO Block: 4096   directoryDevice: 801h/2049d  Inode: 191961      Links: 1Access: (0777/drwxrwxrwx)  Uid: (   48/  apache)   Gid: (  100/   users)Access: 2016-11-04 10:29:27.000000000 +0000Modify: 2016-11-04 10:30:06.000000000 +0000Change: 2016-11-04 10:30:06.000000000 +0000However, after executingls -l | lessTo try and escape any hidden chars, the problem returnedFile: `My_dir'Size: 0             Blocks: 0          IO Block: 4096   directoryDevice: 801h/2049d  Inode: 191961      Links: 4294967295Access: (0777/drwxrwxrwx)  Uid: (   48/  apache)   Gid: (  100/   users)Access: 2016-11-04 10:29:27.000000000 +0000Modify: 2017-02-26 10:29:15.000000000 +0000Change: 2017-02-26 10:30:36.000000000 +0000Notice the timestamps and how they differ as well... confused?
rm -rf directory with 0 size and blocks
linux;permissions;filesystems;fsck