# Reflota: 손상된 디스크의 파일 복구
# Reflota: file recovery for damaged disks

- Site: https://select1.dev/2026-11-14 (English), https://select1.dev/ko/2026-11-14 (Korean)
- Entry: 035
- Published: 2026-11-14 (KST). Launch date: 2026-11-13
- Pick: Reflota <https://github.com/Christ10-8/reflota> (source: Show HN)
- Verified: ran
- What: Reflota 는 고장 난 디스크, USB 메모리, 메모리 카드에서 지워진 파일과 읽을 수 없게 된 파일을 되살리는 프로덕트다.
- What (en): Reflota is a product that brings back deleted and unreadable files from broken disks, USB drives and memory cards.
- Why: 오늘의 픽으로 선정한 이유는 파일 복구에 쓰던 여러 도구를 프로그램 하나로 대신하기 때문이다.
- Why (en): It is today’s pick because one program replaces several tools that people use to recover files.
- Verdict: 작동한다. 지워진 파일도, 빠른 포맷 뒤에 남은 사진도 원본과 같게 되살렸다.
- Verdict (en): It works. Deleted files came back identical to the originals, and so did a photo from a quick-formatted image.
- Tags: data-recovery, ntfs, fat32, python, windows

## Checked against the README

- [pass] 지워진 파일도 찾는다(También encuentra archivos borrados) — FAT32 이미지에서 파일 2개를 Windows 와 같은 방식으로 지운 뒤 --ls --borrados 를 실행하자, 두 파일이 원래 이름으로 표시됐다. --copiar 로 복구한 파일의 md5 는 원본과 같았다
- [pass] 원본 디스크에는 쓰지 않는다(nunca escribe en el disco de origen) — 목록과 복구를 실행하기 전과 후에 이미지의 md5 가 같았다
- [pass] 내용으로 찾은 파일은 구조를 읽어 정확한 길이로 자른다(El largo exacto de cada archivo se calcula leyendo su estructura) — 빠른 포맷으로 이미지의 루트 디렉터리를 비운 뒤, Reflota 가 이미지에 들어 있던 JPEG 1개를 찾았다. 찾은 파일은 길이가 1,115,913바이트로 원본과 같았고, md5 도 같았다

## Measured

- 64 MB 이미지 전체에서 파일을 내용으로 찾는 시간: 0.64초, JPEG 1개 (빠른 포맷을 한 64 MB FAT32 이미지를 대상으로 Reflota 의 carve 함수를 직접 호출해 실행 시간을 측정했다. CLI 에는 이 기능의 옵션이 없다)

## Progress (days after launch; full history https://select1.dev/2026-11-14/progress)

- day 3 (checked 2026-11-16) [some] commits since launch 1, stars 26, releases 1, contributors 1, last commit 2026-11-13
- day 7 (checked 2026-11-20) [quiet] commits since launch 1, stars 29, releases 1, contributors 1, last commit 2026-11-13
- day 15 (checked 2026-11-28) [quiet] commits since launch 1, stars 29, releases 1, contributors 1, last commit 2026-11-13

## 한국어

## 무엇이 문제인가

디스크가 고장 나거나 파일을 실수로 지워도, 데이터는 디스크에 남아 있는 경우가 많다. 파일의 위치를 기록한 파일 시스템의 테이블만 지워지거나 손상되기 때문이다. 이런 파일을 되살리는 무료 도구로는 TestDisk 와 PhotoRec 이 널리 쓰인다. 공식 문서에 따르면 TestDisk 는 손실된 파티션과 지워진 파일을 복구한다. PhotoRec 은 파일 시스템의 정보를 사용하지 않고 디스크의 데이터에서 직접 파일을 찾는다.

읽기 오류가 발생하는 디스크는 먼저 디스크 이미지 파일로 복사한 뒤 복사본에서 작업하는 것이 안전하다. 이 복사에는 GNU ddrescue 같은 도구를 따로 쓴다. 그래서 상황에 따라 다른 프로그램을 골라 써야 한다.

## 어떻게 해결했나

Reflota 는 2026년 11월 13일 Hacker News 에 Show HN 글로 올라왔다. 제작자 Christian 은 상용 프로그램을 구매하지 않고도 데이터를 복구하고 싶어서 만들었다고 밝혔다.

Reflota 는 디스크를 직접 읽어 파일 목록을 다시 만든다. NTFS 에서는 파일 목록을 기록한 테이블 전체를 읽고, FAT 과 exFAT 에서는 폴더 구조와 클러스터의 연결 순서를 따라간다. 지워진 파일도 원래 폴더에 표시하고 얼마나 온전한지 알려 준다. 파일 시스템이 손상됐으면 파일 카빙으로 사진, 문서, 압축 파일을 찾는다. 손실된 파티션도 찾는다. 읽기 오류가 발생하는 디스크는 정상적으로 읽히는 영역부터 디스크 이미지 파일에 복사하고, 오류가 발생한 영역은 나중에 다시 읽는다.

