VIM4 Ubuntu 22 Desktop, unable to mount network cifs shared volume

What are the necessary modules and steps to mount a CIFS network share?

I never been this unsuccessful in getting this work would on other raspberry pi os or ubuntu systems.

sudo apt-get install samba
sudo apt install cifs-utils

seems the cifs kernel module is not installed, first step I tried:

khadas@Khadas:~$ sudo lsmod | grep cifs
khadas@Khadas:~$ sudo modprobe cifs
sudo mount -a

mount error(13): Permission denied

khadas@Khadas:~$ cat /proc/fs/cifs/SecurityFlags
khadas@Khadas:~$ sudo -s
root@Khadas:/home/khadas# echo 0x27 > /proc/fs/cifs/SecurityFlags
sudo mount -a

mount error(2): No such file or directory

I am using the identical mount directories and fstab entry from another ubuntu machine that mounts the volume fine, I have tried a number of different options on the fstab line with no results:

sudo mkdir /media/nas00

sudo vi /etc/fstab
// /media/nas00 cifs username=xyz,password=xyz,uid=khadas,gid=khadas,vers=1.0,comment=xsystemd.automount 0 0

Thank you for guidance!

I had this and was advised to do this:

$ sudo modprobe cifs
$ sudo modprobe md4
$ sudo mount.cifs // /mnt/mountname -o username=shareuser,password=sharepassword,domain=domainname

I also had to install cifs-utils and append lines in /etc/modules to load cifs and md4 at startup

I can now mount SMB shares on my NAS using an entry in fstab.


Thank you @technodevotee I am going to do a complete reinstall of Ubuntu and give this a try.