# Disk Usage (duc)

Disk Usage (duc) is a self-hosted plugins app. An Unraid plugin that packages duc to index shares and disks on a schedule, then browse disk usage instantly from the webGUI without rescanning disks every time. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/7131/disk-usage-duc

## Description

An Unraid plugin that packages duc to index shares and disks on a schedule, then browse disk usage instantly from the webGUI without rescanning disks every time. duc stores the results in a database, so browsing is instant and the disks are not rescanned until the next index run. Browse from the webGUI under Settings, User Utilities, Disk Usage, with a sunburst chart and a sorted folder listing showing size on disk, apparent size or file count. Index several roots at once, for example /mnt/user for usage per share and /mnt/disk1 or /mnt/cache for usage per disk. The full duc command line is included too, including the duc ui terminal browser. Note: an index run reads directory metadata on every disk it covers, so spun-down disks will spin up during a run.

## Platform availability

Available on 1 of 9 platforms: Unraid.

## Health score

43/100 (Fair), based on 3 of 4 factors.
- Maintained: 72 (last commit 16 days ago)
- Popular: 10 (2 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)

## Links

- Unraid: https://ca.unraid.net/apps/disk-usage-duc-1d1x2f21ht76fe?q=Disk%20Usage%20%28duc%29
- GitHub: https://github.com/jamesfreeman959/unraid-duc
- Official website: https://duc.zevv.nl

## Common questions

### Can I index multiple paths such as all shares and individual disks at once?

Yes. You can index several roots, for example /mnt/user for usage per share and /mnt/disk1 or /mnt/cache for usage per disk. Paths are stored comma separated, so paths containing commas are not supported.

### Will a scheduled index spin up disks that have been spun down?

Yes. An index run reads directory metadata on every disk it covers, so spun-down disks will spin up during the run. The docs suggest scheduling the index for a time when that is acceptable.

### Where is the duc database stored, and should it be placed on the Unraid flash drive?

By default it is stored at /mnt/user/appdata/duc/duc.db. The docs advise keeping it off the USB flash drive because it is rewritten on every run. If the database folder is unavailable, such as when the array is stopped, the run is skipped.

### Is the old index still available while a new index is being built?

Yes. The previous index stays browsable while a new one is built. The new database only replaces the old one once indexing has finished.

### Can I use the terminal duc browser with the plugin database?

Yes. The full duc CLI is included, including the ncurses browser. You can run duc ui against the plugin database, for example to browse /mnt/user.

---
Source: Our Local Host (https://ourlocalhost.com/app/7131/disk-usage-duc), the self-hosted and open-source app directory.
