Skip to content
MCU Atlas

ESP32NFS — your dev board is a tiny server

ESP32NFS turns an ESP32 or Pico W into an NFSv3 file server: mount the board's flash or SD card from Linux or macOS and copy files like any network drive.

Difficulty:BeginnerSource available

What it is

ESP32NFS turns an ESP32 or Pico W into an NFSv3 file server: mount the board's flash or SD card from Linux or macOS and copy files like any network drive.

What you need

  • An ESP32 dev board (or a Raspberry Pi Pico W / Pico 2 W) any Wi-Fi ESP32-family board works; the Pico route needs the Arduino-Pico core
  • A USB data cable some cables only carry power — the first flash needs data
  • Optionally a microSD card and microSD card breakout (SPI) only for the SD-export route; the internal-flash path needs nothing but the board
  • A Linux or macOS computer on the same Wi-Fi network the client that mounts the board's export

How hard

Beginner — Arduino IDE only: Boards Manager, Library Manager, Add .ZIP Library, upload, then one terminal mount command. No soldering; the whole build is software.

Key Facts

  • NFSv3 and MOUNT v3 file server over TCP on port 2049 — mount it from Linux or macOS with one command; no NFSv4, no file locking (mounts use nolock), and no authentication, so exports are trusted-LAN-only
  • Storage backends export side by side: LittleFS internal flash, FAT32/exFAT SD cards through SdFat, a volatile RAM namespace, and a read-only ROM namespace (/, /sd, /flash, /ram, /rom)
  • Runs on every ESP32-family chip (ESP32, S2, S3, C2, C3, C5, C6, C61, H2, P4) plus Pico W and Pico 2 W — the ESP32 route is the documented Arduino-IDE path, the Pico route uses the Arduino-Pico core
  • CI is real: the release job runs real SdFat image filesystems with an independent libnfs client on Linux — the firmware is exercised against a genuine NFS client, not just compiled
  • Current release v1.3.0 (October 2026); MIT license with clean dependency attribution in NOTICE.md
  • Server limits by design: 4KiB default transfer payload (runtime-configurable to 16KiB), two default TCP connections, cooperative polling from the application loop
  • Young project: first published 2026-10-12 by a single author, no issue history — no community track record yet, worth watching

About This Project

Your dev board is a tiny server. Not a web page bolted onto a sketch — a real file server speaking a protocol your computer already understands. ESP32NFS, by Yitao Jiang, implements NFSv3 on ESP32 and Raspberry Pi Pico W boards, so the storage on a hobby dev board appears on your Linux or macOS desktop exactly like a network drive from a NAS. The maker's own one-liner is precise: "NFSv3 file sharing for ESP32 and Raspberry Pi Pico W. Share SD cards, internal Flash, RAM and firmware assets over Wi-Fi through a common storage interface." No app, no upload button, no card reader: you mount the board, and cp, ls, your file manager and your scripts just work.

(Credit where due: MCU Atlas is not affiliated with the project.)

What it does

ESP32NFS runs an NFSv3 and MOUNT v3 server over TCP on the board, with file access from Linux and macOS. "The server uses TCP port 2049 for both NFS and MOUNT", so one mount command connects your computer straight to the board. The library maps each storage backend to a named export, and several live side by side: internal flash as LittleFS, a FAT32 or exFAT SD card through the SdFat library, a volatile RAM namespace, and a read-only ROM namespace that ships a welcome.txt. The MappedVolumes example exports two SD partitions, RAM and ROM at once, at paths your computer mounts individually — ESP32_IP:/sd, :/flash, :/ram or :/rom.

CI builds for every ESP32-family chip (ESP32, S2, S3, C2, C3, C5, C6, C61, H2 and P4) plus Pico W and Pico 2 W, and the release job "runs real SdFat image filesystems with an independent libnfs client on Linux" — the firmware is exercised against a genuine NFS client, not just compiled.

Why we like it

Two reasons this page exists. First, it is the clearest introduction to networking on microcontrollers we have come across: instead of teaching sockets, HTTP handlers and JSON, it makes the board a network peer you can see with the tools you already use. Mount a board's filesystem and drag a file out of your file manager, and the idea that the board is one more device on your network clicks in a way no LED-over-Wi-Fi demo manages. Second, it is a practical companion to our data-logging projects. An energy meter, a weather station or a sensor node writing CSV logs to flash or SD gains an offload step: mount the board, copy the logs with your normal tools, unmount, done — no serial console, no pulling the card, no custom upload sketch.

