Published: September 15, 2026 | Category: Technical Guide | QSCompute
An unattended industrial PC loses power. It comes back with a corrupt root filesystem, a 90-second fsck and a logger that will not mount. The drive gets the blame, and often the drive is innocent: the real cause is a journaling filesystem tuned for spinning disks being asked to run on flash with default mount options. Filesystem and mount-option choice is one of the few genuinely free reliability wins at the edge — it costs a line in /etc/fstab and buys years of uptime.
Four properties decide the choice, and they trade against each other:
| Filesystem | Design | Power-loss behaviour | Flash awareness | Best fit |
|---|---|---|---|---|
| ext4 | Journaling, in-place | Journal replay, seconds; well understood | Generic; needs explicit discard | The safe default for industrial SSD and NVMe |
| f2fs | Log-structured, flash-aware | Roll-forward recovery, fast mount after cut | Native — built for NAND, TRIM-aware, cleansing on idle | eMMC, microSD, small industrial flash |
| btrfs | Copy-on-write, checksums | Always consistent, but fsck can be slow | Good — discard and SSD-aware allocation | Snapshot/rollback and bit-rot checking on NVMe |
| xfs | Journaling, extent-based | Journal replay, very fast | Generic; allocate carefully | Large sequential media and video archives |
| UBIFS / JFFS2 | Raw MTD, no FTL | Designed for it | Native, wear-leveling in the filesystem | Raw NAND and small NOR boot partitions |
The short version: ext4 is the correct default for systems where operators need familiarity and repair is a known quantity. f2fs is the correct choice when the storage is eMMC, microSD or a modest industrial SSD and the box may lose power at any moment — it was designed by Samsung for exactly this and its roll-forward recovery means a cut mid-write costs a mount, not a repair. btrfs earns its complexity when you want snapshots for OTA rollback or checksums that catch silent corruption. xfs shines on large sequential streams — the classic case being a video archive — and is a poor fit for millions of tiny files on a small flash device.
Most field failures come from defaults, not from the wrong filesystem. These are the options worth an explicit decision on every industrial image:
| Option | Effect | Recommendation at the edge |
|---|---|---|
data=ordered (ext4) | Data written before metadata commits | Keep — the default, and the right durability/latency trade |
commit=60 (ext4) | Journal flush interval, default 5 s | Raise to 30–60 s for a lighter write load; keep 5 s if a cut must not lose recent records |
discard vs fstrim.timer | Per-delete hint vs batched | Prefer the timer — batched TRIM avoids I/O stalls on consumer-grade controllers |
noatime | Stops access-time metadata writes | Always on. Cheap, and removes a steady drip of writes |
errors=remount-ro | Detects inconsistency, goes read-only | Preferred over panic on devices with a remote operator |
compress (f2fs/btrfs) | Fewer bytes to NAND | Worth enabling on log-heavy partitions; costs CPU |
gc_urgent triggers (f2fs) | Forces background cleaning | Tune so cleaning happens in idle windows, not during capture |
One more pattern deserves its own heading, because it removes the entire class of problem.
For appliances that should never corrupt — gateways, HMI panels, cameras, anything bolted to a wall — mount the root filesystem read-only and place a small writable overlay on a separate partition. The OS image becomes immutable, power loss cannot damage it, OTA becomes "swap the overlay-free partition and reboot," and the only writable surface is a bounded data partition you sized deliberately.
A workable arrangement:
/etc and service state, on f2fs with aggressive cleaning./tmp and /var/run, so transient writes never reach flash.Combined with a real-time clock that survives the cut, this pattern turns "did the filesystem survive?" into a design question you answer once, rather than an incident you investigate repeatedly.
noatime, a considered commit=, and a discard strategy. Do not ship distribution defaults to a field device.lsblk -D and confirm with SMART counters after a trim cycle.QSCompute supplies the wide-temperature industrial SSDs, eMMC and NVMe modules these designs run on, along with the fanless industrial PCs, ARM gateways and Jetson edge systems around them — specified against your workload, power environment and service life, with DDP shipping to 85+ countries.
Designing storage for an unattended edge device?
Send us your media type, write profile and power environment — our engineers return a filesystem, partition and hardware recommendation that survives the power cut and the five-year service life.
Contact: +86 137-1464-6179 | info@qscompute.com