← HomeHub.wiki
Tailscale Media-PC2 SMB Mount Ubuntu

Mount NAS Shares on Media-PC2

Install Tailscale on Media-PC2 (Ubuntu) and mount SMB shares from both the remote WD EX2 Ultra (via Tailscale) and the local Synology DS1522+ — so Plex and Jellyfin see all media as local files.

🐧 Ubuntu 24.04 ⏱️ ~15 min 📁 4 shares
🖥️

Media-PC2

Ubuntu 24.04 (Noble)
Tailscale IP: 100.75.215.102
Hostname: media-pc2

📦

WD EX2 Ultra (Remote)

Tailscale IP: 100.75.215.101
Hostname: mycloudex2ultra
1 Gbps symmetric (AT&T Fiber)

🗄️

Synology DS1522+ (Local)

Local IP: 10.0.0.99
Media share + 16TB USB drive
2.5 Gbps symmetric (AT&T Fiber)

📂

All Mount Points

/mnt/wdnas/media
/mnt/wdnas/adult-media
/mnt/synology/media
/mnt/synology/usbshare1

How It Connects

Remote NAS
WD EX2 Ultra
100.75.215.101
Tailscale Tunnel
WireGuard VPN
encrypted
Media-PC2
SMB Mounts
100.75.215.102
Apps
Plex / Jellyfin
local paths
Local NAS
Synology DS1522+
10.0.0.99
Local Network
Direct SMB
no VPN needed
Media-PC2
SMB Mounts
100.75.215.102
Apps
Plex / Jellyfin
local paths

Install Tailscale on Media-PC2

1

Install Tailscale

Open a terminal on Media-PC2 and run the official installer:

Run on Media-PC2
curl -fsSL https://tailscale.com/install.sh | sh

This installs Tailscale via apt and sets it up with systemd (auto-starts on boot automatically — no extra configuration needed).

2

Connect to your Tailscale network

Run on Media-PC2
sudo tailscale up

A login URL will appear — open it in a browser and authenticate with your Tailscale account. Then verify:

Run on Media-PC2
tailscale status | head -5
✓ Expected output
100.75.215.102  media-pc2          brentrosen@  linux  -
100.75.215.101  mycloudex2ultra    brentrosen@  linux  -
...

You should see both media-pc2 and mycloudex2ultra in the list.

Mount the Remote NAS Shares

3

Install SMB tools

Run on Media-PC2
sudo apt install cifs-utils smbclient -y
4

Verify you can see the NAS shares

List available shares on the WD NAS over the Tailscale network:

Run on Media-PC2
smbclient -L 100.75.215.101 -N
✓ Expected output
Anonymous login successful
    Sharename       Type      Comment
    ---------       ----      -------
    Public          Disk
    adult-media     Disk
    media           Disk
    IPC$            IPC       IPC Service (2-Bay NAS)
5

Create mount points

Run on Media-PC2
sudo mkdir -p /mnt/wdnas/media
sudo mkdir -p /mnt/wdnas/adult-media
6

Test the mounts

Replace YOUR_USERNAME and YOUR_PASSWORD with your WD NAS credentials.

Run on Media-PC2
sudo mount -t cifs //100.75.215.101/media /mnt/wdnas/media \
  -o username=YOUR_USERNAME,password=YOUR_PASSWORD,vers=2.0

sudo mount -t cifs //100.75.215.101/adult-media /mnt/wdnas/adult-media \
  -o username=YOUR_USERNAME,password=YOUR_PASSWORD,vers=2.0

