[solved] assigned usb storage not recognized by MEGA Sync

Hello Qubes Community.
What is the issue?
I have an external HDD USB storage. Sometimes i want to attach it to the Notebook (T470), start my MEGA Cube (AppVM) (based: Debian 12 minimal - with MEGA Sync App). Steps i perform

  1. Starting the Cube AppVM MEGA
  2. assign USB Storage (exernal HDD) to the cube
  3. Start MEGA Sync App

Issue?
MEGA Sync does not recognize the (standard) path to the Backup-Folder on the external hdd.

How can i solve it?
I have to start the file manager of the cube. Browse to the external drive (just to open / show the external drive content.
Immediately MEGA Sync start to “see” the attached drive and starts the synchronization.
Before i browse and “open” the external HDD by file manager - MEGA Sync is not able to “see” the standard folder - also when i try to search for new colations to sync, it will not show the external drive (only when i opened it once with the file manager).

My Cube
Based on Debian 12 minimal installation. Installed paswordless sudo in addition (and the MEGA Sync app).
Did i fogot anything else? This is a strange behavior. USB Attached and assigned - but will only be “seen” by MEGA Sync when i first time opened it with the File Browser /Manager of the cube.
Drive letter and path stays the same.
I did the same approach with my Debian 12 installation before (i was an D12 user before i gave qubes the chance). I had only to attach the external USB Drive, start the MEGA app and it recognize immediately the drive and folder.
In case of cubes VM - it recognizes it only when i opened it with file browser one time after the connection / assignment.

Any proposal to solve this (maybe this is a bug?).

In the app qube open Settings Manager app → File Manager Settings → Advanced tab → in the “Volume Management” block click on Configure → enable Mount removable when hot-plugged/inserted.

thank you - this solution works for “normal” Debian installation. Debian minimal has no such settings manager available.
But you pointed me to the root-cause of the issue.

Seems i have to create so script for automount of usb drives. Have no knowledge how to do it - but i can research and find the solution because the root cause is known.

Seems i have to go in the direction like in this discussion: How do I automount usb drives in Linux (Debian)? - Unix & Linux Stack Exchange

Thank you

If you have thunar and thunar-volman packages installed then it’ll work for you in minimal templates as well.
In the Thunar menu open Edit → Preferences → Advanced tab → in the “Volume Management” block click on Configure → enable Mount removable when hot-plugged/inserted.

If you don’t have/want Thunar installed then you can use udev rules.

perfekt - 2 solutions available (short and easy, and advanced)
Thank you