Mount Windows 11 Shares on Debian Linux In 2024
Without any explanations, let’s jump into the tutorial post on how to mount windows 11 shares on Debian Linux on 2024.
How To Mount Windows 11 Shares on Debian Linux In 2024
There are multiple ways to mount Windows 11 shares on Debian Linux. In this post, we will have a look into the two methods to mount Windows 11 shares.
Mount Windows 11 Shares On Debian Automatically
Automate the Mounting Process (fstab)
In this method, you need to add an entry to your
/etc/fstab file so that the Windows share can be mounted automatically at boot. Open the
/etc/fstab file in a text editor with administrative privileges with the following command:
sudo nano /etc/fstab
After opening the file, you need to add a line at the end of the file in the following format:
Save the file and exit the text editor.
Mount the Share:
Run the following command in the linux terminal to mount the share defined in
/etc/fstab with the use of the
mount command without any arguments. The following command will read the
/etc/fstab file and mount all entries specified there.
sudo mount -aNow, your Windows 11 share will be automatically mounted on the everytime you start Linux distro.
In another method, You can use the
cifs-utils package. It is the set of the tools and utilities for mounting Windows shares via the SMB/CIFS protocol.
Mount Windows 11 Share On Debian Linux using cifs-utils package.
sudo apt-get update
sudo apt-get install cifs-utils
Create a mount point:
You need to create a directory on your Linux system where you can mount the Windows 11 share.
Mount the Windows Share:
mount.cifs command to mount the Windows Share.
Replace the placeholders with your Windows share details (e.g.,
mount -t cifs //server/share ~/dir_to_mount -o
//server/share: Replace this with the UNC path to the Windows share you want to mount.
~/dir_to_mount: This is the local mount point to share that you created earlier.
password=yourpassword: Replace these with your Windows username and password.
gid=yourlinuxusergroup: Replace these with your Linux user’s username and group