just upgraded from Mageia 4 to 5 two computers (an i586 old netbook and a x86_64 laptop). Since Mageia 2 I was using Autofs to mount partitions in my NAS system as described here. Once I've upgraded to Mageia 5 I can't see NAS partitions mounted in my computers.
I have the procedure saved and repeat it every time I upgrade, it's as follows and its taken from here (in Spanish).
Install Autofs
- Code: Select all
# urpmi autofs
Create directory where I want my mount, in my case "/colenas" and give it permisions.
- Code: Select all
[root@localhost colegota]# mkdir /colenas
[root@localhost colegota]# chmod a+r+w+x /colenas
Edit /etc/hosts (192.168.1.34 it's my NAS's IP)
- Code: Select all
[colegota@alforjas ~]$ cat /etc/hosts
# generated by drakconnect
127.0.0.1 alforjas
127.0.0.1 localhost
192.168.1.34 colenas nas
Edit auto.master pointing to file auto.nas
- Code: Select all
[root@localhost colegota]# cat /etc/autofs/auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
#___ colenas desmontaje a 60 segundos ___
/colenas /etc/autofs/auto.nas --timeout=60
Note: did read this post talking about a bug to use /net but I never used it, while I've tried to change the line for /net /etc/autofs/auto.net but did not work.
viewtopic.php?f=15&t=8836&hilit=autofs
Edit auto.nas
- Code: Select all
[root@localhost colegota]# cat /etc/autofs/auto.nas
- Code: Select all
labo -fstype=cifs,users,guest,iocharset=utf8,file_mode=0666,dir_mode=0777 ://192.168.1.34/Public/labo
public -fstype=cifs,users,guest,iocharset=utf8,file_mode=0666,dir_mode=0777 ://192.168.1.34/public
mula -fstype=cifs,users,guest,iocharset=utf8,file_mode=0666,dir_mode=0777 ://192.168.1.34/Download
Restart service
- Code: Select all
systemctl restart autofs.service
I suppose something has changed in Mageia 5 respect previous versions but don't know what.
Anyone can help me?
Regards!
Colegota