Mount Windows Share Debian

Mount Windows Share Debian

Mount Windows Share Debian

open up a command prompt, and login as root

apt-get install cifs-utils on Debian

apt-get install cifs-utilis

apt-get resolving dependencies for cifs-utils

hit y for yes

as you can see this will install cifs-utils and samba-common for backwards compatibility

Samba package configuration dialog asking for the workgroup

just hit ok on this window

make a folder for your Windows Share to mount to

Running mkdir /mnt/Windows on Debian to create the mount point for the Windows share

perfect

Opening /etc/fstab in nano on Debian to add a permanent mount for the Windows share

let’s set this share to mount on Startup as well

/etc/fstab line mounting the Windows share on /mnt/Windows with cifs

So basically enter the IP/Share-Name

that mounts to /mnt/Windows

make sure to fill in your Windows Username/Password for the Service account you are using

from here we need to mount the filesystem

** THIS COMMAND MOUNTS ALL FILESYSTEMS, DO IN OFF-BUSINESS HOURS!!! **

df -h showing the Windows share mounted

mount -a

then do a df -h

df -h output including the CIFS share on /mnt/Windows

as we can see, our new filesystem has been mounted, let’s double-check

ls of /mnt/Windows listing the Windows share files

cd /mnt/Windows, and then do a LS

BAM! There’s all our Windows Files!

That’s it!

If you are interested in a Hosted Debian Linux Server visit www.zwiegnet.com/go today

Related guides: Mounting Windows Share on CentOS | Mount CIFS/Windows Share on Fedora

Leave a Reply

Your email address will not be published. Required fields are marked *