Skip to content
Menu
vernon.wenberg.net
vernon.wenberg.net
May 21, 2021February 21, 2022

Mount Windows Share On Boot in Ubuntu 20.04

These steps assume you are root or using sudo.

Install cifs-utils.

apt install cifs-utils

Create /root/.smbcredentials with the following contents …

username=username
password=password

Change username and password to your username and password.

Edit /etc/fstab and add the following line to the end.

//192.168.1.111/software /mnt/clyde cifs vers=3.0,credentials=/root/.smbcredentials

192.168.1.111 should be changed to your host and software should be changed to your share.
/mnt/clyde is the location where the remote share is mounted. This folder must already be created.

Make sure networking is started before mounting.

systemctl enable systemd-networkd-wait-online

Reboot.

reboot

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to print (Opens in new window) Print
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Like this:

Like Loading...

Related

Disclaimer

These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.

Recent Posts

  • HPE Aruba-CX Notes
  • Docker Reference
  • Useful Commands for Windows Subsystem for Linux
  • FortiManager Local-In Policy
  • Mount Google Drive in Linux using rclone

Mastodon

  1. Loading Mastodon feed...

©2025 vernon.wenberg.net | Powered by WordPress and Superb Themes!
%d