udisksctl
Interact with udisksd to query and manipulate storage devices. tldr-pages
On Linux
Linux
Show high-level information about disk drives and block devices
udisksctl statusIdentifyShow detailed information about a device
udisksctl info --block-device /dev/sdXIdentifyShow detailed information about a device partition
udisksctl info --block-device /dev/sdXNIdentifyMount a device partition and print the mount point
udisksctl mount --block-device /dev/sdXNIdentifyUnmount a device partition
udisksctl unmount --block-device /dev/sdXNIdentifyPower off a device to safely remove it
udisksctl power-off --block-device /dev/sdXIdentifyMonitor the daemon for events
udisksctl monitorIdentify