How to automatically mount network shares?

Hi, I’m new to Manjaro.

I tried to mount a windows share automatically at boot up. So I did:

  1. I created a mounting point.
  2. I created a file, .smbcredentials, in which I added my user name and password.
  3. I edited /etc/fstab. Add:
    //windows IP/share /run/media/myusername/share cifs credentials=/home/myusername/.smbcredentials, iocharset=utf8, gid=1000, uid=1000,file_mode=0777,dir_mode=0777 0 0
  4. Tested sudo mount -a, it works fine.

But after reboot, the shared folder is not mounted. How to mount it automatically?

Have you checked similar threads?
https://forum.manjaro.org/search?q=mount%20network%20share%20at%20boot

1 Like

I’ve read other threads and fixed the problem. Thanks

This is because your network is not up and the share is therefore not mountable.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.