Mount Windows Shared Folders on Ubuntu
Windows File share\\192.168.80.57\logadministrator - password123apt update apt install cifs-utils -y dnf install cifs-utils # mkdir -p /mnt/winshare# cd /mnt/winshare# mount -t cifs //192.168.80.57/log /mnt/winshare -o username=Administratorpassword-root@log:/mnt/winshare# df -hFilesystem Size Used Avail Use% Mounted onudev 16G 0 16G 0% /devtmpfs 3.2G 1.7M 3.2G 1% /run/dev/mapper/log--vg-root 78G 13G 61G 18% /tmpfs 16G 0 16G 0% /dev/shmtmpfs 5.0M 0 5.0M 0% /run/locktmpfs 16G 0 16G 0% /sys/fs/cgrouptmpfs 3.2G 0 3.2G 0% /run/user/0tmpfs 3.2G 0 3.2G 0% /run/user/1000/dev/sdb 10T 3.4T 6.1T 36% /log1//192.168.80.57/log 5.0T 47G 5.0T 1% /mnt/winshare# vi /etc/cifs-credentialsusername=Administratorpassword=password123# chmod 600 /etc/cifs-credentials# vi /etc/fstab # Add the following line at the end of the file //192.168.80.57/log /mnt/winshare cifs credentials=/etc/cifs-credentials 0 0 OR//192.168.80.57/lo /mnt/winshare cifs credentials=/etc/cifs-credentials,file_mode=0755,dir_mode=0755 0 0Unmount CIFS Windows Share
umount /mnt/winshare umount -f /mnt/winshare