Hi Francis, I followed your procedure,
I can see the partitions by nautilus as is the standard, but still I cannot see them from the command line ..: ==== [angelo_dev@localhost ~]$ ls /srv/BKx_programming ls: cannot access /srv/BKx_programming: *No such file or directory* ==== (the output about the service is :) ----------- [angelo_dev@localhost ~]$ sudo systemctl status autofs [sudo] password for angelo_dev: ● autofs.service - Automounts filesystems on demand Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled) Active: active (running) since Sun 2018-01-07 17:36:34 IST; 16min ago Process: 1202 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS) Main PID: 1220 (automount) CGroup: /system.slice/autofs.service └─1220 /usr/sbin/automount --pid-file /run/autofs.pid ===== what to say ?? Perhaps the right procedure (in the case of an USB device) is really to use the node file in /dev directory how is wrote in the article ? We tried ... In every case thank you very much Angelo On Sun, Jan 7, 2018 at 1:44 PM, <francis.montag...@inria.fr> wrote: > > 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 >
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org