You are not logged in.
Hi,
Thunar does a nice job of mounting my disks when I click on them in the file manager, but sometimes I'd like to accomplish the same thing from the command line. I'd also like to understand the settings a bit better.
I'm not that familiar with the mount command, and I'd like to use exactly the same settings as Thunar, whatever method is used.
Is there somewhere I can copy the mount commands used by Thunar? Or, probably better, trigger whatever underlying mechanism Thunar uses?
I don't want to experiment too much with disks I care about, but I've tried (without much success) to mount USB drives using info gleaned from calling mount without arguments. Thunar also creates and deletes mount points and adds bookmarks to its side panel for folders like ~/Desktop and it would be good to be able to do this from the command line as well.
So, any advice or info on the mechanism used by Thunar, or a good tutorial on mount applicable to Bookworm (Debian 12) would be much appreciated!
Cheers,
bitrat
Last edited by bitrat (2023-08-28 08:29:53)
Offline
Thunar uses gvfs/gio to mount devices. You can get more info on gio via:
man gio
But basically:
"gio mount -l" to list existing mounts
"gio mount DEVICE" to mount the device
"gio mount -u DEVICE" to unmount it again
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thunar uses gvfs/gio to mount devices. You can get more info on gio via:
man gio
But basically:
"gio mount -l" to list existing mounts
"gio mount DEVICE" to mount the device
"gio mount -u DEVICE" to unmount it again
Brilliant! Thank you. :-)
Offline
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 523.62 KiB (Peak: 529.52 KiB) ]