I did
#cat /etc/systemd/system/mnt-pdupre.automount
[Unit]
Description=%n
[Automount]
Where=/mnt/pdupre
[Install]
WantedBy=multi-user.target
EOF
#cat /etc/systemd/system/mnt-pdupre.mount
[Unit]
Description=%n
[Mount]
What=LABEL=pdupre
Where=/mnt/pdupre
EOF
systemctl daemon-reload
systemctl enable mnt-pdupre.automount
systemctl start mnt-pdupre.automount
systemctl status mnt-pdupre.automount
● mnt-pdupre.automount
Loaded: loaded (/etc/systemd/system/mnt-pdupre.automount; enabled; preset:
disabled)
Active: active (waiting) since Mon 2026-06-01 09:21:16 CEST; 4min 46s ago
Invocation: 0bfabed1383a4b9686763906fa424833
Triggers: ● mnt-pdupre.mount
Where: /mnt/pdupre
Jun 01 09:21:16 Teucidide systemd[1]: Set up automount mnt-pdupre.automount.
But the behavior is still the same
Only the fat32 files are mounted
In my opinion.
The fat32 are mounted because there is not rights associated with the directory
which is not the case of the ext4 files.
How the system knows who connects the USB SSD?
> Sent: Monday, June 01, 2026 at 6:51 AM
> From: "Francis Montagnac via users" <[email protected]>
> To: [email protected]
> Cc: "Francis Montagnac" <[email protected]>
> Subject: Re: "auto mount"
>
> On Sun, 31 May 2026 21:36:36 +0200
> Patrick Dupre via users <[email protected]> wrote:
>
> > I made
> > touch /etc/systemd/system/mnt-pdupre.automount
> > touch /etc/systemd/system/mnt-pdupre.mount
> > and
> > systemctl daemon-reload
>
> > but it is still the same behavior.
>
> > Do I need to create empty real files?
>
> No.
>
> > Or I need to fill the files properly?
>
> Yes, I showed the needed content in my original post.
>
> Proceed as follow being root:
>
> Create the .mount and .automount files:
>
> cat > /etc/systemd/system/mnt-pdupre.mount <<EOF
> [Unit]
> Description=%n
>
> [Mount]
> What=LABEL=pdupre
> Where=/mnt/pdupre
> EOF
>
> cat > /etc/systemd/system/mnt-pdupre.automount <<EOF
> [Unit]
> Description=%n
>
> [Automount]
> Where=/mnt/pdupre
>
> [Install]
> WantedBy=multi-user.target
> EOF
>
> Then execute:
>
> systemctl daemon-reload
> systemctl enable mnt-pdupre.autmount
> systemctl start mnt-pdupre.autmount
>
> ls -l /mnt/pdupre
> findmnt /mnt/pdupre
>
> > However, if I need to specify /dev/sde8, it is not going to work,
> > because it can be /dev/sdx8 depending on what is already mounted.
>
> Right, it will work because the What= line specifies the label of this
> filesystem, not the current device path.
>
> --
> francis
> --
> _______________________________________________
> users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/[email protected]
> Do not reply to spam, report it:
> https://forge.fedoraproject.org/infra/tickets/issues/new
>
--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://forge.fedoraproject.org/infra/tickets/issues/new