On Du, 27 iun 21, 13:30:06, to...@tuxteam.de wrote: > On Sun, Jun 27, 2021 at 11:10:21AM +0100, mick crane wrote: > > > and mount it on a directory at boot ? > > Wait: this is orthogonal to the above. Usually, whatever you want > mounted at boot is in /etc/fstab (or, perhaps, in some systemd > unit files, although I'm more-than-hazy on this one). But this > wouldn't make much sense with removable media, I guess.
While systemd does have .mount units, according to systemd.mount(5) the preferred approach is to use /etc/fstab. For a removable drive make sure to add 'nofail' to the entry, otherwise the system won't boot if the drive is not present. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
signature.asc
Description: PGP signature