[GH-ISSUE #346] Feature request: disk on all local disks #158

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

Originally created by @stepancheg on GitHub (Nov 15, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/346

There can be multiple local disks (or partitions of the disk like APFS volumes).

Would be convenient if dust had a flag like dust --all-local-disks to get output combined from all of them.

Currently the second best option is something like

mount | grep /dev/disk | grep apfs | awk '{ print $3 }' | sudo xargs dust -x
Originally created by @stepancheg on GitHub (Nov 15, 2023). Original GitHub issue: https://github.com/bootandy/dust/issues/346 There can be multiple local disks (or partitions of the disk like APFS volumes). Would be convenient if dust had a flag like `dust --all-local-disks` to get output combined from all of them. Currently the second best option is something like ``` mount | grep /dev/disk | grep apfs | awk '{ print $3 }' | sudo xargs dust -x ```
zhus closed this issue 2026-06-08 11:25:55 +03:00
Author
Owner

@bootandy commented on GitHub (Nov 16, 2023):

it's an interesting idea. I'm not sure how I would detect which file-systems should be included in 'all-local-disks' though.

<!-- gh-comment-id:1813454554 --> @bootandy commented on GitHub (Nov 16, 2023): it's an interesting idea. I'm not sure how I would detect which file-systems should be included in 'all-local-disks' though.
Author
Owner

@stepancheg commented on GitHub (Nov 16, 2023):

I'm not sure how it can be done cross-platform. Perhaps some per-OS logic can be implemented. For macOS it can be this.

For macOS I guess the algorithm is this:

  • run diskutil list to find all real disks (excluding images) and partitions on them
  • then mount to find the mount roots for these local disks

For Linux it might be more complicated because ecosystem is much larger.

<!-- gh-comment-id:1813467033 --> @stepancheg commented on GitHub (Nov 16, 2023): I'm not sure how it can be done cross-platform. Perhaps some per-OS logic can be implemented. For macOS it can be this. For macOS I guess the algorithm is this: * run `diskutil list` to find all real disks (excluding images) and partitions on them * then `mount` to find the mount roots for these local disks For Linux it might be more complicated because ecosystem is much larger.
Author
Owner

@bootandy commented on GitHub (Jan 10, 2024):

I'm going to close this I'm not sure how I can do this.

<!-- gh-comment-id:1883955715 --> @bootandy commented on GitHub (Jan 10, 2024): I'm going to close this I'm not sure how I can do this.
Author
Owner

@stepancheg commented on GitHub (Jan 10, 2024):

Not sure can be done universally, but for macos I have shown the command.

Anyway, thank you for the great tool!

<!-- gh-comment-id:1883960283 --> @stepancheg commented on GitHub (Jan 10, 2024): Not sure can be done universally, but for macos I have shown the command. Anyway, thank you for the great tool!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#158