Power Cuts and File Integrity: Storage for Kiosks and Signage

Why files break when a kiosk or signage player loses power mid-write, how device design and media share the fix, and how to test for it.

Power Cuts and File Integrity: Storage for Kiosks and Signage

この記事は英語でご覧いただけます。

A kiosk that loses power in the middle of a write does not simply restart. It restarts with a file that only half exists, where a directory entry points at nothing and an image fails its checksum. None of that is random, and rarely is it the fault of one component. It is the predictable result of an interrupted write landing on storage that was never told the power was going away.

The devices in scope run unattended: self-service terminals, signage players, queue-ticket machines, advertising displays and access-control panels. Three questions decide the outcome: why the file breaks, which side of the interface owns which part of the fix, and how to prove it before shipping.

What an Interrupted Write Leaves Behind

A file is never written in one step: the data blocks go down first, and the metadata that records where they live follows after. Cut the power between those steps and the name exists while the content does not. Cut it inside a single block and that block holds neither the old value nor the new one.

Flash adds a second layer of exposure. The controller translates a logical address into a physical page through the flash translation layer (FTL), and keeps that map in fast working memory. An interruption during a map update can strand pages the map no longer references, or reference pages that were never fully programmed. Neither fault shows at the next boot until something reads that region.

Which Side Owns Which Part of the Fix

The split is simple: the device controls when and how it writes, and the medium controls what it does with a program operation already in flight.

The Repair Path the File System Runs

Many kiosk images ship with a file allocation table (FAT) family file system, because it is simple and widely readable. That simplicity is the limit: FAT keeps no journal, so repair at mount time can only scan and truncate. A journaling file system records intent before it writes, so a broken transaction is discarded rather than half applied. Choosing the file system is a device decision, and usually the largest lever available.

What the Controller Cannot Promise

A removable card carries no energy of its own. Without hold-up capacitance on the device, the controller has microseconds to protect its own map and no time to invent data the host never flushed. A buyer who expects the card to rescue an unflushed write buffer will be let down eventually; the media is not at fault.

Designing the Device So a Cut Is Boring

Write Less Often, and Write Atomically

Three habits remove most of the exposure. Reduce write frequency: batch telemetry, rotate logs on a size threshold rather than on every event, and hold transient state in memory until it is worth keeping. Write atomically: create a temporary file, flush it, then rename it over the old one. A reader then sees the previous version or the new one, never a mixture. Keep a known-good configuration snapshot and roll back to it when validation at boot fails.

Read-Only Mode and Cache Policy

On read-mostly signage, mount the content partition read-only and leave only the playlist pointer writable. Disable write-back caching on the partitions that hold state, and flush at defined checkpoints. A supercapacitor sized to cover one flush is a more practical answer than a battery, and turns an uncontrolled cut into a managed one.

Choosing Media for an Unattended Enclosure

The media decision follows the duty cycle. A player that reads a fixed playlist and writes an occasional log line puts almost no stress on the medium, and for that device most cards will do. A terminal that rewrites a local database every few seconds needs firmware that handles an interrupted program gracefully, plus a device that notices a failing unit early.

For content moving into a sealed unit, a TF card such as TFU3320 remains the simplest way to carry assets. The card is field-replaceable, and a boot image can be cloned before dispatch. For engineers carrying updates between machines, a metal-bodied drive such as FD2005 suits toolbag life in the field. Where spare media is labelled and tracked per site, FD1006 provides a label surface a plain drive lacks.

Acceptance Testing: Repeat the Failure on Purpose

A single graceful shutdown test proves nothing about power loss. The test that matters removes power at the most damaging instant many times over, then asks whether the device still boots and whether the data is correct.

Building a Cut Cycle That Means Something

Interrupt at randomised offsets inside a write rather than at fixed points, because fixed points get missed by luck. Verify with a checksum of the whole store, not a file count. Record boot time and recovery messages after each cut. Repeat the run at the hot and cold ends of the deployment range, then on a second supplier's media. Behaviour during an interrupted program is firmware-specific and invisible on a datasheet.

Test dimensionWhat to varyWhat counts as a pass
Timing of the cutRandom offsets inside a write, not between filesEvery recovery ends in a mountable store
RepetitionEnough cycles to reach steady stateBoot success holds across the run
Data checkFull-store checksum after each recoveryContent matches the last committed state
Metadata stressCuts during directory updates and renamesNo orphan entries, no zero-length files
Recovery pathBoot from the last known-good snapshotDevice returns to service unaided
Media swapSame cycles on a second supplier's mediaComparable outcome, written down

Field Rules for Media Replacement

A written procedure is worth more than a good card: power the unit down, and never pull media during a write. Clone the approved image rather than copying files across. Verify the checksum on the bench, and log which media went in. Keep one approved spare per site, so a swap stays a swap.

Where a device reports its own health, read the self-monitoring, analysis and reporting technology (SMART) data at each service visit, and replace on trend rather than on failure.

What to Confirm With a Supplier

Ask four things, and ask for them in writing. How does the firmware behave when a program operation is interrupted, and is that behaviour documented rather than described? Does a product change notification (PCN) arrive before a controller or firmware change, since a silent change resets all your test evidence? Do units from one lot behave the same way under your cut cycle? And will the supplier run your cycle on your device before you commit to a volume?

A supplier who answers those in writing is easier to work with than one who answers with adjectives. The right part is the one whose failure mode you have already seen in your own lab.

Shenzhen LingC Industrial Co., Ltd. supplies card readers, internal SSD, memory cards, portable SSD, USB flash drives, and USB hubs & docks. Send your device duty cycle and power-loss constraints to Cherie at Cherie@lingctech.com, and we will confirm which media fits your programme.

この記事も lingctech.com のブログに公開しています。元記事を見る

関連モデル

本記事で触れているモデル

TFU3320 ウルトラスピードTFカード

メモリーカード

TFU3320

ウルトラスピードTFカード

インターフェース
TF
容量
64GB~512GB
速度
Up to 250MB/s read
量産中
仕様書はお問い合わせください詳細を見る
FD2005 USB 3.2メタルスイベルメモリ

USBメモリ

FD2005

USB 3.2メタルスイベルメモリ

インターフェース
USB 3.0
容量
32GB~512GB
速度
—
量産中
FD1006 ラベル付きUSBメモリ

USBメモリ

FD1006

ラベル付きUSBメモリ

インターフェース
USB 2.0
容量
4GB~64GB
速度
—
量産中

本記事の製品をご検討中ですか?

型番と数量をお送りいただければ、1-2 営業日で価格・納期・サンプルのご案内をいたします。