## 무엇이 다른가

첫째, 쓰는 프로그램의 수가 다르다. 지금은 위에서 말한 TestDisk, PhotoRec, ddrescue 를 상황에 따라 따로 쓴다. Reflota 는 파티션 복구, 파일 복구, 디스크 이미지 복사를 창 하나에서 처리한다. README 에 따르면 창에는 디스크, 파티션, 폴더가 트리로 표시된다. 사용자는 복구할 항목을 체크한 뒤 저장할 폴더를 고른다. 다만 README 에 따르면 제작자는 최근에 추가한 기능을 실제 디스크에서는 시험하지 않았다. 시험하지 않은 기능은 FAT16 지원, 조각난 JPEG 재구성, 위에서 말한 단계별 디스크 복사다.

둘째, 실행 환경이 다르다. 공식 문서에 따르면 PhotoRec 은 여러 운영체제에서 실행된다. Reflota 의 제작자는 Windows 용 실행 파일을 배포한다. README 에 따르면 이 파일은 설치나 Python 없이 실행된다. 디스크 목록을 읽는 코드는 Windows API 를 사용한다. 오늘은 Linux 에서 소스 코드를 Python 으로 실행하고, 디스크 이미지 파일에서 파일을 복구했다.

## 어떻게 만들었나

- 저장소에는 2026년 11월 13일에 만든 커밋 1개만 있다. 커밋 메시지는 "Reflota 0.1.0" 이다.
- 프로그램은 6,812줄짜리 Python 파일 하나이고, 표준 라이브러리만 사용한다. 화면은 tkinter 로 만들었다.
- tests 폴더에 시험 스크립트 13개가 있다. 시험용 FAT 이미지를 만드는 코드와, 화면 없이 창의 동작을 시험하는 tkinter 스텁이 들어 있다.
- README 는 스페인어로 쓰였고, 끝에 영어 요약이 있다.

## 실행해 보니

Linux 에서 저장소를 클론하고, Reflota 의 시험 스크립트와 CLI 를 실행했다. 디스크 대신 직접 만든 64 MB FAT32 이미지 파일을 썼다.

1. 시험 스크립트. 13개 가운데 12개가 통과했다. 창 배치를 확인하는 시험 1개는 오늘 사용한 Linux 컴퓨터에 tkinter 가 설치돼 있지 않아 건너뛰었다. 조각난 JPEG 24개를 재구성하는 시험은 190초 걸렸다. Reflota 는 그중 20개를 원본과 같게 복원했다. 시험 스크립트는 복원한 파일 수를 출력할 뿐, 나머지 4개를 실패로 처리하지 않았다.
2. 지워진 파일. Reflota 의 시험 코드 대신 pyfatfs 라이브러리로 이미지를 만들고 파일 4개를 넣었다. 그중 2개는 Windows 가 파일을 지울 때처럼 디렉터리 항목에 삭제 표시를 하고 클러스터 체인을 지웠다. `--ls --borrados` 의 출력에는 지워진 vacaciones.jpg 와 borrar_me.txt 가 원래 이름으로 표시됐다. vacaciones.jpg, borrar_me.txt 와 남아 있던 informe.bin 을 `--copiar` 로 복구하자, 세 파일 모두 md5 가 원본과 같았다. 실행 전후 이미지의 md5 도 같았다.
3. 포맷한 뒤. 빠른 포맷으로 이미지의 루트 디렉터리를 비우고, Reflota 의 파일 카빙 함수를 직접 호출했다. CLI 에는 이 기능의 옵션이 없다. carve 함수는 0.64초 만에 64 MB 이미지에 들어 있던 JPEG 1개를 찾았다. 찾은 파일의 길이와 md5 는 원본과 같았다.
4. 조각난 파일. 두 조각으로 나뉘어 저장된 파일을 지운 뒤 복구하자, md5 가 원본과 달랐다. 지워진 파일은 클러스터 체인이 남아 있지 않아, Reflota 는 이 파일이 연속된 클러스터에 저장됐다고 가정했다. 그래서 이 파일을 PARCIAL(부분)로 표시하고, 그 이유를 로그에 기록했다.

