To mount a Windows shared folder on Ubuntu, you can use the mount command or configure it in your /etc/fstab file for automatic mounting. Here's a step-by-step guide:
1. Install cifs-utils: If you haven't already, you'll need to install the cifs-utils package. Open a terminal and run:
sudo apt update
sudo apt install cifs-utils
mount command with the cifs filesystem type. The basic syntax is:Replace:
//windows_hostname/sharenamewith the address of the Windows share./mnt/windows_sharewith the directory you created in step 2.your_usernameandyour_passwordwith your Windows username and password.
For example:
sudo mount -t cifs //192.168.1.100/share /mnt/windows_share -o username=myusername,password=mypassword
4. Unmount the share: To unmount the share, you can use the umount command:
sudo umount /mnt/windows_share
If you want the share to be mounted automatically every time your system starts, you can add an entry to your /etc/fstab file. Open /etc/fstab in a text editor:
sudo vi /etc/fstab
=> add this :
//windows_hostname/sharename /mnt/windows_share cifs username=your_username,password=your_password 0 0