Mount a Windows shared directory on boot

Sometimes you want to always mount some Windows shared directories at boot on Linux. I personally add this remote directories to /etc/fstab for automatic mounting on boot. This is what my /etc/fstab line for this looks like:

//windows_name/directory_path /your/mount/point cifs  credentials=/home/user/.smbcredentials,
iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

Don't forget to change your remote Windows directory path, your local mount point path and your .smbcredentials path (usually /home/your_user_name/.smbcredentials).

Comments

Popular Posts