You are not logged in.

#1 2024-05-21 13:54:12

Velent
Member
Registered: 2024-05-21
Posts: 5

[SOLVED] How to make Dolphin mount the disk in a specific directory?

I need to make Dolphin to mount a specific disk in a home directory.
Dolphin uses udisks to mount disks, in https://github.com/storaged-project/udi … sions/1119 said that udisks should respect mountpoint and options from /etc/fstab, however it seems that it doesn't.
I created a fstab line:
PARTUUID=*partuiid* /home/*user/directory* exfat relatime,umask=007,errors=remount-ro,noauto,user=1000,gid=1000,uid=1000 0 2
And I ran systemctl daemon-reload and systemctl restart udisks2 to restart udisks. Manual mount works fine, but udisks still mounts disk in a /run/media directory.

Last edited by Velent (2024-05-21 17:47:05)

Offline

#2 2024-05-21 15:12:50

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

Is "PARTUUID" actually supported for some exfat partition?

lsblk -o NAME,FSTYPE,LABEL,UUID,PARTUUID

and post the actual /etc/fstab (you can hide your username, the UUIDs are traceable, ie. if you post them in various places they connect those posts, but they don't reveal anything and exist for collision prevention)

Offline

#3 2024-05-21 15:53:43

Velent
Member
Registered: 2024-05-21
Posts: 5

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

seth wrote:

Is "PARTUUID" actually supported for some exfat partition?

lsblk -o NAME,FSTYPE,LABEL,UUID,PARTUUID

and post the actual /etc/fstab (you can hide your username, the UUIDs are traceable, ie. if you post them in various places they connect those posts, but they don't reveal anything and exist for collision prevention)

Seems like it is supported.

Yeah, I know..

fstab

PARTUUID=24a5494c-8f18-594a-85fd-dc0878d37d28 /home/user/disk exfat relatime,umask=007,errors=remount-ro,noauto,user=1000,gid=1000,uid=1000 0 2

lsblk, the disk of interest

NAME          FSTYPE      LABEL  UUID                                   PARTUUID
sdc                                                                     
└─sdc1        exfat              E5F6-6052                              24a5494c-8f18-594a-85fd-dc0878d37d28

Offline

#4 2024-05-21 15:57:29

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

Try to use the UUID (though the PARTUUID looks legit and not an MBR dummy)

Offline

#5 2024-05-21 16:08:01

Velent
Member
Registered: 2024-05-21
Posts: 5

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

I tried. No matter if its uuid / partuuid / /dev/sdc1 - same result

Offline

#6 2024-05-21 16:26:39

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

UUID=E5F6-6052 /home/user/disk gnarf relatime,umask=007,errors=remount-ro,noauto,user=1000,gid=1000,uid=1000 0 2
sudo systemctl restart udisks2
udisksctl mount -b /dev/sdc1

This should™ get you an error message because "gnarf" is not a filesystem and thus show whether fstab is parsed for this.

Offline

#7 2024-05-21 16:38:20

Velent
Member
Registered: 2024-05-21
Posts: 5

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

fstab is not actually parsed by udisks for some reason..
udisksctl mount -b /dev/sdc1

Mounted /dev/sdc1 at /run/media/root/E5F6-6052

mount /dev/sdc1

mount: /home/user/disk: unknown filesystem type 'gnarf'.
       dmesg(1) may have more information after failed mount system call. 

Offline

#8 2024-05-21 17:07:55

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

It works here - both as desired and I get an error for the "gnarf"  test.

Do you have an entry for the device in /etc/udisks2/mount_options.conf ?
Please post your entire fstab (you can pseudonymize whatever you want, ie. replace strings w/ consistent other strings so aaa becomes bbb everywhere, but keep evyrthing, incl. comments)
Try the behavior w/ a regular VFAT drive (no idea whether that could make any difference whatsoever, but hey…) and ultimately try to reboot to get rid of stale caches (which is even less likely than the exfat relevance… "but hey")

Offline

#9 2024-05-21 17:46:27

Velent
Member
Registered: 2024-05-21
Posts: 5

Re: [SOLVED] How to make Dolphin mount the disk in a specific directory?

Reboot helped, haha. Thank you

Offline

Board footer

Powered by FluxBB