What you need

The short version: one board, one cable, one Wi-Fi network, and a Linux or macOS computer. An ESP32-DevKitC (ESP32-WROOM-32) or any Wi-Fi ESP32-family dev board is the documented Arduino path; a Raspberry Pi Pico 2 W works too, with the Arduino-Pico core and a filesystem partition scheme chosen for LittleFS. Add a microSD card (8-32 GB) and a microSD card breakout (SPI) only if you want the SD-export route — the internal-flash path needs nothing but the board. A USB data cable for flashing (some cables only carry power). And Wi-Fi, with the board and your computer on the same network. Nothing is soldered; the whole build is software.

Getting started

Five steps, all inside the Arduino IDE plus one terminal command. Install the esp32 board package by Espressif Systems through Boards Manager, and SdFat 2.3.0 through Library Manager. Download ESP32NFS-1.3.0.zip from the Releases page, and add it with Sketch, Include Library, Add .ZIP Library. Open File, Examples, ESP32NFS, LittleFSShare; put your Wi-Fi credentials in the sketch, pick your board and upload. Open the serial monitor at 115200 baud and read the IP address the sketch prints. Then, on your Linux or macOS box, mount the board's export — the exact commands, verbatim from the README, are in the tutorial below; they pass vers=3, TCP, port 2049 and the nolock option, and point at the IP you just read. First boot of an empty LittleFS partition wants FormatOnMountFailure set to true; set it back afterwards.

What you'd use it for

Offloading sensor logs is the headline: a logger writes to flash or SD, you mount the board once a week and copy the CSVs off with rsync or the file manager. Dropping files onto the board is the mirror image — firmware assets, config files or lookup tables land without a re-flash. The ROM namespace ships readable firmware documentation with the device. And because any Linux or macOS box can mount it, one board with an SD card becomes a small shared drive for a bench of machines, or a way to move data into an old laptop with no card reader.

Where it falls short

Be clear about what this is: NFSv3 only, no NFSv4. There is no file locking; the mount commands require the nolock option, so two computers writing the same file at once is on you. The documentation describes no authentication at all, so treat every export as trusted-LAN-only: fine at home, not for a network you share with strangers. The default transfer payload is 4KiB (configurable at runtime to 16KiB), the default server allows two TCP connections, and the server is cooperative — it does work when the sketch calls its poll function in the loop, not on its own thread, so a busy sketch slows the server down. RAM exports are volatile — "RAM data lives for the current firmware session, and NFS writes use UNSTABLE semantics" — and ROM is read-only by design. Throughput is bounded by Wi-Fi and TCP; the performance doc says meaningful buffer tuning needs a source-built ESP-IDF SDK rather than stock Arduino builds. And the media rule from the API guide: "Stop the server before changing the physical media or remounting a filesystem" — unmount before you pull the SD card.

State of the project

A young one, and the page should say so plainly: ESP32NFS was first published in October 2026 and is maintained by a single author. The repo is MIT-licensed with clean dependency attribution, its claims are modest and specific, its issue tracker has no history yet — meaning no community track record, not necessarily no problems — and its CI is real: the full platform matrix plus a Linux NFS client (libnfs) exercised against the firmware on every release. What nobody has yet is independent, on-hardware user reports; the interop evidence is the author's own CI. Our read: a promising young project, early days, worth watching.

The honesty split

What we verified (2026-11-29, GitHub REST API plus raw fetches of the README, docs, LICENSE, NOTICE and library.properties at main): the repo is live and MIT-licensed, 74 source files are present, releases v1.0.0 through v1.3.0 exist with a checksummed zip, the CI record shows green runs including the libnfs interop job, and every protocol and mount claim quoted above matches the maker's own documentation byte for byte. What we did not do: run the firmware on hardware, mount a board, or measure throughput — every performance characteristic is the documentation's, attributed as such. Methodology one-liner: repo verified via GitHub API and raw document fetches, 2026-11-29; no hardware in this lane.

MCU Atlas is not affiliated with ESP32NFS or Yitao Jiang; this is independent maker coverage.

Source & Attribution

Source: GitHub
License: MIT — verified from the LICENSE file fetched raw (standard MIT text, "Copyright (c) 2026 ESP32NFS contributors"); dependency attribution in NOTICE.md
Last verified: 11/29/2026
ESP32NFS — your dev board is a tiny server

Illustration

How to Build It

