zero size directories

zero size directories

Post by Lars Gullik Bj?nn » Thu, 16 Sep 1999 04:00:00

After some testing with autofs I have some zero size directories that
I don't want. rm, rmdir and the like are unable to delete these, any

drwxr-xr-x   2 root     root            0 Sep 14 04:10 larsbj



1. Deleting zero-sized directory?


I have a directory with zero size. And I cannot delete it, even as

When I do "ls -ail" I got this:

1 drwxrwxrwx 1 root root    0 Dec  8 09:35 cdrom/
1 dr-xr-xr-x 1 root root 2048 Feb  1  2000 cdrom2/

As you can see, a proper directory (cdrom2) has size 2018 and proper
permissions. But "cdrom" refuses to get proper permissions and proper
size. Then, it refuses to be deleted.

Yes, I tried suing as a root, chmoding it or touching it. But nothing

And I want it removed (or fixed) so I can point my CD to a proper

Any idea?

[MaDuiXa PoWeR]
                  |\                 Linux User # 89976
=====Sinner==== >=--[]>- a Mach 2.5!!  Running on Mandrake 7.2
__________________|/                     Linux Machine # 38068

2. NYC LOCAL: CANCEL NOTICE: Tuesday 4 December 2001 LXNY Meeting is Cancelled

3. Floppy reports size as zero sectors, zero tracks, zero bytes

4. New Orleans LUG meeting

5. cmdline sorting directory by size|size reverse

6. Printing Garbage

7. tftp server zero-ed files sizes ?

8. Intranet pop-server

9. "partition is ZERO sized" when trying to install off IDE?

10. remove files of size zero

11. Q: Where is core-size limit be set to zero

12. Zero-ing a file size and keep timestamp & inode

13. named pipe (fifo) file size always zero