Hacking How to compress rawnand.bin?

a7mag3ddon

Well-Known Member
Member
Joined
Mar 17, 2013
Messages
194
Trophies
0
Age
52
XP
671
Country
No on in their right mind will send you a nand backup :-/

--------------------- MERGED ---------------------------

Use 7zip to compress it, also if you have loads of games and stuff installed on it then it might not compress
 
  • Like
Reactions: Uumas

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
18,698
Trophies
2
Age
28
Location
New York City
XP
12,660
Country
United States
Depending on how much stuff you have installed on your Switch, your compressed NAND will differ. For example, if you downloaded a lot of eShop titles, your NAND will be much larger compressed than someone who never touches the eShop.
 

Lacius

Well-Known Member
Member
Joined
May 11, 2008
Messages
18,100
Trophies
3
XP
18,277
Country
United States
What is it you're compressing, how big was it before you compressed it, and how big was it after you compresed it? The most drastic compression is the USER partition and the rawnand.bin (which includes the USER partition). For the reasons listed above, results may also vary.
 

CTCaer

Developer
Developer
Joined
Mar 22, 2008
Messages
1,154
Trophies
0
XP
2,504
Country
Greece
It has almost nothing on it. I have used 7-zip at max settings. It is a full rawnand.bin file.
It always had nothing on it?
If you factory reset or delete games and saves, the data is still there. There's no partition secure erasure (writing 00s).

For example, my gaming switch can be compressed up to 25GB with ultra custom LZMA2 (512MB - 256). Because it's practically full.
My other device though, can be compressed up to 1.5GB. Could be less but I already had some game updates before the first factory reset.
 

Deleted member 456320

Active Member
OP
Newcomer
Joined
Jul 10, 2018
Messages
32
Trophies
0
XP
168
Country
United States
It always had nothing on it?
If you factory reset or delete games and saves, the data is still there. There's no partition secure erasure (writing 00s).
I think that is what happened. Some of my games could have been installed to system memory before I deleted them and redownloaded them to the micro-sd card. Is there a way to make a homebrew app that makes a large empty file to overwrite the empty space?
 
Last edited by Deleted member 456320,

CTCaer

Developer
Developer
Joined
Mar 22, 2008
Messages
1,154
Trophies
0
XP
2,504
Country
Greece
I think that is what happened. Some of my games could have been installed to system memory before I deleted them and redownloaded them to the micro-sd card. Is there a way to make a homebrew app that makes a large empty file to overwrite the empty space?
You can mount the USER and System partitions and run a "wipe free space with zeroes".
That's easy because when you mount these 2 partitions with hacdiskmount they are FAT32 partitions. So you can run tools like that.
(Be careful though. Make a backup of your backup first. :P)
 

ganbare

Member
Newcomer
Joined
Apr 24, 2018
Messages
16
Trophies
0
XP
307
Country
United States
I rar'd it with zip compression on fastest setting and noticed it achieved 1% compression ratio. It's not necessary to set maximum compression. This was a great idea. My rawnand is now zipped to 372 MB.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm