# Recovering/undeleting short deleted files in 50 SLOC of pure C, any filesystem supported.

DevFeed: [Recovering/undeleting short deleted files in 50 SLOC of pure C, any filesystem supported.](<https://devfeed.tech/articles/recovering-undeleting-short-deleted-files-in-50-sloc-of-pure-c-any-filesystem-supported-20584.md>)

Original publisher: [Read original article](<https://yurichev.com/blog/undelete/>)

Published: 2025-10-13T22:00:00Z

Content type: tutorial

Language: en

Sources: [Dennis Yurichev](<https://devfeed.tech/sources/dennis-yurichev.md>)

Topics: [C](<https://devfeed.tech/topics/c.md>), [OpenSSH](<https://devfeed.tech/topics/openssh.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Bitcoin](<https://devfeed.tech/topics/bitcoin.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>)

Tags: [bitcoin](<https://devfeed.tech/tags/bitcoin.md>), [bug](<https://devfeed.tech/tags/bug.md>), [c](<https://devfeed.tech/tags/c.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [files](<https://devfeed.tech/tags/files.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [linux](<https://devfeed.tech/tags/linux.md>), [openssh](<https://devfeed.tech/tags/openssh.md>), [private-key](<https://devfeed.tech/tags/private-key.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>)

## AI overview

This article presents a small pure-C utility for recovering short deleted files by scanning storage for known file headers or boundary strings. It describes recovering data from Linux ext4 SSDs, virtual-machine images, and RAM save files, and notes that deleted OpenSSH keys and Bitcoin wallets may be identifiable. It recommends secure deletion and filesystem encryption to reduce recovery risk.

## Source excerpt

Recovering/undeleting short deleted files in 50 SLOC of pure C, any filesystem supported.