Hacking Question Restore NAND without rawnand.bin

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
Hey guys,

I'm looking to clean up my switch and wipe all traces of CFW. While looking at my backup folder from before I did any modding, i noticed that i have a bunch of files, but no rawnand.bin. Does this effect my ability to do a full system restore to clean NAND? Here are the files I have:
Code:
BOOT0
BOOT1
dumps:
  fuses.bin
  kfuses.bin
  tsec_keys.bin
partitions:
  BCPKG2-1-Normal-Main
  BCPKG2-2-Normal-Sub
  BCPKG2-3-SafeMode-Main
  BCPKG2-4-SafeMode-Sub
  BCPKG2-5-Repair-Main
  BCPKG2-6-Repair-Sub
  PRODINFO
  PRODINFOF
  SAFE
  SYSTEM
pkg1:
  nxloader.bin
  pkg1_decr.bin
  secmon.bin
  warmboot.bin
pkg2:
  ini1.bin
  kernel.bin
  pkg2_decr.bin
dumps:
  fuses.bin
  kfuses.bin

My switch is on firmware version 6.1 & Atmosphere 8.2 (Kosmos), I've never upgraded my firmware since doing any modding and i've been running in airplane mode since i first applied CFW.

I've noticed there are a few tools available that might help me with restoring without the rawnand.bin:
NxNandManager
HacDiskMount
Hekate

Does anyone have any guidance or tutorials that might help with restoring this way (without rawnand.bin)? Also, I'm curious if the error logs will be restored if i restore all the partitions? Ideally i would like to bring the system back or as close to stock as possible.

Thanks!
 

HtheB

Well-Known Member
Member
Joined
May 15, 2006
Messages
878
Trophies
1
Age
36
Location
Bize Her Yer Trabzon
Website
www.HtheB.com
XP
3,095
Country
Netherlands
partitions:
BCPKG2-1-Normal-Main
BCPKG2-2-Normal-Sub
BCPKG2-3-SafeMode-Main
BCPKG2-4-SafeMode-Sub
BCPKG2-5-Repair-Main
BCPKG2-6-Repair-Sub
PRODINFO
PRODINFOF
SAFE
SYSTEM


This is your nand, just split into parts.
The only this that is missing, is the USER
 
  • Like
Reactions: whobroughtben

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
partitions:
BCPKG2-1-Normal-Main
BCPKG2-2-Normal-Sub
BCPKG2-3-SafeMode-Main
BCPKG2-4-SafeMode-Sub
BCPKG2-5-Repair-Main
BCPKG2-6-Repair-Sub
PRODINFO
PRODINFOF
SAFE
SYSTEM


This is your nand, just split into parts.
The only this that is missing, is the USER
Can i just restore all the partitions one at a time with one of the tools mentioned in my post? Most of the tutorials i have see are restoring from rawnand.bin. Alternatively, is there a way to compile all my partitions into the full rawnand.bin?
 

HtheB

Well-Known Member
Member
Joined
May 15, 2006
Messages
878
Trophies
1
Age
36
Location
Bize Her Yer Trabzon
Website
www.HtheB.com
XP
3,095
Country
Netherlands
Can i just restore all the partitions one at a time with one of the tools mentioned in my post? Most of the tutorials i have see are restoring from rawnand.bin. Alternatively, is there a way to compile all my partitions into the full rawnand.bin?
Yes it's possible, but it's a dangerous thing to do if something goes wrong though.
 

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
Can i just restore all the partitions one at a time with one of the tools mentioned in my post? Most of the tutorials i have see are restoring from rawnand.bin. Alternatively, is there a way to compile all my partitions into the full rawnand.bin?

It is better to joiner them into one called rawnand.bin And it should be 31.268.536.320 bytes in size, which equals roughly 29.12 GB.
 
  • Like
Reactions: whobroughtben

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
Yes, there is a joiner to one file and restore tutorial since you already backup it ... here it is:

https://gbatemp.net/threads/backup-...-your-biskeys-tseckeys-keys-txt-guide.513386/
Looking at that post for merging the files into one, it mentions 15 or 30 parts. It doesn’t look like I have 15 or 30 parts (I only count 10 under partitions). That post however is the one I followed for backing up my nand before I applied any CFW to my switch. It also doesn’t seem I backed up my user partition (if that matters at all).
 

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
Looking at that post for merging the files into one, it mentions 15 or 30 parts. It doesn’t look like I have 15 or 30 parts (I only count 10 under partitions). That post however is the one I followed for backing up my nand before I applied any CFW to my switch. It also doesn’t seem I backed up my user partition (if that matters at all).

