Quantcast
Channel: Shrink/reset directory size? - Server Fault
Viewing all articles
Browse latest Browse all 4

Answer by BMDan for Shrink/reset directory size?

$
0
0

See also rm on a directory with millions of files (the original question is not directly related, but we discuss this problem there nonetheless).

As far as I'm aware, at least on ext2/3, no, there's no (online) way to shrink them short of delete + recreate. Unmounted, several sources suggest e2fsck -D might work, though I can claim no personal experience with that option.

Some references for further reading:


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>