[CentOS] Mounting CIFS shares on C8

Fri Apr 3 17:04:21 UTC 2020
Patrick DERWAEL <patrick at derwael.be>

That was my initial setup before trying the abbreviations, but anyway:

[root at plexvm ~]# nano /etc/fstab
[root at plexvm ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Fri Apr  3 14:02:23 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/cl_plexvm-root /                       xfs     defaults
 0 0
UUID=f7c4e0e2-703e-4e61-8d7a-0aa34f836b02 /boot                   ext4
 defaults        1 2
/dev/mapper/cl_plexvm-swap swap                    swap    defaults
 0 0
//192.168.1.200/mp3     /home/plex/Musique      cifs
 username=plex,password=plex,domain=DERWAEL,ro,auto,vers=3.0
#//192.168.1.200/videos /home/plex/Vidéos       cifs
 user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
#//192.168.1.200/series /home/plex/Séries       cifs
 user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
[root at plexvm ~]# systemctl daemon-reload
[root at plexvm ~]# mount -a
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root at plexvm ~]#

Le ven. 3 avr. 2020 à 18:55, Chris Schanzle <chris.schanzle at nist.gov> a
écrit :

> On 4/3/20 12:48 PM, Patrick DERWAEL wrote:
> > User & pass are present
> > According to the man pages, workgroup is supported
> > I have changed it to domain, but that didn't change a thing
> >
> > [root at plexvm ~]# cat /etc/fstab
> >
> > #
> > # /etc/fstab
> > # Created by anaconda on Fri Apr  3 14:02:23 2020
> > #
> > # Accessible filesystems, by reference, are maintained under
> '/dev/disk/'.
> > # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more
> info.
> > #
> > # After editing this file, run 'systemctl daemon-reload' to update
> systemd
> > # units generated from this file.
> > #
> > /dev/mapper/cl_plexvm-root /                       xfs     defaults
> >   0 0
> > UUID=f7c4e0e2-703e-4e61-8d7a-0aa34f836b02 /boot                   ext4
> >   defaults        1 2
> > /dev/mapper/cl_plexvm-swap swap                    swap    defaults
> >   0 0
> > //192.168.1.200/mp3     /home/plex/Musique      cifs
> >   user=plex,pass=plex,domain=DERWAEL,ro,auto,vers=3.0
> > #//192.168.1.200/videos /home/plex/Vidéos       cifs
> >   user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> > #//192.168.1.200/series /home/plex/Séries       cifs
> >   user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> > [root at plexvm ~]# systemctl daemon-reload
> > [root at plexvm ~]# mount -a
> > mount error(2): No such file or directory
> > Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
> > [root at plexvm ~]#
> >
> > Le ven. 3 avr. 2020 à 18:23, Leon Fauster via CentOS <centos at centos.org>
> a
> > écrit :
> >
> >> Am 03.04.20 um 18:01 schrieb Patrick DERWAEL:
> >>> Le ven. 3 avr. 2020 à 17:54, Jonathan Billings <billings at negate.org> a
> >>> écrit :
> >>>
> >>>> On Fri, Apr 03, 2020 at 04:00:42PM +0200, Patrick DERWAEL wrote:
> >>>>> //192.168.1.200/mp3     /home/plex/Musique      cifs
> >>>>>    user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> >>>>> //192.168.1.200/videos  /home/plex/Vidéos       cifs
> >>>>>    user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> >>>>> //192.168.1.200/series  /home/plex/Séries       cifs
> >>>>>    user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> >>>> Try removing non-ascii characters from your mountpoints and try again.
> >>>>
> >>>> --
> >>>> Jonathan Billings <billings at negate.org>
> >>>> _______________________________________________
> >>>> CentOS mailing list
> >>>> CentOS at centos.org
> >>>>
> https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.centos.org%2Fmailman%2Flistinfo%2Fcentos&data=02%7C01%7Cchristopher.schanzle%40nist.gov%7C50e5520598c94cdebfc708d7d7eefb64%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637215293735011190&sdata=jVoqTxBRGNNfP7%2BWZCRP%2Fbb5vQ9RdErHznttq5wkWH8%3D&reserved=0
> >>>>
> >>> I have commented out the 2 mounts with non-ascii... that didn't help...
> >>>
> >>>
> >>> [root at plexvm ~]# cat /etc/fstab
> >>>
> >>> #
> >>> # /etc/fstab
> >>> # Created by anaconda on Fri Apr  3 14:02:23 2020
> >>> #
> >>> # Accessible filesystems, by reference, are maintained under
> >> '/dev/disk/'.
> >>> # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more
> >> info.
> >>> #
> >>> # After editing this file, run 'systemctl daemon-reload' to update
> >> systemd
> >>> # units generated from this file.
> >>> #
> >>> /dev/mapper/cl_plexvm-root /                       xfs     defaults
> >>>    0 0
> >>> UUID=f7c4e0e2-703e-4e61-8d7a-0aa34f836b02 /boot                   ext4
> >>>    defaults        1 2
> >>> /dev/mapper/cl_plexvm-swap swap                    swap    defaults
> >>>    0 0
> >>> //192.168.1.200/mp3     /home/plex/Musique      cifs
> >>>    user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> >>> #//192.168.1.200/videos /home/plex/Vidéos       cifs
> >>>    user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> >>> #//192.168.1.200/series /home/plex/Séries       cifs
> >>>    user=plex,pass=plex,workgroup=DERWAEL,ro,auto,vers=3.0
> >>> [root at plexvm ~]# mount -a
> >>> mount error(2): No such file or directory
> >>> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
> >>> [root at plexvm ~]#
> >>>
> >>>
> >>    username=value
> >>    password=value
> >>    domain=value
> >>
> >> ?
> >>
> >> --
>
>
> Instead of user=, try username=.  mount.cifs(8) states:
>
>     While some versions of the cifs kernel module accept user= as an
> abbreviation for this option, its use can confuse the standard mount
> program into thinking that this is a non-superuser mount. It is therefore
> recommended to use the full username= option name.
>
>
>

-- 

Patrick Derwael
Rue de la fontaine, 3
4210 Burdinne
Tél:+32.(0)479.80.50.79