This article introduces how to mount (sync) a Windows 10 shared folder in Ubuntu 18.04.
I previously wrote this article.
Mounting (syncing) Windows 10 shared folders in Ubuntu 16.04 - YUIPRO Programming
This is for Ubuntu 16.04 LTS, but with 18.04, there are additional steps needed.Mounting (syncing) Windows 10 shared folders in Ubuntu 16.04
mkdir ~/share sudo mount -t cifs //IP_ADDR/_sync_ ~/share -o user=USERNAME,pass=PASSWORD,dir_mode=0777,file_mode=0777 e.g. sudo mount -t cifs //192.168.3.19/_sync_ ~/share -o user=user,pass=hogefuga,dir_mode=0777,file_mode=0777
Running this alone in Ubuntu 18.04 will result in the following error:
bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.[mount - Why do I get "wrong fs type, bad option, bad superblock" error? - Ask Ubuntu](https://askubuntu.com/questions/525243/why-do-i-get-wrong-fs-type-bad-option-bad-superblock-error) ## Solution ```bash sudo apt update sudo apt install nfs-common sudo apt install cifs-utils ``` Then you can mount with this command, same as Ubuntu 16.04. ```bash sudo mount -t cifs //192.168.3.19/sync ~/share -o user=user,pass=hogefuga,dir_mode=0777,file_mode=0777 ```helper program.