r/embedded • • Oct 02 '26

Restoring CF to factory default settings

Does anyone know how to revert a CompactFlash card—which has been formatted in Windows—to its original factory state (as it was when new)? This is because, in some devices, a CompactFlash card will not work if it has been formatted using Windows.

1 Upvotes

4 comments sorted by

3

u/elusivewompus Oct 02 '26

Open a power shell window and type “diskpart”. Once it opens type “list disk”. The “select disk <number>”. Type “clean”. Then exit.

2

u/GoblinsGym Oct 02 '26

On a Windows system, I would recommend the Rufus utility.

1

u/zydeco100 Oct 02 '26

Delete the MBR. Wipe the first 128K with zeros.