This guide shows you how to connect to network shares on Windows and Linux. Weโll cover GUI methods for beginners and CLI methods for persistent mounts. Perfect for NAS, home labs, or small office setups. ๐
net use.smb://Your.Server.IP.Address/Your-Shared-Folder-Name + Bookmark for auto-reconnect.fstab + credentials file.
๐ฑ๏ธ GUI (File Explorer):
\\Your.Server.IP.Address\Your-Shared-Folder-Nameโจ๏ธ CLI (PowerShell/CMD):
net use Z: \\Your.Server.IP.Address\Your-Shared-Folder-Name /user:YourUsername * /persistent:yes
๐ GNOME Files / Nemo:
smb://Your.Server.IP.Address/Your-Shared-Folder-NameDolphin can fail with SMB. Use Gigolo + GVFS SMB to fix.
๐ฆ Install:
# Arch / Manjaro sudo pacman -S gigolo gvfs-smb # Debian / Ubuntu sudo apt install gigolo gvfs-backends gvfs-fuse # Fedora sudo dnf install gigolo gvfs-smb
๐ Auto-start Gigolo:
๐ Tip: In Gigolo โ Preferences, enable Start minimized.
โ ๏ธ If your desktop auto-logs in without a password, the keyring stays locked and youโll be prompted once.
For reliable auto-mounting, use a credentials file and /etc/fstab.
๐ Create mount point:
sudo mkdir -p /mnt/Your-Shared-Folder-Name
๐ Create credentials file:
sudo nano /root/.smbcreds # Add: username=YourUsername password=YourPassword
๐ Lock file permissions:
sudo chmod 600 /root/.smbcreds
๐งฉ Edit fstab:
sudo nano /etc/fstab # Add this line: # //Your.Server.IP.Address/Your-Shared-Folder-Name /mnt/Your-Shared-Folder-Name cifs credentials=/root/.smbcreds,uid=1000,gid=1000,iocharset=utf8,vers=3.0 0 0
๐ Apply & mount:
sudo systemctl daemon-reload sudo mount -a
โ Done! Your share now mounts automatically on reboot.
mount -a fails โ check //server/share, credentials path, and SMB vers=.uid/gid with id.
Windows is fastest for mapping drives. Linux offers more control: GUI bookmarks for convenience, Gigolo for KDE fixes, and fstab for persistence. ๐
More guides & copy-paste commands ๐ Impulse Tech Shop