Correct. I had one that dumped from ReiNX was only 9 parts and joiner them into one file and GB/bytes match. There are 9, 15, or 30 parts depending on what program dumping NAND backup. :)

What pgraom did you used to dump nand backup ?
 
  • Like
Reactions: whobroughtben

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
Correct. I had one that dumped from ReiNX was only 9 parts and joiner them into one file and GB/bytes match. There are 9, 15, or 30 parts depending on what program dumping NAND backup. :)

What pgraom did you used to dump nand backup ?
Oh that’s good to hear! I actually followed that post you mentioned for backing up my nand (Hekate).
 
  • Like
Reactions: spotanjo3

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
I tried running that script, but it doesn't work. Looking at the code, its looking for some split files:
Code:
cat rawnand.bin.00 rawnand.bin.01 rawnand.bin.02 rawnand.bin.03 rawnand.bin.04 rawnand.bin.05 rawnand.bin.06 rawnand.bin.07 rawnand.bin.08 rawnand.bin.09 rawnand.bin.10 rawnand.bin.11 rawnand.bin.12 rawnand.bin.13 rawnand.bin.14 > rawnand.bin
 

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
I found some code rajkosto wrote for restoring hekate_ipl dumped eMMC partitions to RawNand.bin:
https://gbatemp.net/threads/hekate-ipl.502492/page-3

This looks to have worked for joining my partitions, but i don't have the USER partition, so my rawnand backup is only 2.6G. Do i need the USER partition to restore? Does it matter if i dump my USER partition now, after running CFW?
 

Garou

Well-Known Member
Member
Joined
Jan 13, 2015
Messages
1,213
Trophies
0
XP
1,667
Country
I could've sworn I've answered similar question recently

687474703a2f2f73706c61746f6f6e2e65752f7377697463682f4e784e616e644d616e616765725f76312e312e706e67


That's from NxNandManager, you can try restoring each of your partition files using the Restore from file menu like in the picture above
HacDiskMount should have similar option to do this

Make your current NAND backup before doing this just to be safe
 

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
Thanks, I think I’ll try the last script I found to join all the partitions into a single rawnand binary.

Does the USER partition store and CFW data? Since I didn’t get a backup of it before running CFW, will I need to wipe it before joining all the partitions?
 

XaneTenshi

Well-Known Member
Member
Joined
Nov 24, 2013
Messages
506
Trophies
0
Age
34
XP
1,124
Country
Denmark
Thanks, I think I’ll try the last script I found to join all the partitions into a single rawnand binary.

Does the USER partition store and CFW data? Since I didn’t get a backup of it before running CFW, will I need to wipe it before joining all the partitions?

Just wondering, did you see my reply to you in this thread? https://gbatemp.net/threads/rcm-payload-hekate-ctcaer-mod.502604/page-134

Pretty sure all nsp installs etc. is saved on the USER partition, in which case, yes, it stores content from CFW.
 
  • Like
Reactions: whobroughtben

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States

Canna

Bad Ass Poisonous Mushroom
Member
Joined
Jul 14, 2018
Messages
1,396
Trophies
0
Age
36
Location
AZ
XP
1,539
Country
United States
Thanks, sorry I missed your reply there!

Is there any adverse effects with mounting via HacDiskMount and deleting everything from USER before restoring?
Hell boy don't do that
your brick your switch...

Tell me exactly what it is your like to do ..
If you followed my guide to fully backup your switch now and get the biskeys then we can continue with what ever it is you want to do
so what was that again ?
 
Last edited by Canna,

whobroughtben

Well-Known Member
OP
Newcomer
Joined
Nov 14, 2018
Messages
93
Trophies
0
Age
35
XP
802
Country
United States
Hell boy don't do that
your brick your switch...

Tell me exactly what it is your like to do ..
If you followed my guide to fully backup your switch now and get the biskeys then we can continue with what ever it is you want to do
so what was that again ?
I would like restore my switch in preparation for emunand, I have a nand backup of every partition except for USER prior to running any CFW.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://youtu.be/ab8GtuPdrUQ +1