Debian: Permanently mount Windows File Share

Debian: Permanently mount Windows File Share

Channel:
Subscribers:
288,000
Published on ● Video Link: https://www.youtube.com/watch?v=HTRbkQz_F1A



Duration: 8:36
5,097 views
71


Have shared files on a Windows computer? Want to access shared folders from a Debian/Linux computer or virtual machine? Well, it's easy once it's set up. There are a lot of commands and knowledge that goes into setting this up, but if these tutorial steps are followed, it's rather easy.
Set and forget. Once the folder is mounted, it's mounted every time the computer/VM is started. No extra effort required.

Commands:
apt-get install samba
apt-get install samba-client
sudo mkdir /media/MOUNTNAME
sudo apt-get install libnss-winbind winbind
nano /etc/nsswitch.conf
sudo service networking restart
sudo cp /etc/fstab /etc/fstab.old
-- RESORE USING: sudo mv /etc/fstab /etc/fstab.old
nano /home/USERNAME/.smbcred
sudo nano /etc/fstab
-- //windows_local_ip/windows_shared_folder /media/MOUNTNAME cifs credentials=/home/USERNAME/.smbcred,iocharset=utf8,gid=GID,uid=UID,file_mode=0777,dir_mode=0777 0 0
sudo mount -a

Timestamps:
00:00 - Explanation
00:24 - Installing Samba
01:05 - Creating Mount
01:44 - Installing other requirements
02:06 - Editing nsswitch.conf
03:00 - Backing up fstab
03:33 - Creating a credential file
04:46 - Get UID + GID
05:08 - Editing fstab to mount drive permanently
06:46 - Testing
07:35 - Adding another folder

-----------------------------
💸 Found this useful? Help me make more! Support me by becoming a member: https://youtube.com/channel/UCkih2oVTbXPEpVwE-U7kmHw/join
-----------------------------
💸 Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
💬 Discuss video & Suggest (Discord): https://s.tcno.co/Discord
👉 Game guides & Simple tips: https://YouTube.com/TroubleChuteBasics
🌐 Website: https://tcno.co
📧 Need voice overs done? Business query? Contact my business email: TroubleChute (at) tcno.co

Everything in this video is my personal opinion and experience, and should not be considered professional advice. Always do your own research and make sure what you're doing is safe.







Tags:
mount
windows
share
linux mount windows share
ubuntu mount windows share command line
file sharing
mount windows share on linux
mount windows share in ubuntu
mount windows share on centos
mount windows share on fedora
shared folder
linux
shared
ubuntu
unmounting a file system
auto mount hard drive
how to mount windows drive
windows nt file system (file system)
debian windows file share
linux windows file share
ubuntu windows file share