Drive Setup To /mnt?

Hey,

I’ve recently switched over to Rocky from Mint. I have to HDDs in my PC and they not auto mounted and are currently living in /run/media. Is it possible to have them auto mount and have them live inside of /mnt instead? I have no idea where to look to start setting this up?

Thanks

An example, entry in /etc/fstab :

UUID=29379e5f-c986-4f7a-bfd9-9f9d3e8c500e  /mnt/sysC7  ext4  defaults,noauto,nofail,x-systemd.automount,x-systemd.idle-timeout=300  1 2

That sets up SystemD automounter to manage that filesystem to mount point.
The “auto mount” here means that mount is done only when I do access the /mnt/sysC7, and when I have not used that filesystem for a while (300 seconds), it automatically umounts.

You can see the UUID of each filesystem with blkid and lsblk -f
The latter shows also the type of the filesystem. (My example has ext4.)

If I’d want the mount to always happen on boot and last to shutdown, then I’d have:

UUID=29379e5f-c986-4f7a-bfd9-9f9d3e8c500e  /mnt/sysC7  ext4  defaults  1 2

Two HDDs, but who knows what partitions, logical volumes, filesystems and so on.
Maybe run this command fist:
lsblk -o NAME,MAJ:MIN,TYPE,SIZE,LABEL,FSTYPE,MOUNTPOINT