Mounting network drives (CIFS)

Posted on Sep 10, 2025
  1. Make a new folder in the user directory
mkdir name
  1. Check the uid and gid of the user using
id
  1. To mount CIFS file systems under Linux, you may need to install additional packages. Install cifs-utils using,
apt install cifs-utils
  1. Edit the fstab file to mount permanently and let it be there automatically on boot. To open, we need to be in the root.
sudo nano /etc/fstab   
  1. You can add entries to /etc/fstab (you must be root for that or use sudo). The entries should have the form: Refer
//server_address/share <mount_point> cifs vers=3.0,workgroup=W2KROOT,username=<user>,file_mode=0600,dir_mode=0700,uid=<linux_username>,gid=<linux_group>,noauto,users 0 0
  1. Then, to mount the directories, you can use the following command as a user without root-privileges:
$ mount <mount_point>

There will be a warning message,

mount: (hint) your fstab has been modified, but systemd still uses
      the old version; use 'systemctl daemon-reload' to reload.

It means, if you’ve recently edited /etc/fstab, systemd is still using a cached version, and to fully apply the new changes, you should run:

systemctl daemon-reload