Goodbye Physical NAS? Turning Google Drive into a 5TB Virtual Drive (20TB-Ready) with rclone + WinFsp

What Happened When Deployed for Real#

If you’re unfamiliar with NAS (Network Attached Storage), think of it as a dedicated hard-drive box plugged into your home router—great for backing up projects, photos, and videos like a private cloud, except you have to maintain the hardware, pay 24/7 electricity bills, and worry about drive failures or home internet outages.

Inspired by Anekchai Bew’s “Goodbye NAS… Welcome to Cloud 20TB” post in the Antigravity Thailand community (which pools four 5TB Google AI Pro accounts into 20TB), I adapted the exact setup onto a Windows 10 Homelab PC—starting with 1 active account (5 TiB / 5,120 GB) mounted directly as Windows drive G: via rclone 1.76.0 and WinFsp 2.1.

In real-world daily use, it behaves surprisingly close to a local disk. rclone.exe consumes only ~48 MB of RAM while sustaining ~34 MB/s (275 Mbps) downloads and ~10.0 MB/s (80 Mbps) uploads (saturating the home ISP upload cap), with zero home drive hardware to babysit.


Why Skip the Official Drive App and Shared Public Keys#

  1. The official Google Drive desktop app consumes local space unpredictably and lacks granular VFS cache tuning for CLI backup workflows.
  2. Shared public OAuth client keys used by generic mounting tools share API rate limits across thousands of users, routinely triggering HTTP 429/403 throttling.
  3. The winning combination: Your own private Google Cloud OAuth credentials + WinFsp (Windows File System Proxy) + 8-stream VFS Full Cache tuning in rclone.

Under the Hood: Private OAuth + 8-Stream VFS Cache#

┌────────────────────────────────────────────────────────────────┐
│ Cloud Virtual NAS Architecture │
├────────────────────────────────────────────────────────────────┤
│ Local Apps & Backup Scripts (Standard Windows File I/O) │
│ │ │
│ ▼ │
│ [Drive G: (--network-mode, UNC: \\gdrive-remote\Google Drive)]│
│ ▲ │
│ │ WinFsp 2.1 (Windows File System Proxy) │
│ │ │
│ [rclone v1.76.0 (~48 MB RAM)] │
│ ├─► VFS Full Cache (C:\rclone_cache - Max 10G, Age 12h) │
│ ├─► 8 Parallel Read Streams (--vfs-read-chunk-streams 8) │
│ ├─► Read-Ahead 128M / Dir-Cache 72h / Fast-Fingerprint │
│ └─► Dedicated GCP OAuth (External + Test Users, Desktop) │
│ │
│ Operations & Lifecycle: │
│ ├─► Silent Startup (mount-gdrive.vbs + .bat) │
│ ├─► Health Helper (check-gdrive.ps1 via Get-PSDrive) │
│ └─► Token Expiry Watchdog (~7-day reminder) │
└────────────────────────────────────────────────────────────────┘

Key flags driving G::

  • --network-mode and --volname "\\gdrive-remote\Google Drive": Mounts the remote cleanly as a Windows network drive.
  • --vfs-cache-mode full, --vfs-cache-max-size 10G, --vfs-cache-max-age 12h: Backs frequent reads/writes and random seeking with local SSD cache (C:\rclone_cache) capped at 10GB.
  • --vfs-read-chunk-streams 8, --vfs-read-chunk-size 16M, --vfs-read-ahead 128M, --drive-chunk-size 128M: Opens 8 parallel read streams to saturate available download bandwidth.
  • --vfs-refresh, --dir-cache-time 72h, --vfs-links, --vfs-fast-fingerprint, --server-side-across-configs: Keeps large nested folder browsing snappy.

How to Replicate It (Step-by-Step + Master Prompt)#

Following the reference workflow takes two quick steps—grabbing private GCP credentials and handing the setup prompt to an AI coding agent (such as Antigravity, Claude Code, Codex, or Cursor):

Step 1: Create Your Private Google Drive API Credentials#

  1. Open console.cloud.google.com and create a New Project.
  2. Search for Google Drive API and click Enable (do not skip this).
  3. Under OAuth consent screen, choose External, fill in the app name and email, and add every Google account you plan to mount under Test users.
  4. Under Credentials, click + CREATE CREDENTIALS and select OAuth client ID.
  5. Choose Desktop app and click Create.
  6. Copy your Client ID and Client Secret (keep them strictly in your local %APPDATA%\rclone\rclone.conf—never commit them to git).

