On Sat, 6 Jan 2018 12:30:33 +0200 Angelo Moreschini mrangelo.fedora@gmail.com wrote:
I have problem to configure autofs, in order to use the partitions that I made on my USB HD - for backing up the data of the computer.
*(I am thinking that, perhaps, the names to indicate the "mounting point" and the "automounter map" are not the same that are used in sftab file <for the fix mounting>).*
I found an article: (Automatically mount USB external drive with autofs - https://linuxconfig.org/automatically-mount-usb-external-drive-with-autofs ) There the problem is seriously explained ... (differently than in other articles there is explicitly considerate the mounting of an *USB HD*). And there is suggested to use "udev" to create a "USB device base name permanent" for the device... (and this look to me to be advisable).
I haven't done this, but from the article it seems that you have either an entry in fstab and use mount -a to mount the drive after plugging it in, or you follow the udev - autofs route without an entry in fstab.
But following this procedure the complexity of the problem is growing exponentially (I need also install udev ?).
I think udev is part of the base fedora system, so you will already have it installed, as part of package systemd-udev.
The recipe in the article doesn't seem that bad. Basically three steps: identify and specify the drive, let udev know about the drive, set up autofs to mount the drive.