# Samba NAS — Session Config (rayserver)

Deployed on `rayserver` (Ubuntu 26.04, 192.168.50.98) for three drives.

## Shares

| Share | Mount Point | Drive | Filesystem | Size |
|-------|-------------|-------|------------|------|
| `media` | /mnt/media | SanDisk Extreme 1TB (USB SSD) | exfat | 932G, ~54% used |
| `storage` | /mnt/storage | WD Blue 1TB 7200RPM HDD (WD10EZEX, SATA) | ext4 | 916G, ~1% used |
| `wd-passport` | /mnt/wd-passport | WD Passport 2.7TB (USB HDD) | ntfs-3g | 2.8T, ~31% used |

## Speed Benchmarks

| Drive | Read | Write | Connection |
|-------|------|-------|-----------|
| NVMe boot (WD Black SN530) | — | — | NVMe (fastest) |
| sda (SanDisk Extreme USB) | — | — | USB 3.1 Gen2 10Gbps |
| **sdb (WD Blue HDD SATA)** | **~192 MB/s** | **~156 MB/s** | SATA 3 |
| **sdc (WD Passport USB)** | **~54 MB/s** | **~49 MB/s** | USB 3.0 5Gbps |

sdb is ~3x faster than sdc due to direct SATA vs USB bridge bottleneck.

## smb.conf (/etc/samba/smb.conf)

```ini
[global]
workgroup = WORKGROUP
server string = rayserver
netbios name = rayserver
security = user
map to guest = Bad User
guest account = nobody
server min protocol = SMB2
client min protocol = SMB2

[media]
path = /mnt/media
browseable = yes
read only = no
guest ok = yes
force user = ray
create mask = 0777
directory mask = 0777

[storage]
path = /mnt/storage
browseable = yes
read only = no
guest ok = yes
force user = ray
create mask = 0777
directory mask = 0777

[wd-passport]
path = /mnt/wd-passport
browseable = yes
read only = no
guest ok = yes
force user = ray
create mask = 0777
directory mask = 0777
```

## Client Access

- **Windows**: `\\192.168.50.98` or `\\rayserver`
- **macOS**: `smb://192.168.50.98`
- **Linux**: `smb://192.168.50.98/`
- No password (guest access, trusted LAN)
