Hacking BootMii's dumps getting smaller?

Det1re

det1re.de
OP
Member
Joined
Oct 28, 2008
Messages
1,272
Trophies
0
Age
34
Location
Germany
Website
det1re.de
XP
264
Country
Gambia, The
I noticed something odd:

I've got four NAND dumps of my second Wii. So here's a table:

Code:
 # | Date/TimeÂÂ|ÂÂDescriptionÂÂ| NAND usage | RAR size
--+------------+---------------+------------+----------
1 | 2009/07/02 | 3.1E ONLYÂÂÂÂ |ÂÂ 29.7%ÂÂÂÂ|ÂÂ324MB
ÂÂ|ÂÂ 14:00ÂÂÂÂ| BootMiiÂÂÂÂÂÂ |ÂÂÂÂÂÂÂÂÂÂÂÂ|
--+------------+---------------+------------+----------
2 | 2009/07/02 | 4.0E HBCÂÂÂÂÂÂ|ÂÂ 32.4%ÂÂÂÂ|ÂÂ347MB
ÂÂ|ÂÂ 15:00ÂÂÂÂ| cIOS, BootMii |ÂÂÂÂÂÂÂÂÂÂÂÂ|
--+------------+---------------+------------+----------
3 | 2009/07/10 | 4.0E SV,ÂÂÂÂÂÂ|ÂÂ 41.7%ÂÂÂÂ|ÂÂ307MB
ÂÂ|ÂÂ 02:30ÂÂÂÂ| FW channelsÂÂ |ÂÂÂÂÂÂÂÂÂÂÂÂ|
--+------------+---------------+------------+----------
4 | 2009/07/18 | 4.0E more SVÂÂ|ÂÂ 42.0%ÂÂÂÂ|ÂÂ262MB
ÂÂ|ÂÂ 20:15ÂÂÂÂ|ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ |ÂÂÂÂÂÂÂÂÂÂÂÂ|


SV = various Savegames
FW = USB Forwarder

Anyone else notices the RAR sizes? The difference between dump #1 and #2 is the only one I understand. The others are odd. Also compare the "NAND usage" between those.
I used the same compression mode for all of them. Any explanation for this?
 

s3phir0th115

Well-Known Member
Member
Joined
Dec 31, 2008
Messages
728
Trophies
1
XP
1,003
Country
United States
Maikel Steneker said:
Could it be that the dumps are encrypted? In that case, compression ratio is pretty much random.

That may be part of it, that's for sure. I'm not sure what the dumps look like in a hex editor to be certain though.

Although I'd have to say that getting a compression of 3xx MB for a ~512 MB file is pretty good, and I don't think you'd get that much of it was all just random encrypted trash. (Look at Wii ISO's being compressed without being scrubbed if you don't know what I mean.)
 

Det1re

det1re.de
OP
Member
Joined
Oct 28, 2008
Messages
1,272
Trophies
0
Age
34
Location
Germany
Website
det1re.de
XP
264
Country
Gambia, The
0ld8oy said:
That's crazy. I've never compressed them before. Do you always let BootMii verify the dumps?
All verified and working.

QUOTE(Maikel Steneker @ Jul 18 2009, 09:13 PM) Could it be that the dumps are encrypted? In that case, compression ratio is pretty much random.
They are. However this is a giant size difference for my understanding.
 

s3phir0th115

Well-Known Member
Member
Joined
Dec 31, 2008
Messages
728
Trophies
1
XP
1,003
Country
United States
Helsionium said:
The dumps are supposed to be encrypted, because they're raw dumps of the NAND, which is encrypted, so they shouldn't be compressible at all. An encrypted 528 MB file should never compress to less than 500 MB.

Hmm. That's why I didn't think they were encrypted.

My nand dump, compressed with 7z on Ultra settings, comes out to be:
330 MB (346,598,036 bytes)

That's damn good compression for something that's encrypted I must say.
 

Det1re

det1re.de
OP
Member
Joined
Oct 28, 2008
Messages
1,272
Trophies
0
Age
34
Location
Germany
Website
det1re.de
XP
264
Country
Gambia, The
Helsionium said:
Well, then it's obviously not encrypted. That's strange, because I thought all NAND dumpers simply extract the NAND, which would be encrypted. BootMii apparently decrypts it as well, though I don't know for what purpose.
They must be encrypted, else we wouldn't need zestig to unpack them. However the encryption then might be the solution.
 

Dteyn

Well-Known Member
Member
Joined
Aug 3, 2008
Messages
335
Trophies
0
XP
115
Country
Canada
I've done 4 backups with BootMii so far, here are the file sizes:

