Flash Filesystem: Difference between revisions
Moosehunter (talk | contribs) Add partition GUIDs |
No edit summary |
||
(16 intermediate revisions by 5 users not shown) | |||
Line 5: | Line 5: | ||
== Boot Partitions == | == Boot Partitions == | ||
'''Boot Partition 0 (0 of 1)''' | '''Boot Partition 0 (0 of 1)''' | ||
Line 85: | Line 84: | ||
=== System Update Control === | === System Update Control === | ||
The 0x4000 bytes at offset 0xFC000 are used by [[NS_Services|NS]] and [[Boot|boot]] for keeping track of the status of a system update. This area is used by the [[NS_Services# | The 0x4000 bytes at offset 0xFC000 are used by [[NS_Services|NS]] and [[Boot|boot]] for keeping track of the status of a system update. This area is used by the [[NS_Services#ISystemUpdateControl|ISystemUpdateControl]] commands [[NS_Services#ApplyDownloadedUpdate|ApplyDownloadedUpdate]], [[NS_Services#ApplyCardUpdate|ApplyCardUpdate]] and [[NS_Services#ApplyReceivedUpdate|ApplyReceivedUpdate]]. | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 130: | Line 129: | ||
|} | |} | ||
The active bootloader's version (offset 0x2330 in the BCT) acts as an index to control which keyblob should be installed into the system. | The active bootloader's version (offset 0x2330 in the BCT) acts as an index (<code>version-1</code>) to control which keyblob should be installed into the system. | ||
[[NS_Services|NS]] uses this during system updates to install the keyblob into the [[BCT#customer_data|customer data]] section in BCTs (offset 0x450). | [[NS_Services|NS]] uses this during system updates to install the keyblob into the [[BCT#customer_data|customer data]] section in BCTs (offset 0x450). | ||
Line 182: | Line 181: | ||
| GPT header, Bis-storage also allows raw access to the entire NAND eMMC sectors starting at sector0. The official name for this partition is "UserDataRoot". | | GPT header, Bis-storage also allows raw access to the entire NAND eMMC sectors starting at sector0. The official name for this partition is "UserDataRoot". | ||
|- | |- | ||
| [[Calibration|PRODINFO]] | | [[Calibration#CalibrationBinary|PRODINFO]] | ||
| {98109E25-64E2-4C95-8A77-414916F5BCEB} | | {98109E25-64E2-4C95-8A77-414916F5BCEB} | ||
| 0x00004400 | | 0x00004400 | ||
Line 190: | Line 189: | ||
| "CAL0" raw partition containing set:cal data. The official name for this partition is "CalibrationBinary". | | "CAL0" raw partition containing set:cal data. The official name for this partition is "CalibrationBinary". | ||
|- | |- | ||
| [[Calibration|PRODINFOF]] | | [[Calibration#CalibrationFile|PRODINFOF]] | ||
| {F3056AEC-5449-494C-9F2C-5FDCB75B6E6E} | | {F3056AEC-5449-494C-9F2C-5FDCB75B6E6E} | ||
| 0x00400000 | | 0x00400000 | ||
Line 286: | Line 285: | ||
Encrypted partitions use AES-XTS using the same non-standard tweak (tweak[0] = sectorIdx[MSB] .. tweak[15] = sectorIdx[LSB], if using 32bit sectorIdx that means tweak[0]..tweak[11] are 0, with tweak[12]..tweak[15] containing big-endian sectorIdx) as other Nintendo AES-XTS code, initial_sector = 0, and sector size 0x4000. All encrypted partitions use console unique keydata. | Encrypted partitions use AES-XTS using the same non-standard tweak (tweak[0] = sectorIdx[MSB] .. tweak[15] = sectorIdx[LSB], if using 32bit sectorIdx that means tweak[0]..tweak[11] are 0, with tweak[12]..tweak[15] containing big-endian sectorIdx) as other Nintendo AES-XTS code, initial_sector = 0, and sector size 0x4000. All encrypted partitions use console unique keydata. | ||
=== SYSTEM === | === SYSTEM === | ||
Line 362: | Line 332: | ||
On a v2.1 system with MountBis, the only thing under here is "PRF2SAFE.RCV". | On a v2.1 system with MountBis, the only thing under here is "PRF2SAFE.RCV". | ||
= | = SystemSaveData = | ||
This is a listing of known SystemSaveData and what titles they correspond to. | |||
This is a listing of known | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
! | ! SystemSaveDataId || Owner || Mount || [[Filesystem_services#SaveDataFlags|SaveDataFlags]] || Notes | ||
|- | |||
| 0x8000000000000000 || fs || <nowiki>saveDataIxrDb:/</nowiki>, <nowiki>saveDataIxrDbSf:/</nowiki>, <nowiki>saveDataIxrDbPr:/</nowiki>, <nowiki>saveDataIxrDbSd:/</nowiki> || || Contains [[IMKV|imkvdb.arc]] and "lastPublishedId". | |||
|- | |||
| 0x8000000000000010 || account || <nowiki>account:/</nowiki> || 0xC || Account database. | |||
|- | |||
| 0x8000000000000011 || account || <nowiki>idgen:/</nowiki> || 0x1 || | |||
|- | |||
| 0x8000000000000020 || nfc || <nowiki>data:/</nowiki> || 0x0 || NFC data and backups. | |||
|- | |||
| 0x8000000000000030 || ns || <nowiki>mii:/</nowiki> || 0x4 || Mii database. | |||
|- | |||
| 0x8000000000000031 || ns || <nowiki>mii:/</nowiki> || || Mii test mode database. | |||
|- | |||
| 0x8000000000000040 || ns || <nowiki>apprecdb:/</nowiki> || 0x0 || | |||
|- | |||
| 0x8000000000000041 || ns || <nowiki>nsaccache:/</nowiki> || 0x4 || Home menu icondata/lru list for recently played games. | |||
|- | |||
| 0x8000000000000043 || ns || <nowiki>ns_appman:/</nowiki> || 0x0 || | |||
|- | |||
| 0x8000000000000044 || ns || <nowiki>ns_sysup:/</nowiki> || 0x0 || Content update context. | |||
|- | |||
| 0x8000000000000045 || ns || <nowiki>[7.0.0+] lrdb:/ ([1.0.0-6.2.0] vmdb:/)</nowiki> || 0x4 || Required Version List storage. Also contained Version List storage before 7.0.0. | |||
|- | |||
| 0x8000000000000046 || ns || <nowiki>dtlman:/</nowiki> || 0x0 || | |||
|- | |||
| 0x8000000000000047 || ns || <nowiki>ns_exfat:/</nowiki> || 0x1 || | |||
|- | |||
| 0x8000000000000048 || ns || <nowiki>ns_systemseed:/</nowiki> || 0x1 || | |||
|- | |||
| 0x8000000000000049 || ns || <nowiki>ns_ssversion:/</nowiki> || 0x3 || Safe System version. | |||
|- | |||
| 0x800000000000004A || ns || <nowiki>ns_rightsid:/</nowiki> || 0x0 || List of RightsIDs with NCA IDs for corresponding Program title. | |||
|- | |||
| 0x8000000000000050 || settings || <nowiki>SystemSettings:/</nowiki> || 0x8 || | |||
|- | |||
| 0x8000000000000051 || settings || <nowiki>FwdbgSettingsS:/</nowiki> || 0x3 || [4.0.0+] Only used if in [[SPL_services#IsDevelopment|development mode]]. | |||
|- | |||
| 0x8000000000000052 || settings || <nowiki>PrivateSettings:/</nowiki> || 0x1 || | |||
|- | |||
| 0x8000000000000053 || settings || <nowiki>DeviceSettings:/</nowiki> || 0x3 || | |||
|- | |||
| 0x8000000000000054 || settings || <nowiki>ApplnSettings:/</nowiki> || 0x4 || | |||
|- | |||
| 0x8000000000000060 || ssl || <nowiki>SslSave:/</nowiki> || 0x0 || | |||
|- | |||
| 0x8000000000000070 || nim || <nowiki>nim_sys:/</nowiki> || 0x0 || | |||
|- | |- | ||
| | | 0x8000000000000071 || nim || <nowiki>nim_net:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000072 || nim || <nowiki>nim_tmp:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000073 || nim || <nowiki>nim_dac:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000074 || nim || <nowiki>nim_delta:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000075 || nim || <nowiki>nim_vac:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000000076 || nim || <nowiki>nim_local:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000077 || nim || <nowiki>nim_lsys:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000078 || nim || <nowiki>nim_eca_dbg:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000000080 || friends || <nowiki>friends:/</nowiki> || || Per-user savedata. | ||
|- | |- | ||
| | | 0x8000000000000081 || friends || <nowiki>friends-sys:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000000082 || friends || <nowiki>friends-image:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000000090 || bcat || <nowiki>news:/</nowiki> || 0x0 || Actual news msgpack archives. | ||
|- | |- | ||
| | | 0x8000000000000091 || bcat || <nowiki>news-sys:/</nowiki> || 0x0 || News metadata, tasklist, history, database, required system version, etc. | ||
|- | |- | ||
| | | 0x8000000000000092 || bcat || <nowiki>news-dl:/</nowiki> || 0x0 || Storage for newly(?) downloaded news list/data. | ||
|- | |- | ||
| | | 0x80000000000000A0 || bcat || <nowiki>prepo-sys:/</nowiki> || 0x8 || Play Report system information. | ||
|- | |- | ||
| | | 0x80000000000000A1 || bcat || <nowiki>prepo:/</nowiki> || 0x8 || Play Report msgpack archives. | ||
|- | |- | ||
| | | 0x80000000000000A2 || bcat || <nowiki>prepo-ap:/</nowiki> || 0x8 || Play Report msgpack archives of EventId "application_execution_history". | ||
|- | |- | ||
| | | 0x80000000000000B0 || bsdsockets || <nowiki>nsdsave:/</nowiki> || || Socket configuration saved data. | ||
|- | |- | ||
| | | 0x80000000000000C1 || bcat || <nowiki>bcat-sys:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x80000000000000C2 || bcat || <nowiki>bcat-dl:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x80000000000000D1 || erpt || <nowiki>save:/</nowiki> || 0x4 || Contains "/journal" report listing + actual crash reports ("/%08x-%04x-%04x-%02x%02x-%04x%08x"), which are serialized via [http://msgpack.org/ MsgPack]. | ||
|- | |- | ||
| | | 0x80000000000000E0 || es || <nowiki>escertificate:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x80000000000000E1 || es || <nowiki>escommon:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x80000000000000E2 || es || <nowiki>espersonalized:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x80000000000000E3 || es || <nowiki>esmetarecord:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x80000000000000E4 || es || <nowiki>eselicense:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x80000000000000F0 || ns || <nowiki>pdm:/</nowiki> || 0x0 || Play Data log. Per-user savedata. | ||
|- | |- | ||
| | | 0x8000000000000100 || pctl || <nowiki>pctlss:/</nowiki> || 0x0 || Parental Control settings. | ||
|- | |- | ||
| | | 0x8000000000000110 || npns || <nowiki>npns_save:/</nowiki> || 0x4 || Push notifications persistent storage. | ||
|- | |- | ||
| | | 0x8000000000000120 || ncm || || 0x3 || meta/[[IMKV|imkvdb.arc]] for system partition. Cache of data extracted from the [[CNMT]] for installed firmware titles (including 816). | ||
|- | |- | ||
| | | 0x8000000000000121 || ncm || || 0x0 || meta/[[IMKV|imkvdb.arc]] for user partition. Cache of data extracted from the [[CNMT]] for installed game, update, and DLC titles. | ||
|- | |- | ||
| | | 0x8000000000000122 || ncm || || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000130 || migration || <nowiki>state:/</nowiki> || 0x4 || | ||
|- | |- | ||
| | | 0x8000000000000131 || migration || <nowiki>context:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000000132 || migration || <nowiki>sd_state:/</nowiki> || 0x4 || | ||
|- | |- | ||
| | | 0x8000000000000133 || migration || <nowiki>sd_context:/</nowiki> || 0x4 || | ||
|- | |- | ||
| | | 0x8000000000000140 || capsrv || <nowiki>TM:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000150 || olsc || <nowiki>olsc:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000151 || olsc || <nowiki>olsc:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000000152 || olsc || <nowiki>olsc:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000000153 || olsc || <nowiki>repair:/</nowiki> || 0x0|| | ||
|- | |- | ||
| | | 0x8000000000000180 || sdb || [7.0.0+] <nowiki>vmdb:/</nowiki> || 0x0 || Version list. | ||
|- | |- | ||
| | | 0x8000000000000190 || glue || || 0x8 || | ||
|- | |- | ||
| | | 0x8000000000000200 || bcat || <nowiki>mnpp_m:/</nowiki> || 0xC || | ||
|- | |- | ||
| | | 0x8000000000000210 || account || <nowiki>dauth:/</nowiki> || 0x0 || | ||
|- | |- | ||
| | | 0x8000000000000220 || erpt || <nowiki>sprof:/</nowiki> || 0x1 || | ||
|- | |- | ||
| | | 0x8000000000001010 || qlaunch || <nowiki>save:/</nowiki> || 0x0 || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000001011 || qlaunch || <nowiki>group:/</nowiki> || || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000001020 || swkbd || <nowiki>save:/</nowiki> || || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000001021 || swkbd || <nowiki>save:/</nowiki> || 0x0 || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000001030 || auth || <nowiki>save:/</nowiki> || 0x0 || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000001040 || miiEdit || <nowiki>save:/</nowiki> || 0x0 || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000001050 || miiEdit || <nowiki>MiiImage:/</nowiki> || 0x4 || Contains "database.dat". | ||
|- | |- | ||
| | | 0x8000000000001060 || LibAppletShop || <nowiki>savecommon:/</nowiki> || 0x8 || | ||
|- | |- | ||
| | | 0x8000000000001061 || LibAppletShop || <nowiki>saveuser:/</nowiki> || || Per-user savedata. | ||
|- | |- | ||
| | | 0x8000000000001070 || LibAppletWeb || <nowiki>savecommon:/</nowiki> || 0x8 || | ||
|- | |- | ||
| | | 0x8000000000001071 || LibAppletWeb || <nowiki>saveuser:/</nowiki> || || Per-user savedata. | ||
|- | |- | ||
| | | 0x8000000000001080 || LibAppletOff || <nowiki>savecommon:/</nowiki> || || Unused. | ||
|- | |- | ||
| | | 0x8000000000001081 || LibAppletOff || <nowiki>saveuser:/</nowiki> || || Unused. | ||
|- | |- | ||
| | | 0x8000000000001090 || LibAppletLns || <nowiki>savecommon:/</nowiki> || 0x8 || | ||
|- | |- | ||
| | | 0x8000000000001091 || LibAppletLns || <nowiki>saveuser:/</nowiki> || || Per-user savedata. | ||
|- | |- | ||
| | | 0x80000000000010A0 || LibAppletAuth || <nowiki>savecommon:/</nowiki> || || Unused. | ||
|- | |- | ||
| | | 0x80000000000010A1 || LibAppletAuth || <nowiki>saveuser:/</nowiki> || || Unused. | ||
|- | |- | ||
| | | 0x80000000000010B0 || playerSelect || <nowiki>save:/</nowiki> || 0x0 || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x80000000000010C0 || myPage || <nowiki>save:/</nowiki> || || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x80000000000010E1 || qlaunch || <nowiki>mig:/</nowiki> || || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000001100 || qlaunch || <nowiki>news:/</nowiki> || 0x0 || Contains "savedata.dat". | ||
|- | |- | ||
| | | 0x8000000000002000 || DevMenu || || || | ||
|- | |- | ||
| | | 0x8000000000002020 || ns || <nowiki>ns_confidential:/</nowiki> || || | ||
|- | |- | ||
| | | 0x8000000000010002 || bcat || || || Delivery cache storage for application 010099F00D810000 | ||
|- | |- | ||
| | | 0x8000000000010003 || bcat || || 0x0 || Delivery cache storage for application 0100000000001033 | ||
|- | |- | ||
| | | 0x8000000000010004 || bcat || || 0x0 || Delivery cache storage for application 0100000000001034 | ||
|- | |- | ||
| | | 0x8000000000010005 || bcat || || 0x3 || Delivery cache storage for application 010000000000102E | ||
|- | |- | ||
| | | 0x8000000000010006 || bcat || || 0x0 || Delivery cache storage for application 010000000000102F | ||
|- | |- | ||
| | | 0x8000000000010007 || bcat || || 0x0 || Delivery cache storage for application 0100000000001007 | ||
|} | |} |