Worksheet for Calculating the Save Data File System Capacity

This calculates the amount of space used by save data and expanded save data.

CTR Card Save Data

This calculates the amount of data that can actually be saved in save data.

With save data, data is managed at a fixed size of 512 bytes. On this page this fixed size is referred to as a block.
Note that this differs from the definition of a block (=128KB) displayed on the CTR menu.

Input Parameters
Protection Type No automatic redundancy (any save data that is being written will be corrupted if the Game Card is removed )
Automatic redundancy (any save data that is being written will be protected against corruption even if the Game Card is removed )
Recordable Media CTR Card Backup Memory (128KB)
CTR Card Backup Memory (512 KB)
Max Number of Directories (0-?) (Total number of directories that can be created throughout the entire file system)
Max Number of Files (1-?) (Total number of files that can be created throughout the entire file system)

Amount of Data That Can Be Saved
Save Data Block Size bytes
Number of Save Data Blocks blocks
Save Data Capacity bytes / KB (block size × number of blocks)

Expanded Save Data

This calculates the amount of data used for expanded save data.

With expanded save data, data is managed at a fixed size of 4096 bytes. On this page this fixed size is referred to as a block.
Note that this differs from the definition of a block (=128KB) displayed on the CTR menu.


This calculates the number of blocks consumed in expanded save data. Depending on the SD Card format, the actual memory footprint on the SD Card may be greater than the values shown here. Note that nn::fs::ResultNotEnoughSpace may be returned even if an SD Card has as much free space as the sizes given here.

Metadata

This calculates the size (number of blocks) used when expanded save data is created.
Input Parameters
Icon Data Size bytes
Max Number of Directories (0-?) (Total number of directories that can be created throughout the entire file system)
Max Number of Files (1-?) (Total number of files that can be created throughout the entire file system)
Space Used
Block Size for Expanded Save Data 4096 bytes
Number of Blocks Used for Expanded Save Data blocks
Memory Size Used for Expanded Save Data bytes / KB

File

This calculates the size (number of blocks) that could be used when a single file is created in expanded save data. The actual size may be smaller than the size (number of blocks) shown here.

Input Parameters
Protection Type No automatic redundancy (any save data that is being written will be corrupted if the SD Card is removed )
Amount of Data That Can Be Saved KB

Space Used
Block Size for Expanded Save Data 4096 bytes
Number of Blocks Used for Expanded Save Data blocks
Memory Size Used for Expanded Save Data bytes / KB

Revision History

2011/02/09
Added notes about the definition of "blocks."
2010/12/16
Added worksheets for expanded save data calculations.
2010/12/11
Initial version.

CONFIDENTIAL