```text title="터미널, reflota.py --copiar /d.bin --borrados"
Listo: {'ok': 0, 'parcial': 1, 'saltado': 0, 'fallo': 0, 'bytes': 150000, 'omitidos': 0}
$ cat recuperacion_log.csv
2026-11-13 20:53:51,PARCIAL,/d.bin,se asumio archivo contiguo; borrado: 33% de los clusters sin reutilizar
```

## 판정

작동한다. 지워진 파일도, 빠른 포맷 뒤에 남은 사진도 원본과 같게 되살렸다. 다만 두 조각으로 나뉘어 저장된 파일은 지운 뒤 복구하자 원본과 내용이 달랐다. Reflota 는 이 파일을 부분 복구로 표시했다. USB 메모리나 메모리 카드의 파일을 되살려야 하는 경우에 써 볼 만하다.

## 얻어갈 것

- 정확한지 확신할 수 없는 결과는 따로 표시하고 이유를 기록하자. Reflota 는 조각난 파일을 PARCIAL 로 표시했다. 로그에는 이 파일이 연속으로 저장됐다고 가정했다는 이유를 기록했다.
- 디스크를 읽기만 하는 도구는 원본을 바꾸지 않는지 시험하자. 실행 전과 후에 디스크나 이미지의 해시를 비교하면 된다. 오늘 Reflota 로 목록과 복구를 실행한 뒤에도 이미지의 md5 는 그대로였다.

### 용어

- 클러스터: 파일 시스템이 디스크 공간을 할당하는 단위. 큰 파일은 클러스터 여러 개에 저장된다. FAT 파일 시스템은 파일마다 클러스터가 이어지는 순서를 테이블에 기록한다.
- 파일 카빙: 파일 시스템의 기록 없이, 디스크의 데이터에서 파일 형식마다 정해진 시작 바이트와 구조를 찾아 파일을 되살리는 방법.
- md5: 파일 내용으로 계산하는 128비트 해시. 파일끼리 md5 를 비교하면 내용이 같은지 확인할 수 있다.

## English

## The problem

When a disk fails or you delete a file by mistake, the data often stays on the disk. In many cases, the file system only deletes or loses its record of where each file is. TestDisk and PhotoRec are widely used free tools for bringing such files back. TestDisk’s official documentation says it recovers lost partitions and deleted files. PhotoRec’s documentation says it ignores the file system and finds files in the data itself.

If a disk is failing, it is safer to copy it to an image file first and work on the copy. People use a separate tool such as GNU ddrescue to make this copy. So you have to pick a different program for each situation.

## How it solves it

Reflota was posted on Hacker News as a Show HN on November 13, 2026. The maker, Christian, says the goal was a free alternative to commercial recovery software.

Reflota reads the disk directly and rebuilds the file list. On NTFS, it reads the whole table that lists the files. On FAT and exFAT, it follows the folders and the cluster chains. It also shows deleted files in their original folders and tells you how intact each one is. If the file system is broken, Reflota uses file carving to find photos, documents and archives by patterns in their content. It also finds lost partitions. When it copies a failing disk to an image file, it reads the easy areas first and retries the failed areas later.

## What is different

The first difference is the number of programs. People use TestDisk for partitions and deleted files, PhotoRec for finding files by content, and a program like ddrescue for copying a disk. Reflota does these jobs in one window. According to the README, the window shows a tree of disks, partitions and folders. You select the files to recover and choose a folder to save them to. But the README also says the maker checked some recently added features only on test images, not on real disks. They include FAT16 support, rebuilding fragmented JPEGs and copying a disk in phases.

The second difference is where it runs. According to its official documentation, PhotoRec runs on several operating systems. Reflota’s maker ships one executable for Windows. According to the README, it needs no installation and no Python. The code that lists disks uses the Windows API. On Linux, I ran the source with Python and recovered files from disk image files.

## How it was built

- The repository has 1 commit, from November 13, 2026, with the message "Reflota 0.1.0".
- The program is one Python file of 6,812 lines and uses only the standard library. The window is built with tkinter.
- The tests folder has 13 test scripts. It includes a tkinter stub for testing the window without a display, and code that builds test FAT images.
- The README is written in Spanish, with an English summary at the end.

## Running it

I cloned the repository on Linux and ran Reflota’s test scripts and its CLI. Instead of a disk, I used a 64 MB FAT32 image file that I built myself.

