[GH-ISSUE #208] How to exclude mount path for separate partitions #96

Closed
opened 2026-06-08 11:25:39 +03:00 by zhus · 2 comments
Owner

Originally created by @lcheylus on GitHub (Jan 14, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/208

On my BSD system, I have separate partitions for /usr :

  • /usr
  • /usr/local
  • /usr/X11R6

I would like to use dust to see my disk utilization for /usr excluding other partitions under /usr path.
I used -X option but it does not work : ./dust -r /usr -X local -X X11R6 => /usr/local and /usr/X11R6 are not excluded from disk size usage.

Originally created by @lcheylus on GitHub (Jan 14, 2022). Original GitHub issue: https://github.com/bootandy/dust/issues/208 On my BSD system, I have separate partitions for `/usr` : - `/usr` - `/usr/local` - `/usr/X11R6` I would like to use `dust` to see my disk utilization for `/usr` excluding other partitions under `/usr` path. I used `-X` option but it does not work : `./dust -r /usr -X local -X X11R6` => `/usr/local` and `/usr/X11R6` are not excluded from disk size usage.
zhus closed this issue 2026-06-08 11:25:39 +03:00
Author
Owner

@bootandy commented on GitHub (Feb 16, 2022):

-X ignores a directory. Try -x to limit to a single filesystem. It does close to what you ask but not quite the same thing.

Try running dust -x /usr and see if that works for you.

<!-- gh-comment-id:1040919241 --> @bootandy commented on GitHub (Feb 16, 2022): -X ignores a directory. Try -x to limit to a single filesystem. It does close to what you ask but not quite the same thing. Try running `dust -x /usr` and see if that works for you.
Author
Owner

@lcheylus commented on GitHub (Feb 16, 2022):

Thanks, it works as attended with -x flag to limit to a single filesystem.

<!-- gh-comment-id:1041301837 --> @lcheylus commented on GitHub (Feb 16, 2022): Thanks, it works as attended with `-x` flag to limit to a single filesystem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#96