Verify both are mounted (they'll be empty on a fresh NAS):

Run on Media-PC2
ls /mnt/wdnas/media
ls /mnt/wdnas/adult-media
💡
If you get Permission denied with vers=3.0, try vers=2.0 instead. The WD EX2 Ultra works best with SMB 2.0.

Make Mounts Permanent

7

Create a secure credentials file

Instead of putting your password in fstab (visible to all users), store it in a locked-down file:

Run on Media-PC2
sudo nano /root/.wdnas-creds

Type these two lines (use your actual NAS credentials):

File contents
username=YOUR_USERNAME
password=YOUR_PASSWORD

Save: press Ctrl+X, then Y, then Enter.

Lock it down so only root can read it:

Run on Media-PC2
sudo chmod 600 /root/.wdnas-creds
8

Add mounts to fstab

These entries tell Ubuntu to mount both shares automatically at boot:

Run on Media-PC2
echo '//100.75.215.101/media /mnt/wdnas/media cifs credentials=/root/.wdnas-creds,vers=2.0,_netdev,nofail 0 0' | sudo tee -a /etc/fstab
Run on Media-PC2
echo '//100.75.215.101/adult-media /mnt/wdnas/adult-media cifs credentials=/root/.wdnas-creds,vers=2.0,_netdev,nofail 0 0' | sudo tee -a /etc/fstab

Verify:

Run on Media-PC2
cat /etc/fstab | grep wdnas
✓ Expected output
//100.75.215.101/media /mnt/wdnas/media cifs credentials=/root/.wdnas-creds,vers=2.0,_netdev,nofail 0 0
//100.75.215.101/adult-media /mnt/wdnas/adult-media cifs credentials=/root/.wdnas-creds,vers=2.0,_netdev,nofail 0 0
💡
The _netdev flag tells Ubuntu to wait for networking before mounting. The nofail flag prevents the system from hanging at boot if the NAS is unreachable.

Mount the Local Synology NAS

ℹ️
The Synology DS1522+ is on the same local network as Media-PC2, so no Tailscale is needed — we connect directly via the local IP 10.0.0.99.
9

Create mount points for the Synology

Run on Media-PC2
sudo mkdir -p /mnt/synology/media
sudo mkdir -p /mnt/synology/usbshare1
10

Test the Synology mounts

The media files live inside the homes share under a Media subfolder. The USB drive is the usbshare1 share. Each command will prompt you for your Synology password.

Run on Media-PC2
sudo mount -t cifs //10.0.0.99/homes/Media /mnt/synology/media -o username=Brent
Run on Media-PC2
sudo mount -t cifs //10.0.0.99/usbshare1 /mnt/synology/usbshare1 -o username=Brent

Verify both are mounted:

Run on Media-PC2
ls /mnt/synology/media
ls /mnt/synology/usbshare1
✓ Expected output
Media Files Converted  Media Files to Convert  Recordings  #recycle  TV Shows

Data  Downloads  IPTV Media  Mark II Enterprises  Movies  Music  Prison Break (2005-2017)
11

Create a secure credentials file for the Synology

Same approach as the WD NAS — a separate locked-down credentials file:

Run on Media-PC2
sudo nano /root/.synology-creds

Type these two lines (use your actual Synology credentials):

File contents
username=YOUR_USERNAME
password=YOUR_PASSWORD

Save: press Ctrl+X, then Y, then Enter.

Lock it down:

Run on Media-PC2
sudo chmod 600 /root/.synology-creds
12

Add Synology mounts to fstab

Run on Media-PC2
echo '//10.0.0.99/homes/Media /mnt/synology/media cifs credentials=/root/.synology-creds,_netdev,nofail 0 0' | sudo tee -a /etc/fstab
Run on Media-PC2
echo '//10.0.0.99/usbshare1 /mnt/synology/usbshare1 cifs credentials=/root/.synology-creds,_netdev,nofail 0 0' | sudo tee -a /etc/fstab

Verify all four mounts are in fstab:

Run on Media-PC2
cat /etc/fstab | grep -E 'wdnas|synology'
✓ Expected output
//100.75.215.101/media /mnt/wdnas/media cifs credentials=/root/.wdnas-creds,vers=2.0,_netdev,nofail 0 0
//100.75.215.101/adult-media /mnt/wdnas/adult-media cifs credentials=/root/.wdnas-creds,vers=2.0,_netdev,nofail 0 0
//10.0.0.99/homes/Media /mnt/synology/media cifs credentials=/root/.synology-creds,_netdev,nofail 0 0
//10.0.0.99/usbshare1 /mnt/synology/usbshare1 cifs credentials=/root/.synology-creds,_netdev,nofail 0 0

Using with Plex & Jellyfin

Once all mounts are active, point your media apps at the local paths. All four paths appear as regular folders to Plex and Jellyfin.

WD EX2 Ultra (remote via Tailscale):

/mnt/wdnas/media — family-friendly content

/mnt/wdnas/adult-media — adult content

Synology DS1522+ (local network):

/mnt/synology/media — TV Shows, Recordings, converted media

/mnt/synology/usbshare1 — Movies, Music, IPTV Media

Plex: Settings → Libraries → Add Library → Browse to any of the paths above

Jellyfin: Dashboard → Libraries → Add Media Library → Folders → Browse to any of the paths above

Plex and Jellyfin see all four mounts as local folders. The remote WD NAS streams over Tailscale's encrypted tunnel (1 Gbps at the remote end), while the Synology delivers content at full local network speed.

Quick Reference

Key paths and IPs
# Tailscale IPs
Media-PC2:         100.75.215.102
WD EX2 Ultra:      100.75.215.101

# Local network
Synology DS1522+:  10.0.0.99

# WD NAS mount points (remote, via Tailscale)
/mnt/wdnas/media         # ← family-friendly content
/mnt/wdnas/adult-media   # ← adult content

# Synology mount points (local network)
/mnt/synology/media      # ← TV Shows, Recordings, converted media
/mnt/synology/usbshare1  # ← Movies, Music, IPTV Media (16TB USB)

# Credentials files
/root/.wdnas-creds       # ← WD NAS SMB login (chmod 600)
/root/.synology-creds    # ← Synology SMB login (chmod 600)

# fstab entries
/etc/fstab               # ← all persistent mount configs

# Useful commands
tailscale status         # ← check Tailscale connection
mount | grep -E 'wdnas|synology'  # ← verify all mounts
sudo mount -a            # ← re-mount all fstab entries

Setup Complete

Media-PC2 now has four SMB mounts — two from the remote WD EX2 Ultra via Tailscale and two from the local Synology DS1522+. All mounts persist across reboots. Plex and Jellyfin can serve content from both NAS devices as if everything were on a single local drive.

← Back: WD NAS Setup  ·  Home