Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-08-28 08:06:44

bitrat
Member
Registered: 2023-07-19
Posts: 20

How does Thunar mount drives? Can I replicate in terminal?

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

#2 2023-08-28 09:26:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,093

Re: How does Thunar mount drives? Can I replicate in terminal?

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

#3 2023-08-28 10:50:06

bitrat
Member
Registered: 2023-07-19
Posts: 20

Re: How does Thunar mount drives? Can I replicate in terminal?

ToZ wrote:

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

Board footer

Powered by FluxBB