In NAND data recovery, there are many types of devices, which means many different ways to extract data.
Sometimes a device has no ready-made solution because the XOR, ECC code, or data translation method is unknown. Research becomes extremely difficult if the device is dead.
The best way to create a solution for such devices is to find a working donor device.
Preparing the Donor Device
If the device is not new, it is recommended to format it using FAT32 (or exFAT for devices larger than 32GB). The format must be full, not quick, to ensure all old data is erased.
After formatting, write some sample files to the device. JPEG and DOC files are usually enough for research, but adding more formats like MP4, MOV, or PDF can be helpful.
The Pattern Writer Tool
In the software plugins, there is a tool called Pattern Writer.
It can write zeroes, patterns, or counters.

picture 01. The Pattern writer location.
It is also possible to save a counter, zeroes or patterns directly to the device, which helps during research, but this method is more advanced.

picture 02. Saving data directly on the device
This article describes a simple way to create universal sample files for research, instead of writing patterns or counters directly to the device.
In the Pattern Writer tool, there is a “Binary file” option. This allows saving patterns or counters into files.

picture 03. Binary file option
Setting the File Size
The next step is to define the size of the binary file.
In the Range field, set:
From = 0 (start position).
To = file size.
For devices under 32GB, 1GB files are usually enough. For larger devices, it is better to create 10GB or 16GB files.
File size calculation:
1GB = 1024 × 1024 × 1024 = 1,073,741,824 Bytes
10GB = 10 × 1GB = 10,737,418,240 Bytes
16GB = 16 × 1GB = 17,179,869,184 Bytes

picture 04. 1GB file size setting
Zeroes Binary File
A zero-filled binary file is very useful. It helps in analyzing XOR generation.
Creating the file is simple: just click the button, select the location, and name the file.
picture 05. Button to save 0x00 binary files
Pattern 0x77 File
Some controllers work in a specific way. Instead of writing zeroes, the controller only saves information about their location and length. In such cases, XOR may not be visible after dumping.
To avoid this problem, use a known pattern file. The standard pattern is 0x77.
Creating this file is also simple: set the size and click the save button.
picture 06. Button to save 0x77 binary files
picture 07. 0x77 pattern in the de-XORed dump
Counter File
A counter file helps analyze data allocation, which is useful for rebuilding files from the dump.
Steps to create a counter file:
Page size – This is not the NAND page size, but the increment step for the counter. A universal value is 512 Bytes.
Increment period – Select “PAGE”. With 512B page size, the counter increases every 512 Bytes.

picture 08. step 1. Page size 512B, step 2. increment period: PAGE
Add text – Adding text to the counter helps to locate it after de-XORing.
Repeat period – Set the same value as page size (e.g., 512B). This places the text next to every counter number.
picture 09. step 3. Text, step 4. Repeat period 512 Bytes (same as Page size)
Save the file – Click the button and save the counter as a binary file.
picture 10. step 5. click the button and save counter into file

picture 11. Counter in the de-XORed dump
After these operations, you will have three universal files for preparing the device for research:
Zeroes binary file
Pattern 0x77 file
Counter file
picture 12. Sample files for writing into device for research
Conclusion
Proper preparation of a donor device is a key step in NAND research and data recovery.
By creating and using zero, pattern, and counter files, you can:
Analyze XOR generation
Detect how controllers handle data
Understand data allocation patterns
This method provides a universal, repeatable approach for preparing any donor device, making the research process faster, more structured, and more effective.
Thank you for reading!
Lukasz Pietrzykowski, Rusolut Team