Linux Mount CIFS/SMB Share at Boot

Опубликовано: 02 Апрель 2026
на канале: Geekhead
46,625
452

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:    • 3rd Prototype - I Know | House | NCS - Cop...  
Free Download / Stream: http://ncs.io/IKnowYO