Code:
# | Date/TimeÂÂ|ÂÂDescriptionÂÂ| 7z Ultra size
--+------------+---------------+--------------
1 | 2009/06/14 | 3.2U SV, HBCÂÂ|ÂÂÂÂ 369MB
ÂÂ|ÂÂ 02:00ÂÂÂÂ| cIOS, BootMii |
--+------------+---------------+--------------
2 | 2009/06/14 | 4.0U SV, HBCÂÂ|ÂÂÂÂ 305MB
ÂÂ|ÂÂ 04:45ÂÂÂÂ| cIOS, BootMii |
--+------------+---------------+--------------
3 | 2009/07/16 | 4.0U SV, HBCÂÂ|ÂÂÂÂ 384MB
ÂÂ|ÂÂ 23:00ÂÂÂÂ| cIOS, BootMii |
--+------------+---------------+--------------
4 | 2009/07/18 | 4.1U SV, HBCÂÂ|ÂÂÂÂ 400MB
ÂÂ|ÂÂ 15:00ÂÂÂÂ| cIOS, BootMii |

Before I did the latest backup today, I removed a couple WiiWare and VC games. But yet the dump compresses larger? Installing more stuff on the Wii seems to result in a smaller compressed NAND dump... whereas removing stuff from the Wii results in a larger NAND dump.

I think we're in the Twilight Zone... lol
wink.gif
 

caitsith2

Well-Known Member
Member
Joined
Jan 16, 2004
Messages
350
Trophies
2
Age
43
Location
a secret location 93 million miles from the sun
Website
www.caitsith2.com
XP
2,477
Country
Canada
Encryption is actually a 128 bit block cipher, AES, in CBC mode. What is compressing is repeats of completely erased blocks, which are NOT encrypted, as well as repeats of file data. (A new cluster is assigned to the file, if the file is in any way modified, as a wear leveling mechanism. Also, the AES CBC encryption, is done on a cluster at a time. So, if there are repeats of the same data, like ALL 0x00 through out 20 clusters, then the compression will be those 20 clusters compressed to the size of 1 cluster.

The size of 1 cluster on the NAND is 16KiB. There are 32768 clusters in total. The first 64 clusters make up boot 1 and boot 2. The last 256 clusters makes up your filing system table. In general, a 16KiB cluster is often encrypted, and it is only repeats of the same encrypted cluster data that actually compresses.
 

Pip_X

Well-Known Member
Member
Joined
Jul 4, 2006
Messages
152
Trophies
0
XP
230
Country
Malaysia
Deleteing data in the nand. is not actually deleting it. It simply mark it to be usable, ur data is still there eventhough u deleted it and it wont show up in the system. Hence ur backup size.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    My biggest prob is alcohol, definitely is fattening
  • K3Nv2 @ K3Nv2:
    I know when to stop at least honestly don't get those that go and go with food
  • BigOnYa @ BigOnYa:
    Or those that order 2 big macs , large fry, ice cream sundie, then a diet coke
  • K3Nv2 @ K3Nv2:
    I might get downing two big macs but nah that's it
  • BigOnYa @ BigOnYa:
    Ok that will be $15.99, cash or charge?
  • K3Nv2 @ K3Nv2:
    My go to orders usually a mcdouble and a mcchicken and I'm happy rarely mess with fries
  • K3Nv2 @ K3Nv2:
    Pro tip ask for that clowns jizzmac sauce on your mcdouble
    +1
  • BigOnYa @ BigOnYa:
    Do they charge extra when you add sauce,etc? I know burger king used to not, but don't know nowadays
  • K3Nv2 @ K3Nv2:
    They may squrit it for free if you ask nice
    +1
  • K3Nv2 @ K3Nv2:
    Last time I got bk it was 35c per sauce fuck you king of my nutsack
    +1
  • K3Nv2 @ K3Nv2:
    I'll buy a bottle of baby rays BBQ for $2 and add it from home out of spite
    +1
  • BigOnYa @ BigOnYa:
    I like baby rays, my favorite is KC masterpiece tho. Figured all you could buy is that there.
  • K3Nv2 @ K3Nv2:
    The metro doesn't discriminate good sauce
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Baby Rays isn't that what killed the crocodile hunter?
  • Psionic Roshambo @ Psionic Roshambo:
    If only he had done an endorsement for them....
  • Psionic Roshambo @ Psionic Roshambo:
    Oy mate don't let a bad bbq sauce kill your party! Baby Rays are killing it!! The flavor hits you right in the chest!
    +1
  • Xdqwerty @ Xdqwerty:
    My phone only has 13% battery so i don't have much time left
  • Xdqwerty @ Xdqwerty:
    Now 12%
  • BigOnYa @ BigOnYa:
    Happy birthday, btw
  • Psionic Roshambo @ Psionic Roshambo:
    Time is running out for your phone!
  • Psionic Roshambo @ Psionic Roshambo:
    Sign up with Emperor Phone plan for unlimited power!!! And minutes!!!
  • AdenTheThird @ AdenTheThird:
    https://youtu.be/JmSqorj-EC0?si=vYqR8D7FZeO4N-TH
    At 1 AM, this video is the funniest thing in the world
    +1
  • K3Nv2 @ K3Nv2:
    Notes on Android got some cool new features like dropping a image in
    K3Nv2 @ K3Nv2: Notes on Android got some cool new features like dropping a image in