# Storage: UMD, Memory Stick, NAND ## UMD and the drive (Copetti "UMD Discs", "Lepton", "SPOCK"; YAPSPD 7.4) - A UMD holds 900 MB (single layer) or 1.8 GB (dual layer) in a caddy (Copetti). The largest UMD image in the Redump set is 1,812,725,760 bytes (the Yu-Gi-Oh! GX Tag Force 2 releases; census.md); 2 larger entries are PSP Go promotional DVDs, not UMDs. - Data is an ISO9660-style file system of 2048-byte sectors (every Redump image is a multiple of 2048: census.md); the game is in `PSP_GAME/`, with `PARAM.SFO` and `SYSDIR/` holding `BOOT.BIN` and `EBOOT.BIN` in all 9 images read tonight, plus `OPNSSMP.BIN` and an `UPDATE/` folder (a bundled firmware update) in the 3 PSN images (MEASURED); the game's own files sit beside them (`USRDIR/`, DOC: pspsdk and common layout, not checked tonight). - **Lepton**, the drive's own SoC (a CPU, a DSP, 480 KB RAM, 384 KB ROM firmware), talks ATAPI to Tachyon (0xBD600000 ATAPI, 0xBD700000 ATA: YAPSPD); **SPOCK**, inside Tachyon but operated by Lepton, decrypts sectors with AES; keys come from IDStorage in NAND and the disc (Copetti). Redump images are of the **decrypted** sector data (the ISO9660 directory reads in plain: MEASURED tonight), so an HLE board needs no SPOCK. - **HLE model:** the kernel's `sceUmd*` and the I/O manager's `umd0:`/`disc0:` devices serve the ISO, with a seek and read-time model (HYPOTHESIS, U11) because games wait on reads and some time their loading screens by it. pspautotests `umd/*` (7 outputs) and `io/*` (14) judge the visible behaviour. - **Formats a player may bring:** ISO (Redump), CSO/ZSO and CHD (the curated library is 735 `.chd`: census.md). CHD needs a reader (libchdr, BSD-3-Clause: to be checked). ## Memory Stick FAT (FAT32 on larger sticks: Copetti) through the kernel's `ms0:` device. HLE model: a host directory, with the PSP's directory layout (`PSP/SAVEDATA`, `PSP/GAME`). Save data written by games is encrypted by the kernel's savedata library with keys (P2 applies to reading a real console's saves; saves made by our board need not match). `mstick` (1 output) and the utility tests (`utility/*`, 28) judge the save dialogs' visible behaviour. ## NAND 32 MB (64 MB on later models), with IPL, IDStorage (console identity, UMD keys) and the flash0/flash1 file systems (the OS and settings) (Copetti; YAPSPD 8.6 for the controller). LLE only; under HLE, `flash0:` exists only as the paths games read (fonts, for example: pspautotests `font/*` (21 outputs) use the firmware's fonts, which the family does not ship: U12).