I suggest you look into mounting encrypted drives via /etc/fstab with your favourite web search engine.
Note that /sda1 is not a mount mount point it's a device node. A mount point is a just an arbitrary directory. Which physical device gets /dev/sda etc. depends on the order they are detected and/or plugged in.
For non-encrypted drives you'd mount via fstab using something other than device node to identify the partition (LABEL, UUID, PARTUUID, /dev/disc/by-*/* for example).
[shameless self promotion]
Using fstab A Beginner's Guide though it doesn't cover drive encryption.
[/shameless self promotion]
Note that /sda1 is not a mount mount point it's a device node. A mount point is a just an arbitrary directory. Which physical device gets /dev/sda etc. depends on the order they are detected and/or plugged in.
For non-encrypted drives you'd mount via fstab using something other than device node to identify the partition (LABEL, UUID, PARTUUID, /dev/disc/by-*/* for example).
[shameless self promotion]
Using fstab A Beginner's Guide though it doesn't cover drive encryption.
[/shameless self promotion]
Statistics: Posted by thagrol — Sun Aug 10, 2025 5:29 pm