Skip to content

Instantly share code, notes, and snippets.

@Karunamon
Last active April 19, 2024 07:41
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Karunamon/d3938368c548a61a5a41281bb89f0e49 to your computer and use it in GitHub Desktop.
Save Karunamon/d3938368c548a61a5a41281bb89f0e49 to your computer and use it in GitHub Desktop.
Nintendo Switch reverting to stock with no NAND backup

Restoring your Switch to stock WITHOUT a NAND backup.

Just use Haku33, it is this but automated and safe. There is no reason for you to manually follow this process, it is dangerous!

Procedure by Nevercholt Tech (https://www.youtube.com/watch?v=gVjF_MKjSv8) - transcribed by Karunamon

Note: This procedure is somewhat advanced and, if you screw up, you are likely to hard brick your switch. *Proceed with caution!

Also note that this is a full reset. All save data, installed apps, everything will be lost.

What you need

You will require:

  • RCM Jig (or suitable paperclip)

  • A USB cable to connect your Switch to your Windows PC

  • A microSD card reader

  • The following software from https://switchtools.sshnuke.net/:

    • TegraRcmSmash
    • Memloaderv3
    • biskeydump
    • HacDiskMount
  • Zadig from https://zadig.akeo.ie/ (for the proper USB driver)

Step 1: Preparation

-1. Take a NAND backup, just in case. 0. Remove AutoRCM if it is installed. (IMPORTANT!)

  1. Hold the power switch, select power options, and shut down the console entirely.
  2. Ensure all software from the above list is extracted and ready to go.

Step 2: Keys

First we need to get your keys for a later step. This involves using biskeydump with TegraRcmSmash to push code to your switch from your PC.

  1. Insert your RCM jig (not your payload injector - we will not use it here.)
  2. Power the switch on while holding the Volume + key. You will get a black screen and nothing will appear to happen.
  3. Connect your switch to the PC. Windows should notice it was plugged in.
  4. Launch Zadig.
  5. On the top bar, make sure that "APX Device" is selected.
  6. On the right hand box, hit the down arrow until "libusbK (v3.0.7.0) is selected.
  7. Hit "install driver" and wait for completion.
  8. In your tools folder, drag the biskeydump.bin file onto TegraRcmSmash.exe
  9. The switch will boot to a screen with your keys and a QR code on it. Use a QR code reader app to scan the code, and email yourself the results. You can also press a key in the biskeydump screen to save the keys onto your SD card, but I like the email copy idea personally.

Step 3: Blowing out the cobwebs (and hacks)

  1. Connect the MicroSD card to your PC
  2. From the "sample" folder in your memloaderv3, copy the entire contents to the root of your SD card.
  3. Reinsert the SD card.
  4. Boot your switch into RCM recovery (jig in, vol+ held)
  5. Drag memloader.bin onto TegraRCMSmash
  6. Your Switch will display a menu. Using the volume keys, navigate to "umms_emmc.ini", and press the power button once.
  7. Run HacDiskMount as administrator
  8. From the file menu, select "open physical device"
  9. Look for a "Linux UMS disk" and select it.
  10. Open the SYSTEM partition in the new menu by double clicking
  11. From your email or text file back in step 2.9, fill the text boxes with the BIS key 2 crypto and tweak values. Press Test, it should complete successfully.
  12. Select a drive letter not in use currently on your PC (z: or a letter late in the alphabet is safe), press Install, then Mount. This will take a moment.
  13. On your PC, navigate to the drive letter you selected.
  14. Open the save folder.
  15. READ THIS BIT CAREFULLY - YOU WILL BRICK YOUR SWITCH IF YOU FOLLOW THE NEXT STEP WRONG!
  16. Select all files in this directory, and UNselect the file that begins with 8 and ends with 120 (it may also have a blank or nonsensical date in 1969)
  17. Delete all selected files. Again, make sure not to delete the 8.........120 file.
  18. Go back to hacdiskmount, and hit unmount, then close the window.
  19. Now, select USER
  20. Put in your BIS key 3 (note: 3, not 2 from the previous step), test, and mount.
  21. Navigate to the folder.
  22. Delete EVERYTHING in this directory. All folders, everything. Leave it completely blank.
  23. Unmount and disconnect from the PC.
  24. We're done with all the tools.

If you have an SD card inserted, now would be a great time to either wipe it, or at least copy the files elsewhere. I'm paranoid, and I don't want Nintendo to see the various homebrew tools and XCIs/NSPs I had in there.

Step 4: The hard part's over

  1. Remove your RCM jig.
  2. Power on your switch normally (without holding Vol+)
  3. Continue through the setup process, but skip the part where you enter your network connection.
  4. Continue until you reach the home screen. Navigate to settings, system, format options, and do a full factory reset.

Your Switch is now stock, and safe to use online.

Step 5: The test

  1. Once the factory reset is complete, your Switch is stock. There are two points at which you can get an error message if your console was banned:
  • Logging into Nintendo Network
  • Using the eShop
  1. Set up the Switch normally, including connection to the internet. If you've been hacked for a long time, you probably will need to update your system before logging into Nintendo Network. Don't worry, this doesn't mean you're banned.

  2. Do any update that the system wants (system menu, system, update)

  3. After the reboot, navigate to your user account and link it with Nintendo Network. If the link completes successfully:

  4. Open the eShop and try to download something free like YouTube.

IF STEPS 4 AND 5 COMPLETED SUCCESSFULLY, YOU ARE DONE! YOU HAVE REVERTED TO STOCK SUCCESSFULLY WITHOUT A BAN!!

If, on the other hand, you get an error message (2124-4007, 2124-4508), then your system is, regretfully, banned, and unable to access online services. You might as well reinstall your hacks.

I, personally, hacked my switch back when SX OS first came out, making sure to keep it offline. By following the above procedure, I reverted back to stock with no problems.

@martossz
Copy link

martossz commented Oct 25, 2020

I can't delete the file in USER with the biser 3 keys please help!

@tonywildey-valstro
Copy link

Thank you so much for this - been looking for a clean uninstall for 2 years - this is awesome !

@Hafidzgtg
Copy link

sorry your YouTube is dead🙏🏻....
https://www.youtube.com/watch?v=gVjF_MKjSv8

@denzelxrt
Copy link

Hey i followed everything but my switch does not get past the nintendo logo

@Karunamon
Copy link
Author

Karunamon commented Mar 3, 2021

Hey i followed everything but my switch does not get past the nintendo logo

Revisit all the steps from the beginning, making extremely sure you did not delete that file called out in step 3.16 - if you deleted it, you're in trouble.

I am not a switch hacking expert and won't be able to help you much, you may want to ask on gbatemp or elsewhere if that doesn't work. I just wrote this guide down from the (now deleted) video. by Nevercholt

@denzelxrt
Copy link

denzelxrt commented Mar 4, 2021 via email

@HieuenzoNitendo
Copy link

I have but still get the same error

On Wed, 3 Mar 2021, 6:05 pm Michael Parks, @.***> wrote: @Karunamon commented on this gist. ------------------------------ Hey i followed everything but my switch does not get past the nintendo logo Revisit all the steps bottom to top, making sure you didn't delete that file that was called out. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://gist.github.com/d3938368c548a61a5a41281bb89f0e49#gistcomment-3652504, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYQ6CPWEAE5IEF46OHJEK3TBZ26RANCNFSM4PZAHDOA .

Same too

@samriggio
Copy link

Thanks for this guide, Karunamon! Worked perfectly for me after running Atmosphere on sysEMMC for over a year.

@nwwj88
Copy link

nwwj88 commented Mar 29, 2021

My hard drive was dead and I've lost my nand backup, would this save me if I want to restore to stock?

@tonywildey-valstro
Copy link

My hard drive was dead and I've lost my nand backup, would this save me if I want to restore to stock?

I was ok without my nand backup - this blows everything away - however if you get anything wrong - you are probably hosed ...

@giuseppe1193
Copy link

hello, I'm stuck in step 4 in the part 11, because after I insert the BIS key 2 and press TEST it gives me the error "FAIL! Entropy: 7.989 (tested 16384 out of 16384 bytess)" what can I do? thanks

@Thediaa
Copy link

Thediaa commented Jun 24, 2021

I get stuck on 3.9, where HacDiskMount says; 'Invalid CRC in secondary GPT (and primary is corrupt)'. Any idea what to do?

@Thediaa
Copy link

Thediaa commented Jun 24, 2021

image

@Kupie
Copy link

Kupie commented Jul 7, 2021

This is the same thing that Haku33 does, correct? https://github.com/StarDustCFW/Haku33

@Karunamon
Copy link
Author

Karunamon commented Jul 7, 2021

@Thediaa did you disable AutoRCM before starting?

@Dead-kiD
Copy link

Dead-kiD commented May 8, 2023

Hello. Can it restore the serial number without prodinfo backup?

@Karunamon
Copy link
Author

This is the same thing that Haku33 does, correct? https://github.com/StarDustCFW/Haku33

Looks like it! There is no need for anyone to go through this process anymore

@CatFunt69420
Copy link

Just wanted to say that i appreciate this a lot, this is the 2nd time ive used this and it went very smooth. cant express how much i love this.

@novopact
Copy link

novopact commented Aug 4, 2023

Thank you, was very helpful your guide.

@zpx3redux
Copy link

This is probably a dead thread, but after the last step, factory reset then link Nintendo account. While performing the system update needed, I now have black screen. Tried from steps 3 and still the same. Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment