How to mount windows share to Ubuntu


sudo apt-get install samba samba-client cifs-utils libnss-winbind winbind

sudo mkdir /media/GitHub

sudo nano /etc/nsswitch.conf

sudo service networking restart

sudo cp /etc/fstab /etc/fstab.old

(TO RESTORE): sudo mv /etc/fstab.old /etc/fstab

nano /home/tcno/.smbcred

sudo nano /etc/fstab

sudo mount -a

// /media/FOLDER cifs credentials=/home/user/.smbcred,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *