Hacking Switch NAND layout ...

Escape1975

Well-Known Member
OP
Member
Joined
Jan 14, 2021
Messages
115
Trophies
0
Age
47
XP
246
Country
Canada
Does anyone know what the layout of SYSTEM and USER partitions are?
Specifically what cluster size the FAT32 system uses on both partitions ...
 

Escape1975

Well-Known Member
OP
Member
Joined
Jan 14, 2021
Messages
115
Trophies
0
Age
47
XP
246
Country
Canada
From boot sector (SYSTEM & USER) :
512 bytes per sector
32 reserved sectors
32 sectors per cluster (cluster size: 16 KB)
Number of FAT : 2

Excellent, thanks for the info ...

While looking at USER partition and using HacDiskMount I've noticed that when you re-format it from windows the FAT32 filesystem changes a little bit, and it's no longer considered a FAT32 (BitLocker) because windows adds a boot sector to it ...

Wondering if someone has a USER.BIN backup that they could point me towards so I can examine
the differences and how to handle editing USER and SYSTEM partitions without altering them too much ...
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
Excellent, thanks for the info ...

While looking at USER partition and using HacDiskMount I've noticed that when you re-format it from windows the FAT32 filesystem changes a little bit, and it's no longer considered a FAT32 (BitLocker) because windows adds a boot sector to it ...

Wondering if someone has a USER.BIN backup that they could point me towards so I can examine
the differences and how to handle editing USER and SYSTEM partitions without altering them too much ...
There's always a boot sector in reserved sectors, that's how FAT works. You should try NxNandManager to re-format USER, it'll recreate boot & info sectors with original values (as much as possible).

About your BitLocker tag problem, maybe there's a value somewhere in info sector that describes partition's encryption mode. USER, SYSTEM, SAFE, PRODINFO & PRODINFOF are all encrypted with AES-XTS mode (decryption uses BIS keys), BitLocker uses AES-XTS too, if I remind correctly. I guess that's why Windows labels your partition "BitLocker" even though it's not encrypted with BitLocker.
 
Last edited by eliboa,

Escape1975

Well-Known Member
OP
Member
Joined
Jan 14, 2021
Messages
115
Trophies
0
Age
47
XP
246
Country
Canada
There's always a boot sector in reserved sectors, that's how FAT works. You should try NxNandManager to re-format USER, it'll recreate boot & info sectors with original values (as much as possible).

About your BitLocker tag problem, maybe there's a value somewhere in info sector that describes partition's encryption mode. USER, SYSTEM, SAFE, PRODINFO & PRODINFOF are all encrypted with AES-XTS mode (decryption uses BIS keys), BitLocker uses AES-XTS too, if I remind correctly. I guess that's why Windows labels your partition "BitLocker" even though it's not encrypted with BitLocker.

Ok I'll try messing with that, the BitLocker flag shows up in Winhex when I open the SYSTEM image part of the dump,
however it doesn't when I open the USER image part of the dump ...

It looks like the SYSTEM and I'm also assuming USER is formatted differently than my USER is now,
that is I shouldn't see "MSDOS 5.0" and "Press any key to reboot" anywhere on the filesystem :)

Also the SYSTEM boot identifier is EB E9 90 instead of Windows's EB 58 90
 
Last edited by Escape1975,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    I was playing need for speed remastered and said to myself this is a nice Forza remaster
  • Psionic Roshambo @ Psionic Roshambo:
    https://en.wikipedia.org/wiki/List_of_video_games_developed_by_Rare Not all of them are awesome but man the hits on that list.
  • Psionic Roshambo @ Psionic Roshambo:
    Oh snap Super Offroad was by them too? lol damn
    +1
  • BakerMan @ BakerMan:
    Today I learned that the creators of the Donkey Kong games also made Sea of Thieves
  • BakerMan @ BakerMan:
    why do i feel the sudden urge to start singing pirate's scorn from the donkey kong country cartoon?
  • BigOnYa @ BigOnYa:
    Are you being for real, cause that's hard to believe, DK is Nintendo and made in japan, Sea of thieves was from Microsoft, in America. I'm not calling you a liar, just didn't know.
  • BigOnYa @ BigOnYa:
    Ok yes they were both made by Rare, but DK was from Rare back then, Rare now is owned by MS. So makes since.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    They even developed a LJN game.... lol
  • K3Nv2 @ K3Nv2:
    It was pretty rare
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder what deal with Satan LJN worked to get Rare to make that one...
  • BigOnYa @ BigOnYa:
    I remember couple years ago, they announced they were working on a Perfect Dark remake, wonder what ever happen with that?
  • K3Nv2 @ K3Nv2:
    It went into the darkness
  • BigOnYa @ BigOnYa:
    Me and buddies used to play the hell out of Perfect Dark on N64, that and Goldeneye, was the first real PvP shooter games I remember
  • BigOnYa @ BigOnYa:
    4-way split screen on a tiny 19" TV, lol
  • K3Nv2 @ K3Nv2:
    Did you share joysticks also
  • BigOnYa @ BigOnYa:
    Nuh we had the 4 controller add on thingy for n64. Duh I just got your joke, lol
  • K3Nv2 @ K3Nv2:
    So you touched ends
  • BigOnYa @ BigOnYa:
    Yea, but being in the boy scouts, they forced us to
  • K3Nv2 @ K3Nv2:
    Chopped down some wood for the scout master
  • BigOnYa @ BigOnYa:
    Big Gay Al was our Scout leader.
  • BigOnYa @ BigOnYa:
    I was actually in the scouts for 1 week, til they assigned me homework, n I was like f this, and quit, I was like 10 yrs old. And no I didn't join the girl Scouts.
  • K3Nv2 @ K3Nv2:
    Was the homework about getting to know the scout leaders
  • BigOnYa @ BigOnYa:
    I had to memorize how to tell 15 different trees species, I think, been awhile. But yea it was about knowing Wood.
  • K3Nv2 @ K3Nv2:
    Could've just wrote down firewood
    K3Nv2 @ K3Nv2: Could've just wrote down firewood