Five steps inside the Arduino IDE plus one terminal command: install the board package and library, flash the LittleFSShare example, read the board's IP from the serial monitor, and mount its export from Linux or macOS. The mount commands are verbatim from the README.

Parts Needed

  • An ESP32 dev board — or a Raspberry Pi Pico W / Pico 2 W (the Pico route needs the Arduino-Pico core)
  • A USB data cable (some cables only carry power — the first flash needs data)
  • Optionally a microSD card (8-32 GB) and a microSD card breakout (SPI) — only for the SD-export route; the internal-flash path needs nothing but the board
  • Wi-Fi, with the board and your computer on the same network
  • A Linux or macOS computer to mount the export

Steps

  1. 1

    Install the toolchain

    In the Arduino IDE, install esp32 by Espressif Systems through Boards Manager, and SdFat 2.3.0 through Library Manager. The Arduino CLI route is arduino-cli lib install '[email protected]'.

  2. 2

    Add the library

    Download ESP32NFS-1.3.0.zip from the Releases page (asset is 195,160 bytes with SHA256SUMS provided), then Sketch, Include Library, Add .ZIP Library. The CLI route needs ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --zip-path ESP32NFS-1.3.0.zip.

  3. 3

    Open the example and set credentials

    File, Examples, ESP32NFS, LittleFSShare. Put your Wi-Fi credentials in the sketch (NFS_EXAMPLE_SSID and NFS_EXAMPLE_PASSWORD, per the getting-started doc). On first boot of an empty LittleFS partition set FormatOnMountFailure to true, and back to false afterwards. Select your board and upload.

  4. 4

    Read the board's IP

    Open the serial monitor at 115200 baud; the sketch prints the export address once it joins Wi-Fi.

  5. 5

    Mount on Linux

    sudo mkdir -p /mnt/esp32 then sudo mount -t nfs -o vers=3,proto=tcp,port=2049,mountport=2049,nolock ESP32_IP:/ /mnt/esp32 — replace ESP32_IP with the address the sketch printed. Both commands are verbatim from the README.

    Diagram: board storage (LittleFS flash, FAT32/exFAT SD, RAM, ROM) flows into the ESP32/Pico W running an NFSv3 + MOUNT v3 server on TCP port 2049, over WiFi through a router to a laptop where the exports mount like a normal network drive.
    Diagram: MCU Atlas — the board's storage exports through the NFSv3 server on TCP port 2049, over Wi-Fi, to the computer that mounts it.
  6. 6

    Mount on macOS

    mkdir -p ~/mnt/esp32 then mount_nfs -o vers=3,tcp,port=2049,mountport=2049,nolocks ESP32_IP:/ ~/mnt/esp32 — verbatim from the README.

  7. 7

    Browse the other exports

    For the ROM namespace add ro to the mount options and mount ESP32_IP:/rom; use a read-only mount when browsing the RAM export from an OS client (getting-started doc).

  8. 8

    Map multiple volumes

    The MappedVolumes example exports two SD partitions plus RAM and ROM; clients mount ESP32_IP:/sd, :/flash, :/ram or :/rom directly (README, Map multiple volumes).

    Diagram: the five export paths (/, /sd, /flash, /ram, /rom) and the exact Linux and macOS mount commands in a terminal window, with a coral cursor on the prompt line.
    Diagram: MCU Atlas — the five export paths and the exact Linux and macOS mount commands, verbatim from the README.
  9. 9

    Stop the server before media changes

    Stop the server before changing the physical media or remounting a filesystem (docs/api.md) — unmount before you pull the SD card.

Bill of Materials

Parts list

5 parts · 3 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

No verified link — check the original project
No verified link — check the original project
Download CSV

Related Projects

SparkFun OpenLog: Arduino-compatible data logger
Illustration
ARDUINOATMEGA328P
SparkFun OpenLog is a tiny ATmega328-based data logger: anything sent over serial lands on a microSD card — no host code to write before you start logging.
Beginner·Code
2 parts listed
CircuitSetup 6-channel ESP32 home energy meter
Illustration
ESP32
An open-hardware ESP32 board that measures up to 6 circuits (expandable) with CT clamps, works with ESPHome and Home Assistant.
Advanced·Code
5 parts listed
Low-power ESP32 e-paper weather display (7.5in)
Illustration
ESP32
A 7.5in e-paper weather display that mounts on the wall and runs for months on one charge — an ESP32 wakes, fetches the forecast, updates the screen and sleeps.
Intermediate·Code
7 parts listed