1. Test scripts. 12 of the 13 scripts passed in full. The one that checks the window layout was skipped because tkinter was missing. The test that rebuilds 24 fragmented JPEGs took 190 seconds. Reflota restored 20 of them exactly. The test reports this count and does not treat the other 4 as failures.
2. Deleted files. I built a disk image with a separate library, pyfatfs, and put 4 files in it. Then I deleted 2 of them the way Windows does, by marking their directory entries as deleted and clearing their cluster chains. `--ls --borrados` showed the deleted vacaciones.jpg and borrar_me.txt with their original names. I copied out the 2 deleted files and informe.bin with `--copiar`. All 3 had the same md5 as the originals. The image had the same md5 before and after the run.
3. After a format. I quick-formatted the image so its root directory was empty, and called the Reflota function that does file carving. The CLI has no option for this. It found 1 JPEG in the 64 MB image in 0.64 seconds, with the same length and md5 as the original.
4. A fragmented file. I deleted a file that was stored in 2 pieces and then recovered it. Its md5 did not match the original. Reflota marked the file PARCIAL, meaning partial, and wrote in its log that it had assumed the file was stored in one piece.

```text title="Terminal, reflota.py --copiar /d.bin --borrados"
Listo: {'ok': 0, 'parcial': 1, 'saltado': 0, 'fallo': 0, 'bytes': 150000, 'omitidos': 0}
$ cat recuperacion_log.csv
2026-11-13 20:53:51,PARCIAL,/d.bin,se asumio archivo contiguo; borrado: 33% de los clusters sin reutilizar
```

## Verdict

It works. Deleted files came back identical to the originals, and so did a photo from a quick-formatted image. But a deleted file that was stored in pieces came back with different content. Reflota marked it as a partial recovery. It is worth trying if you need to recover files from a USB drive or memory card.

## What to take away

- If your tool cannot verify a result, mark it as unverified and record the reason. Reflota marked the fragmented file PARCIAL and wrote in its log that it had assumed the file was stored in one piece.
- If your tool is meant to be read-only, test that by comparing the input’s hash before and after a run. Today the image’s md5 stayed the same after Reflota listed and recovered files.

### Terms

- cluster: The unit a file system uses to divide disk space. A large file is stored in several clusters, and FAT records the order of those clusters in a table.
- file carving: Recovering files without the file system’s records, by finding the start bytes and structure of each file format in the disk’s data.
- md5: A 128-bit hash computed from a file’s content. Comparing the md5 of two files checks whether their content is the same.

## Launches the same day

- Reflota <https://github.com/Christ10-8/reflota> (Show HN, 27): 파일 복구 도구. NTFS 와 FAT 디스크에서 지워진 파일과 손상된 파일을 되살린다.
- PharmA2A <https://github.com/pharma2a/pharma2a> (Show HN, 13): 개방형 프로토콜. 약국이 공급업체에 주문하는 과정을 에이전트끼리 주고받게 한다.
- Diorama Rick and Morty <https://usediorama.com/rick-and-morty> (Show HN, 12): 영상 생성 사이트. 주제를 넣으면 애니메이션 해설 영상을 만든다.
- KittyBrowser <https://github.com/graiz/kittybrowser> (Show HN, 7): 터미널 웹 브라우저. 터미널 안에서 웹 페이지를 이미지와 함께 보여 준다.
- Harness Tuner <https://github.com/Kiln-AI/harness-tuner> (Show HN, 5): 에이전트 조정 도구. 평가 결과를 보며 도구, 프롬프트, 모델 설정을 고친다.
- sakurai-skill <https://github.com/kociden/sakurai-skill> (GitHub, 196): 에이전트 스킬. 게임 개발 강의 영상 자막으로 만든 게임 제작 조언 모음이다.
- emissor-nfse-nacional <https://github.com/gabrielbuzziv/emissor-nfse-nacional> (GitHub, 194): 세금 계산서 발행 도구. 브라질 국가 NFS-e API 로 직접 발행한다.
- Templify AI <https://www.producthunt.com/products/templify> (Product Hunt, 328): 콘텐츠 편집기. 편집자가 아닌 사용자도 디자인 문서를 만든다.
- Filament by Galaxy <https://www.producthunt.com/products/galaxy> (Product Hunt, 236): 데이터 이동 도구. 터미널이나 에이전트에서 데이터를 옮긴다.
- Claude Meetings <https://www.producthunt.com/products/claude> (Product Hunt, 224): 회의 기능. 통화에 Claude 를 넣어 대화하는 동안 작업을 시작한다.

## Getting started

- Steps: GitHub Releases 에서 Reflota.exe 를 내려받아 실행 ; 복구할 디스크나 파일을 체크하고 다른 디스크의 폴더를 골라 RECUPERAR
- Needs: Windows. 원본 디스크를 읽으려면 관리자 권한이 필요하다. 소스 코드로 실행하려면 Python 3.8 이상이 필요하다.
- Cost: MIT, 무료.
- Note: 베타 버전이다. 제작자는 중요한 디스크라면 먼저 복사본으로 시험하라고 권장한다.
