Linux Mount CIFS/SMB Share at Boot

Channel:
Subscribers:
2,750
Published on ● Video Link: https://www.youtube.com/watch?v=5b3lCE_I3yw



Duration: 6:58
31,860 views
315


This is a common question I get asked, or wait, that I ask myself when setting up a Linux host in a networked environment. How do I mount a network file share at boot in Linux without needing to type a password?

I also do not want to sudo the mount command.

Whats the answer? Well, put the cifs statement in your /etc/fstab file instead.

Remember you need to install cifs-utils first!

Here is my cifs string:

//192.168.0.10/share /media/share cifs credentials=/home/username/.server_creds,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

-------------------------------

Track: 3rd Prototype - I Know [NCS Release]
Music provided by NoCopyrightSounds.
Watch: https://youtu.be/ZRnrjxDKv6Q
Free Download / Stream: http://ncs.io/IKnowYO







Tags:
how to linux mount
linux mount fstab
linux mount fstab cifs
sudo mount -t cifs
mount smb
mount smb share linux fstab
ubuntu 18.04 mount windows share
ubuntu mount windows share command line
ubuntu terminal mount smb
ubuntu cifs
how to install cifs-utils