Tutorial  Updated

Guide: how to dump emuMMC games to NSP

Here's my guide on how to use SwitchSDTool in conjunction with other software to backup emuMMC title directly on a computer.

# Dump emuMMC titles to NSP

A detailed guide on how to dump titles located on emuMMC to NSP. Useful to backup an entire library in one go.

It implants the SYSTEM partiton (which contains import title data) of an emuMMC to a sysMMC so games can be dumped with SDSwitchTool.

## Requirements
- NxNandManager : https://github.com/eliboa/NxNandManager
- HacDiskMount : https://switchtools.sshnuke.net/
- SwitchSDTool : https://github.com/CaitSith2/SwitchSDTool
- Windows

## Prerequisites

- a sysNAND backup (might need to be on the same FW as your emuNAND, not sure)
- prod.keys (use Lockpick_RCM https://github.com/shchmue/Lockpick_RCM)

## Guide

1. Extract the required software into individual folders.

### Getting the SYSTEM partiton from your emuMMC
1. Turn off your switch and eject the SD card.
2. Mount the SD card on your computer.
3. Open NxNandManager then open new drive (CTRL + D).
4. Select the drive labelled "FULL NAND".
5. Scroll down to the SYSTEM partiton, right click it and select "Dump to file".
6. Save the SYSTEM partiton somewhere handy.

### Patching the sysNAND with the SYSTEM partiton
1. Open NxNandManager then open file (CTRL + O).
2. Go to your sysNAND backup folder and open rawnan.bin or rawnand.bin.00.
3. Scroll down to SYSTEM, right click and select "Restore from file".
4. If your backup is split in multiple parts, click on "FULL DUMP" to save your backup to rawnand.bin which is readable by HacDiskMount.
5. Close NxNandManager once it's done.

### Decrypt and mount the SYSTEM partition
1. Open up hac disk mount with administrator priveleges (this is mandatory in order to install the Virtual Drive driver.).
2. Open up rawnand.bin in HacDiskMount.
3. Double click on "PRODINFO".
4. In the "Crypto" field, paste the first half of bis_key_00 from prod.keys. Paste the second half in "Tweak".
5. Click on "Test". Make sure the result says "Entropy OK".
6. Click on "Browse" in the "Dump to File" area, and browse to the location where you extracted SwitchSDTool.
7. Click on "Start".

////

8. Close the PRODINFO window.
Double click on SYSTEM.
9. In the "Crypto" field, paste the first half of bis_key_02 from prod.keys. Paste the second half in "Tweak".
10. Click on "Test". Make sure the result says "Entropy OK".
11. In the "Virtual drive" area, click on "Install".
12. Click on "Mount" to mount the virtual drive to "A:".

### Dump the games to NSP using SwitchSDTool

#### Prepare your SD card
1. At the root of your SD card, rename the "Nintendo" folder to something else (e. g. "NintendoOLD").
2. Cut the emuMMC "Nintendo" folder (typically located in \emuMMC\RAW1) and paste it at the root of your SD card.

#### Setup SwitchSDTool
1. Copy prod.keys to the folder where you extracted SwitchSDTool, and rename it to "keys.txt".
2. Open SwitchSDTool (f it returns an error, make sure .NET Framework 4.7.1 is installed).
3. Click on "Select SD Folder". Choose the Drive that the SD is mounted to.
4. Click on "Select System Path". Choose the drive letter you mounted the SYSTEM partition on. (A: drive by default).
5. Click on "Select Decryption Path". Choose where you want the decrypted NCAs to be (creating a new "NCA" folder is recommended).
6. Click on "Select NSP Output Path". Choose where you want your NSP dumps to be saved(creating a new "NSP" folder is recommended).
7. Get the "eticket_rsa_kek" value (Google it if you don't have it in keys.txt) and paste it the field.
8. Click on "Find SD Key". The log should say "SD Key Loaded".
9. Click on "Load RSA KEK". The log should say "RSA Key extracted successfully from PRODINFO.bin".

### Extracting NCAs and dumping NSPs
1. Click on "Extract Tickets". The log should say "Dumping Tickets" followed shortly by "Done. n Tickets dumped".
2. Click on "Decrypt NCAs". The log should show a bunch of "Processing --file--.nca - Decrypting, Done. Verifying, Verified (may also start with Joining, Done).
3. Click on the Games Tab, then Click on "Parse NCAs". After it is done parsin, all of your games present on the SD card should be listed, along with any update and DLC.
4. Click on your preferred language, and move it to the top by clicking on "Move Up". Order them by preference, the preferred ones being on top.
5. Click on "Pack ALL NSPs" to pack everything. To select one or more games, click on "Pack Selected NSP" to only pack your selection of NSPs.
6. The process may take a while depending on the size of your selection.

### Final steps
1. Close SwitchSDTool.
2. In HacDiskMount, unmount the SYSTEM partiton and close the software.
3. Cut the emuNAND "Nintendo" folder at the root of your SD to its original location (\emuMMC\RAW1).
4. Rename your original Nintendo folder to "Nintendo".
5. Eject your SD card, plug it into your Switch .


## Thanks

- Eliboa for NxNandManager
- rajkosto for HacDiskMount
- CaitSith2 for SwitchSDTool. This guide is pretty much ripped off from his README, but tweaked for emuNAND
GitHub page (proper markdown rendering) : https://github.com/HamletDuFromage/DumpEmuMMC2NSP

Advantages over on-Switch dumping :
NXDumpTool already allows you to dump games but needs concatenation for > 4Gb games. It also only lets you save your backups to the SD card which forces sequential dumps. That could be annoying if you have very little space left. That being said, it's probably a good idea to use it for most people.
I agree that my process looks a bit tedious, but it's really not hard, and very fast once you get the hang of it.
 
Last edited by Homlet,
  • Like
Reactions: whateverg1012

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
Tinfoil's MTP lets you copy paste them from your switch to your PC via MTP (< 4GB). May try to get > 4GB working for non-windows.

It dumps them on the fly when you try to copy them.
 
  • Like
Reactions: f0li0

Homlet

Well-Known Member
OP
Member
Joined
Feb 28, 2020
Messages
588
Trophies
0
XP
2,480
Country
France
Tinfoil's MTP lets you copy paste them from your switch to your PC via MTP (< 4GB). May try to get > 4GB working for non-windows.

It dumps them on the fly when you try to copy them.
Can you select multiple files a time? that was the motivation behind it. And yeah, my method also works with big files.

And speeds are probably better if you do it on a computer directly
 
Last edited by Homlet,

skullkeeper94

Professional USB Corrupter
Member
Joined
Jun 21, 2016
Messages
390
Trophies
0
XP
1,672
Country
United States
Not very helpful since I can't remember the name of the homebrew but it's something you'd expect like Title Dumper or something. All you'd need to get is your keys and you can dump both cartridge and installed NSP's.
 

Homlet

Well-Known Member
OP
Member
Joined
Feb 28, 2020
Messages
588
Trophies
0
XP
2,480
Country
France
Not very helpful since I can't remember the name of the homebrew but it's something you'd expect like Title Dumper or something. All you'd need to get is your keys and you can dump both cartridge and installed NSP's.
Sure, but (and correct me if I'm wrong) nxdumptool saves the content to your SD card, which is less than ideal when you don't have much space left in there. Not to mention it adds unecessary writes cycles to the SD card.
For files bigger than 4gb on fat32, you have manually merge the games.

Also, you don't have do dump your entire library each time wen do you do a backup with my method, only games that weren't previously backed up are dumped, and you can easily pick and choose the games you want to dump.

I was looking for a way to dump games directly from my computer because I didn't want to use NXdumpTool, and I figured I'd share my findings
 
Last edited by Homlet,
  • Like
Reactions: jasonhk

skullkeeper94

Professional USB Corrupter
Member
Joined
Jun 21, 2016
Messages
390
Trophies
0
XP
1,672
Country
United States
Sure, but (and correct me if I'm wrong) nxdumptool saves the content to your SD card, which is less than ideal when you don't have much space left in there. Not to mention it adds unecessary writes cycles to the SD card.
For files bigger than 4gb on fat32, you have manually merge the games.

Also, you don't have do dump your entire library each time wen do you do a backup with my method, only games that weren't previously backed up are dumped, and you can also easily pick and choose the games you want to dumps

I was looking for a way to dump games directly from my computer because I didn't want to use NXdumpTool, and I figured I'd share my findings
I don't thiiiink there's anything like that YET. Don't quote me though.
 

fvig2001

Well-Known Member
Member
Joined
Aug 21, 2006
Messages
920
Trophies
1
XP
2,877
Country
Philippines
So if I were to just do this with a normal unemulated NAND, I would just do:
### Decrypt and mount the SYSTEM partition and below? I would probably do this for games with bigger updates
 

Homlet

Well-Known Member
OP
Member
Joined
Feb 28, 2020
Messages
588
Trophies
0
XP
2,480
Country
France
So if I were to just do this with a normal unemulated NAND, I would just do:
### Decrypt and mount the SYSTEM partition and below? I would probably do this for games with bigger updates
That and leave your Nintendo folder alone. You can also just use the SwitchSDTool README
 

Conor Duffy

New Member
Newbie
Joined
Apr 22, 2015
Messages
2
Trophies
0
Age
36
XP
1,079
Country
Ireland
NXNandManager keeps telling me KEYSET NEEDED and DECRYPTION FAILED for my emuNAND, works fine for SysNAND?

EDIT: Issue was to do with my emuNAND partition, wiped it our and re-created it and all working fine now
 
Last edited by Conor Duffy,

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,602
Country
Spain
Hi there. I just want to clarify some small points.

Advantages over on-Switch dumping :
Blawar's Tinfoil (SXOS license only) and NXDumpTool already allow you to dump games but are limited to <4Gb games, and don't automatically skip previously dumped games.

This isn't really true. At least not for nxdumptool.

You can dump any installed eMMC/SD title as long as the available storage space allows for it. Titles bigger than 4 GiB are simply split under FAT32. And if a certain title has already been dumped, you'll be asked if you want to replace the existing dump or not.

There are options available in the batch dump mode that also let you have finer control over what gets skipped or not. There's a "Remember dumped titles" option that's specially helpful for what you want to achieve.

NXDumpTool also only lets you save your backups to the SD card which makes it unusable for people with a SD card that is more than half full.

That's why sequential/sparse dumping has been a thing since a couple of versions now. It works like the eMMC dump feature from Hekate when the SD card isn't big enough. Works for both XCI and NSP dumps.

I'm currently working on a full application rewrite. Dumping content to USB mass storage devices under Atmosphère is one of the things that will be accomplished.

Not to mention it adds unecessary writes cycles to the SD card.

I believe this would be the only actual downside. Dumping to a PC is also on my plans, albeit with a much lower priority since a companion app must be developed as well.
 

Homlet

Well-Known Member
OP
Member
Joined
Feb 28, 2020
Messages
588
Trophies
0
XP
2,480
Country
France
Hi there. I just want to clarify some small points.



This isn't really true. At least not for nxdumptool.

You can dump any installed eMMC/SD title as long as the available storage space allows for it. Titles bigger than 4 GiB are simply split under FAT32. And if a certain title has already been dumped, you'll be asked if you want to replace the existing dump or not.

There are options available in the batch dump mode that also let you have finer control over what gets skipped or not. There's a "Remember dumped titles" option that's specially helpful for what you want to achieve.



That's why sequential/sparse dumping has been a thing since a couple of versions now. It works like the eMMC dump feature from Hekate when the SD card isn't big enough. Works for both XCI and NSP dumps.

I'm currently working on a full application rewrite. Dumping content to USB mass storage devices under Atmosphère is one of the things that will be accomplished.



I believe this would be the only actual downside. Dumping to a PC is also on my plans, albeit with a much lower priority since a companion app must be developed as well.
Well, now I rightfully feel dumb. It just skimmed through the README and I didn't actually try your software. I would say that the sequential dumb is less than ideal though, considering it could take a high amount of dumps depending on the game library / storage available ratio. I was not trying in any way to diminish your work. It's an amazing piece of software and way easier to use than my hacky method. I edited the OP, let me know if it's alright
 
Last edited by Homlet,
  • Like
Reactions: DarkMatterCore

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,602
Country
Spain
Well, now I rightfully feel dump. It just skimmed through the README and I didn't actually try your software. I would say that the sequential dumb is less than ideal though, considering it could take a high amount of dumps depending on the game library / storage available ratio. I was not trying in any way to diminish your work. It's an amazing piece of software and way easier to use than my hacky method

No problem, mate. It's OK. I just wanted to clarify those points. :)

This dumping method is perfectly valid as well. Even more so considering it can be used to dump eMMC content if you don't want to run any CFW on it - homebrew applications can't access the physical eMMC under an emuMMC, after all.

The sequential dump option is just there because not everyone owns a SD card with big storage capacity. It's not really a common thing around third world countries like mine.
 
  • Like
Reactions: linuxares

megatron_lives

Well-Known Member
Member
Joined
Jul 6, 2006
Messages
287
Trophies
1
Age
40
Location
Hampshire
Website
www.enthalpynet.co.uk
XP
484
Country
Tinfoil's MTP lets you copy paste them from your switch to your PC via MTP (< 4GB). May try to get > 4GB working for non-windows.

It dumps them on the fly when you try to copy them.

When I plug my switch into my PC, the Tinfoil (latest 8.0 release) only shows the firmware and SDcard folders; no installed etc. as stated on the Tinfoil documentation (see https://blawar.github.io/tinfoil/mtp/). Can anyone advise, please?

thanks
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    LeoTCK @ LeoTCK: yes for nearly a month i was officially a wanted fugitive, until yesterday when it ended