It is useful to have convenient access to hard drive partitions via the sidebar in Files and file pickers.
GNOME/GTK currently does a good job in keeping the sidebar clean by limiting the partitions/volumes that are displayed in the sidebar. It tends to show eject-able/external drives in the sidebar while relegating internal volumes to the “Other Locations” view.
It is currently possible to bookmark the mounted directory of a partition as one would bookmark a regular directory. However this method is not very usable as the bookmark is no longer useful once the volume is unmounted, for example after a reboot. Also, the bookmarked mount point directory name shown in the sidebar is usually not user-friendly as it is usually named after the UUID of the volume.
Wouldn’t it be beneficial to allow the user the choose partitions/volumes to be pinned/added as bookmarks to the sidebar. Basically the user could by allowed to pin a volume to the sidebar via a right-click/context menu for the volumes that are currently shown in the “Other Locations” view. Once pinned/bookmarked, they would behave exactly like the ones that are shown in the sidebar by default. Activating a pinned volume would automatically mount the volume if it’s not currently mounted.
I have a few patches that I developed for the current GTK(4) master branch to demonstrate the UI and the implementation details: https://gitlab.gnome.org/sachindaluja/gtk/-/tree/places_sidebar_bookmark_volumes
I am currently adding the pinned volumes to the existing bookmarks file by using an artificial URI scheme: “volume:///” followed by the UUID of the volume. We may very well use a dedicated bookmarks file exclusively for volumes just like we have one for bookmarked network locations.
Screenshots of the file-picker dialog built from my modified GTK code are attached.