Network Storage Setup: External SSD on Proxmox with Samba
Network Storage Setup: External SSD on Proxmox with Samba¶
Overview¶
This guide explains how to connect an external SSD to a Proxmox host, pass it through to a VM, configure Samba for network sharing, and access it from Linux and Windows clients.
Step 1: Connect and Identify the External SSD on Proxmox Host¶
Plug the external SSD into the Proxmox server's USB port.
Identify the drive:
Note the full device ID (e.g., usb-Samsung_PSSD_T7_S7MPNS0XA03986E-0:0)
Step 2: Create or Clone a VM for Storage¶
Create a new Ubuntu VM or clone from an existing template:
Start the VM and note its IP address (e.g., 192.168.1.167)
Step 3: Pass the External SSD to the VM¶
If the drive is currently mounted on the Proxmox host, unmount it:
Attach the drive to the VM using its device ID:
Verify the attachment:
Step 4: Mount the Drive Inside the VM¶
SSH into the VM:
Check for the new disk:
Create a mount point:
Mount the drive (assuming it appears as /dev/sdb1):
Get the UUID for permanent mounting:
Add to /etc/stab for automatic mounting on boot:
Add this line (replace UUID with your actual UUID):
Test the fstab entry:
Step 5: Install and Configure Samba on the VM¶
Update and install Samba:
Backup the original Samba configuration:
Edit the Samba configuration:
Add this at the bottom of the file:
[storage]
path = /mnt/storage
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
valid users = mark
Create a Samba password for your user:
Restart Samba to apply changes:
Verify Samba is running:
Step 6: Access from Linux Clients¶
Option A: Access via File Manager (GUI)
Open your file manager and navigate to:
Enter username and Samba password when prompted.
Option B: Mount Permanently via fstab
Create a mount point on the client:
Create a credentials file:
Add your credentials:
Secure the credentials file:
Edit /etc/fstab:
Add this line (replace 1000 with your actual UID/GID if different):
//192.168.1.167/storage /mnt/network-storage cifs credentials=/home/mark/.smbcreds,uid=1000,gid=1000 0 0
Reload systemd and mount:
Verify the mount:
Test access:
Step 7: Access from Windows Clients¶
Option A: Map as Network Drive (GUI)
- Open File Explorer
- Click "This PC" in the left sidebar
- Click "Map network drive" in the toolbar
- Choose a drive letter (e.g., Z:)
- Enter the folder path:
\\192.168.1.167\storage - Check "Reconnect at sign-in" if you want it permanent
- Check "Connect using different credentials"
- Click "Finish"
- Enter username:
markand your Samba password - Click "OK"
Option B: Access via Command Line
Open Command Prompt or PowerShell:
To make it persistent across reboots:
To disconnect:
Verification¶
The network storage should now be accessible from:
- Proxmox VM:
/mnt/storage - Linux clients:
/mnt/network-storage(if mounted) orsmb://192.168.1.167/storage(file manager) - Windows clients:
Z:\(if mapped) or\\192.168.1.167\storage(UNC path)
All devices can read and write files to the shared storage location.