On Sun, 07 Jan 2018 13:07:11 +0200 Angelo Moreschini wrote:

> Strangely I had several difficult to try autofs ..

This is not as simple as /etc/fstab.

> Now I that I went more in depth,I can understand that autofs is made mainly
> to be used in a net environment  (NFS - file systems used in networks).

Yes, but not only.

> The purpose because I wont use autofs is different.. :

Again, I'm almost sure you do not need it.

> I wont only to mount an USB Hard Disk - permanently connected to
> computer <in order to the back up of the data>.

> The case  that I am interested is not so much considered in current
> "literature" <it is not the default use of autosf.> and so the information
> that I collected couldn't be, perhaps, appropriate.. ...

> I found only an article that consider explicitly the my  case...:

> *Automatically mount USB external drive with autofs
> -https://linuxconfig.org/automatically-mount-usb-external-drive-with-autofs

> This article suggest to use the file "node" in the directory /dev as name
> for mounting the partitions...
> ....This is another/different way to cope the problem...

> If you are interested, give a look to this article, ...

I read it already.

> perhaps what I did til now (mounting directories instead i file node
> in /dev directory) could be not the right procedure...

You mounted (in /etc/fstab) using UUIDs, and that is a good practise.

If you really want to test autofs try the following:

Add in /etc/auto.master:

-------------------------------- cut here --------------------------
/srv/   /etc/auto.ext-usb --timeout=10,defaults
-------------------------------- cut here --------------------------

And create /etc/auto.ext-usb as:

-------------------------------- cut here --------------------------
BKx_data-personal   -fstype=ntfs   :/dev/disk/by-uuid/376214F24CC07CE0
-------------------------------- cut here --------------------------

Then restart autofs.service and check that you see your partition
under /srv/BKx_data-personal/

I reference the partition by its UUID, knowning that the system
creates automatically the /dev/disk/by-uuid/xxx entries.

autofs wants a :/dev/... as location.
 
I don't think the options ,user,exec,uid=1000 are needed.

-- 
francis
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to