Question Restore NAND without rawnand.bin

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by whobroughtben, Mar 27, 2019.

  1. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    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!
     
  2. Hayato213

    Hayato213 GBAtemp Guru

    Member
    11
    Dec 26, 2015
    United States
    No NAND backup, no restore.
     
  3. HtheB

    HtheB GBAtemp Advanced Fan

    Member
    8
    May 15, 2006
    Netherlands
    Bize Her Yer Trabzon
    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
     
    whobroughtben likes this.
  4. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    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?
     
  5. HtheB

    HtheB GBAtemp Advanced Fan

    Member
    8
    May 15, 2006
    Netherlands
    Bize Her Yer Trabzon
    Yes it's possible, but it's a dangerous thing to do if something goes wrong though.
     
  6. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    11
    Nov 6, 2002
    United States
    Azores/Portugal
    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.
     
    whobroughtben likes this.
  7. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    United States
    Do you happen to know of any tutorials or tools to help with that?
     
  8. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    11
    Nov 6, 2002
    United States
    Azores/Portugal
    Last edited by azoreseuropa, Mar 27, 2019
    Canna likes this.
  9. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    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).
     
  10. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    11
    Nov 6, 2002
    United States
    Azores/Portugal
    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 ?
     
    whobroughtben likes this.
  11. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    United States
    Oh that’s good to hear! I actually followed that post you mentioned for backing up my nand (Hekate).
     
    azoreseuropa likes this.
  12. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    11
    Nov 6, 2002
    United States
    Azores/Portugal
    Great!
     
  13. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    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
     
  14. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    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?
     
  15. Garou

    Garou GBAtemp Maniac

    Member
    6
    Jan 13, 2015
    I could've sworn I've answered similar question recently

    [​IMG]

    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
     
    XaneTenshi and whobroughtben like this.
  16. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    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?
     
  17. XaneTenshi

    XaneTenshi GBAtemp Fan

    Member
    5
    Nov 24, 2013
    Denmark
    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.
     
    whobroughtben likes this.
  18. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    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?
     
  19. Canna

    Canna Bad Ass Poisonous Mushroom

    Member
    7
    GBAtemp Patron
    Canna is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 14, 2018
    United Kingdom
    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, Mar 28, 2019
    Mat37 and whobroughtben like this.
  20. whobroughtben
    OP

    whobroughtben Member

    Newcomer
    2
    Nov 14, 2018
    United States
    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.
     
Loading...