1. Homlet

    OP Homlet Member
    Newcomer

    Joined:
    Feb 28, 2020
    Messages:
    26
    Country:
    France
    With the current climate of Nintendo take downs, I figured it'd be important to have NSP backups of games. I looked around and I've found no way to trivially dump emuMMC games to NSP without storing them on the Switch first.
    SwitchSDTool does exactly what I want, but as far as I know, it's been developed for use with sysMMC.

    Here's my guide on how to use SwitchSDTool in conjunction with other software to backup emuMMC games 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, Mar 7, 2020
    whateverg1012 likes this.
  2. blawar

    blawar Developer
    Developer

    Joined:
    Nov 21, 2016
    Messages:
    1,460
    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.
     
  3. Homlet

    OP Homlet Member
    Newcomer

    Joined:
    Feb 28, 2020
    Messages:
    26
    Country:
    France
    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, Mar 4, 2020
  4. blawar

    blawar Developer
    Developer

    Joined:
    Nov 21, 2016
    Messages:
    1,460
    Country:
    United States
    Yes, you can control+a and select all of them if you want. It does ~38 MB/sec
     
  5. Homlet

    OP Homlet Member
    Newcomer

    Joined:
    Feb 28, 2020
    Messages:
    26
    Country:
    France
    Welp :^)
    Since it's a SXOS users only feature (or if you have a SXOS license), it's not entirely useless
     
    Last edited by Homlet, Mar 3, 2020
  6. skullkeeper94

    skullkeeper94 Professional USB Corrupter
    Member

    Joined:
    Jun 21, 2016
    Messages:
    371
    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.
     
  7. linuxares

    linuxares I'm not a generous god!
    Moderator

    Joined:
    Aug 5, 2007
    Messages:
    7,475
    Country:
    Sweden
    https://github.com/DarkMatterCore/nxdumptool - this?
     
  8. skullkeeper94

    skullkeeper94 Professional USB Corrupter
    Member

    Joined:
    Jun 21, 2016
    Messages:
    371
    Country:
    United States
    linuxares likes this.
  9. Homlet

    OP Homlet Member
    Newcomer

    Joined:
    Feb 28, 2020
    Messages:
    26
    Country:
    France
    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, Mar 4, 2020
  10. skullkeeper94

    skullkeeper94 Professional USB Corrupter
    Member

    Joined:
    Jun 21, 2016
    Messages:
    371
    Country:
    United States
    I don't thiiiink there's anything like that YET. Don't quote me though.
     
  11. Homlet

    OP Homlet Member
    Newcomer

    Joined:
    Feb 28, 2020
    Messages:
    26
    Country:
    France
    So then my method does the trick :^)
     
  12. fvig2001

    fvig2001 GBAtemp Regular
    Member

    Joined:
    Aug 21, 2006
    Messages:
    276
    Country:
    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
     
  13. Homlet

    OP Homlet Member
    Newcomer

    Joined:
    Feb 28, 2020
    Messages:
    26
    Country:
    France
    That and leave your Nintendo folder alone. You can also just use the SwitchSDTool README
     
  14. Conor Duffy

    Conor Duffy Newbie
    Newcomer

    Joined:
    Apr 22, 2015
    Messages:
    2
    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, Mar 6, 2020
  15. DarkMatterCore

    DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,106
    Country:
    Venezuela
    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.
     
  16. Homlet

    OP Homlet Member
    Newcomer

    Joined:
    Feb 28, 2020
    Messages:
    26
    Country:
    France
    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, Mar 7, 2020
    DarkMatterCore likes this.
  17. DarkMatterCore

    DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,106
    Country:
    Venezuela
    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.
     
    linuxares likes this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - emuMMC, Guide, games