Step 2: Master Prompt for Your AI Agent#

Paste your Client ID and Client Secret into the brackets and let your agent set everything up (note: omit --log-rotate when running rclone 1.76.0):

Set up and mount Google Drive as a Local Network Drive on Windows using Rclone + WinFsp with High-Speed VFS Full Cache tuning:
[Configuration]:
- Client ID: [YOUR_CLIENT_ID]
- Client Secret: [YOUR_CLIENT_SECRET]
- Remote Name: mygdrive
- Drive Letter: G:
- Cache Directory: C:\rclone_cache (or another local SSD path with free space)
[Automated Steps]:
1. Verify and install dependencies:
- Check if WinFsp is installed; if missing, install via winget (winget install -e --id WinFsp.WinFsp).
- Check if rclone.exe is installed; if missing, install via winget (winget install -e --id Rclone.Rclone).
2. Configure Rclone (rclone.conf):
- Create/update rclone.conf with the Client ID and Client Secret above.
- Launch the OAuth browser flow so I can authorize my Google account.
3. Build the high-speed mount script (.bat):
- Include these mount flags:
* --network-mode with --volname "\\gdrive-remote\Google Drive"
* --cache-dir pointing to the local cache directory
* --vfs-cache-mode full
* --vfs-cache-max-size 10G and --vfs-cache-max-age 12h
* --vfs-read-chunk-streams 8 and --vfs-read-chunk-size 16M
* --vfs-read-ahead 128M and --drive-chunk-size 128M
* --vfs-refresh and --dir-cache-time 72h
* --vfs-links and --vfs-fast-fingerprint
* --server-side-across-configs
- (Note: do not pass --log-rotate on rclone 1.76.0)
4. Configure silent background startup:
- Create a VBScript wrapper (mount-gdrive.vbs) plus a Startup shortcut or Task Scheduler entry so it mounts silently on Windows login.
5. Launch & benchmark:
- Start the mount immediately and report read/write throughput checks.

Real-World Gotchas the Prompt Doesn’t Warn You About#

Deploying this on an actual Homelab machine surfaced five practical edge cases:

Issue EncounteredRoot Cause / SymptomWorking Fix
HTTP 403 (API has not been used / access_denied)Google Drive API wasn’t enabled yet, or the login email wasn’t listed under Test usersEnable drive.googleapis.com and add the target Google account under Test users before running OAuth.
rclone mount Exits Immediately (Code 2)--log-rotate is not supported in rclone 1.76.0Remove --log-rotate from the mount script (and note rclone purge rejects --force).
winget Fails with GitHub 504Upstream package mirror timed out during automated installDownload rclone 1.76.0 and WinFsp 2.1 directly (verifying the NAVIMATICS LLC publisher signature).
Get-Volume -DriveLetter G Throws Errors--network-mode exposes G: as a network filesystem proxy rather than a physical disk volumeUpdate health scripts (check-gdrive.ps1) to use Get-PSDrive G or Test-Path G:\.
Testing-Mode OAuth Tokens Expire Every ~7 DaysKeeping the GCP OAuth app in Testing mode avoids needing public homepage/privacy policy URLsRun a lightweight watchdog to alert ahead of expiry, then run rclone config reconnect mygdrive: (~30s).

Important caveats: Because --dir-cache-time 72h caches directory listings aggressively, deletions made in the Google Drive web UI won’t disappear from G: until remounting. Also keep actively written SQLite databases and .git repositories on local SSD rather than on G:.


Measured Benchmarks#

MetricMeasured on Windows 10 Homelab
Active Capacity (1 Account)5,120 GB (5 TiB) (scales to 20TB with 4 accounts)
Download Throughput~34 MB/s (275 Mbps)
Upload Throughput~10.0 MB/s (80 Mbps — home ISP upload cap)
Memory Usage (rclone.exe)~48 MB RAM
OAuth Reconnect Overhead (Testing Mode)~30 seconds every ~7 days
Goodbye Physical NAS? Turning Google Drive into a 5TB Virtual Drive (20TB-Ready) with rclone + WinFsp
https://www.chinnakrit.dev/posts/cloud-nas-20tb-windows/
Author
chinnakrit
Published
2026-11-13
License
CC BY-NC-SA 4.0
© 2026 chinnakrit
RSS / Sitemap
Powered by Astro & Fuwari
© 2026 chinnakrit
RSS / Sitemap
Powered by Astro & Fuwari