Link to this comparison view

linux:mounting_a_windows_share_in_ubuntu [2020/06/01 22:53] (current)
Line 1: Line 1:
 +====== Mounting a Windows Share in Ubuntu ======
 +
 +Make sure that smbfs is installed. ​ If not, you'll get an error indicating "​mount:​ wrong fs type, bad option, bad superblock"​. ​ Use the following command to install it.
 +
 +  sudo apt-get install smbfs
 +
 +Now, type to mount the share with the following command.
 +
 +  mount -t cifs //​server/​dir -o username=joel,​password=secret /mnt/server
 +
 +You might get an error indicating "could not find target server"​. ​ If so, edit the /​etc/​nsswitch.conf file and add "​wins"​ to the hosts line.
 +
 +  hosts: files wins dns
 +
 +Then, install winbind.
 +
 +  sudo apt-get install winbind
 +
 +Now you should be able to mount the file with the mount command specified earlier.
 +
 +===== References =====
 +
 +https://​help.ubuntu.com/​community/​MountWindowsSharesPermanently.
  
comments powered by Disqus
linux/mounting_a_windows_share_in_ubuntu.txt · Last modified: 2020/06/01 22:53 (external edit)