symlink persist follow-up

Keith keithw at caramail.com
Fri Sep 22 22:45:42 UTC 2023


On 9/22/23 9:14 AM, Grizzly via ubuntu-users wrote:
[snip]

> 
> the 22.04 drive is set to auto mount at system start & show on launcher

I don't believe the 22.04 partition is being automounted. The dock 
(launcher) is configured to show user-visible volumes including 
non-mounted ones. When you click on the 22.04 drive icon on the dock, 
the partition is mounted and suddenly the symlink isn't broken and you 
can browse the images in the 22.04 Pictures directory.

> 
> is there a step I missed or a way to get that drive "seen" at boot so the link
> will work

I saw in a previous post you stated that you have 3 OS's on the 
following partitions:

22.04=sda1
Win7=sda2
23.10=sda3

Is this still correct? If so, then boot into 23.10 and run the following 
in a terminal:

$ udisksctl info -b /dev/sda1 |egrep Hint"(Auto|System)"
HintAuto:                   false
HintSystem:                 true

Did you get the the output above?  If not, post what you got.

If you did get the above output, then create a udev rules file called 
10-automount-sda1.rules (for example) and place it in /etc/udev/rules.d/ 
. In the file put this following line:

KERNEL=="sda1", ENV{UDISKS_AUTO}="1"

NOTE: *This modification is only applicable for 23.10. Do not make this 
change while booted into 22.04.*

Reboot (into 23.10) and upon login to gnome, the 22.04 partition should 
be automounted without needing to click the 22.04 drive icon on the dock.

I use this method to automount an exfat partition that's on my main 
system drive along with 22.04.3 Ubuntu and Win10 to share data between 
the OS's.

Volumes with the HintSystem=true will by default have HintAuto=false and 
thus not automountable by gnome (udisks) unless you override the 
HintAuto property either via /etc/fstab, or some automounter daemon, or 
via a udev rule like the one above.

-- 
Keith





More information about the ubuntu-users mailing list