C.W.K.
Stream
Lesson 11 of 14 · published

NAS & Shared Storage

~15 min · nas, nfs, smb, synology

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

Centralized storage for the fleet

A NAS (Network Attached Storage) gives every machine on your LAN access to the same files. Synology and QNAP dominate the small-business / home-office space; for serious throughput, a small Ubuntu server with ZFS does the same job for less. Use it for: backups (rsync targets), shared projects, media libraries, Time Machine.

NFS vs SMB — pick by ecosystem

PropertyNFSSMB/CIFS
Best onUnix / macOSMixed / Windows-heavy
ThroughputFaster on UnixMore overhead
macOSGood but quirkyNative Finder integration
PermissionsPOSIX UID/GIDMapped via SMB user
SetupSimple on UnixEasier cross-platform

Code

Mount from terminal (macOS)·bash
# NFS mount
sudo mkdir -p /mnt/nas
sudo mount -t nfs nas.local:/volume1/shared /mnt/nas

# SMB mount
mkdir -p /Volumes/nas
mount -t smbfs //you_username@nas.local/shared /Volumes/nas

# Auto-mount via /etc/auto_master (NFS)
# 1. Edit /etc/auto_master, add:  /mnt    auto_nfs
# 2. Create /etc/auto_nfs:
#    nas    -fstype=nfs,resvport nas.local:/volume1/shared
# 3. Restart automount:
sudo automount -vc

# Verify mounts
mount
df -h

External links

Exercise

If you have a NAS, mount its shared volume from the terminal using both NFS and SMB (one at a time). Time a transfer of a ~100MB file: time cp big.bin /mnt/nas/. Compare. On 10GbE, NFS should win. Check with mount to see what's mounted, df -h to see free space.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.