Setting up SMB shares on Mageia has always been a bit fraught. The function in the Mageia Control Centre (MCC), does not work, and has not worked through the history of Mageia, and through Mandriva and Mandrake, too, but is amenable to being manually setup, which I've done many times. This time, however, I seem to have run into a snag, as follows
There needs to be an entry in the /etc/hosts file, which I have done. It works. I can ping the Synology unit either by it's IP address,192.168.1.164, or it's name synserver.
The /etc/fstab file needs to be amended to include the mounting commandline, as follows (I've included the lines for the other Drob units for comparison
- Code: Select all
//drobo-a/Public /mnt/Public cifs uid=rod,credentials=/etc/samba/auth.drobo-a.droboman,gid=rod,uid=rod 0 0
//drobo-b/Public /mnt/Public2 cifs credentials=/etc/samba/auth.drobo-b.droboman,gid=rod,uid=rod 0 0
//drobo5n2/Public /mnt/Public3 cifs credentials=/etc/samba/auth.drobo5n2.droboman,gid=rod,uid=rod 0 0
//synserver/Public /mnt/Public4 cifs credentials=/etc/samba/auth.synserver.rodmin,gid=rod,uid=rod 0 0
The credentials file , in /etc/sambe needa an appropriate entry, which is simply a file with username and password. This was done by copying one of the existing files and amending it to suit. Finally, a mount point needs to be created in /mnt, to complement the other entries, as
- Code: Select all
drwxr-xr-x 2 rod rod 0 Jun 1 18:44 Public/
drwxr-xr-x 2 rod rod 0 Jun 1 18:44 Public2/
drwxr-xr-x 2 rod rod 0 Jun 1 18:44 Public3/
drwxr-xr-x 2 root root 4096 May 23 14:15 Public4/
drwxr-xr-x 2 root root 4096 Nov 27 2016 Transporter/
This was an existing entry, for a unit no longer fitted, and simply re-named to the new unit
This should complet the entry to mount the unit. However, on the command mount -av , the mount failed with the following dialogue
- Code: Select all
[root@down etc]# mount -av
/ : ignored
/home : already mounted
/home2 : already mounted
/mnt/Public : already mounted
/mnt/Public2 : already mounted
/mnt/Public3 : already mounted
mount.cifs kernel mount options: ip=192.168.1.164,unc=\\synserver\Public,uid=1000,gid=1000,user=rodmin,pass=********
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount: none is already mounted or /proc busy
swap : ignored
This has me puzzled. I've had errors before due to an odd typo, but "Operation not supported" is a new one to me. Any ideas, anyone? The Mageia install is somewhat of a necessity, in order to populate the new server with files.