RELEASE NANDPart

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by blawar, Apr 25, 2019.

  1. blawar
    OP

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    NANDPART
    Windows application to resize the Nintendo Switch USER partition when a larger system NAND is installed.

    Installation
    pip3 install pyqt5 wmi zlib

    NAND Upgrade Guide
    1. Ensure you have your biskeys, if you do not, lookup a tutorial on how to get them.

    2. Use Hekate to take a backup of boot0 and boot1.

    3. Download memloader from https://switchtools.sshnuke.net/, copy everything inside of the "sample" directory to your SD root.

    4. Reboot your switch and launch the memloader RCM payload (leave USB cable connected).

    5. Use NxNandManager (https://github.com/eliboa/NxNandManager) to take a full nand backup to your PC.

    6. Turn off your switch, disassemble it, and install the new upgraded NAND.

    7. Boot into Hekate, and restore boot0 and boot1. The first time you try it, it should fail, take note of the directory it is trying to restore the backups from, and move your boot0 and boot1 backups into that directory, then restore again.

    8. Power off the switch, launch the memloader payload (leave USB cable connected).

    9. Use win32diskimager to flash your 32GB NAND backup to your switch.

    10. Use hacdiskmount to mount your user partition using your BIS keys (either use the backup image you took earlier which is faster, or mount the actual switch).

    11. Copy all of the files from the user partition to a safe place on your PC, then unmount and close hacdiskmount.

    12. Launch NANDPart, select your switch from the dropdown, verify the partitions look correct, then click "resize".

    13. Launch hacdiskmount and mount your USER partition using your BIS keys and actual switch.

    14. Bring up a windows command prompt with admin rights, and run "fat32format.exe X:" where X: is the drive of your mounted user partition.

    15. Copy all of your backed up user partition files back to the switch's newly created user partition.

    16. Reboot into CFW and ensure everything is working correctly.

    https://github.com/blawar/nandpart
     
  2. Sumandora

    Sumandora Im using Parental Controls. Change my Mind!

    Member
    4
    Nov 13, 2018
    Germany
    python Error:
    Code:
    C:\Users\MyNameIs>pip3 install pyqt5 wmi zlib
    Collecting pyqt5
      Using cached https://files.pythonhosted.org/packages/b2/87/219cd547c0deb902edd3fdbf1af01409f7f9d251344b9154d878203cf841/PyQt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-none-win_amd64.whl
    Collecting wmi
      Using cached https://files.pythonhosted.org/packages/03/2d/cbf13257c0115bef37b6b743758411cec70c565405cbd08d0f7059bc715f/WMI-1.4.9.zip
    Collecting zlib
      Could not find a version that satisfies the requirement zlib (from versions: )
    No matching distribution found for zlib
    You are using pip version 19.0.3, however version 19.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
     
  3. blawar
    OP

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    remove zlib from the pip3 install line, it’s standard in python , ill update the readme.
     
  4. Techjunky90

    Techjunky90 GBAtemp Fan

    Member
    6
    Apr 7, 2017
    United States
    I'll just leave this here.
    unknown-3-1-1.
     
    Last edited by Techjunky90, Apr 26, 2019
    satel, 98otiss, Punche and 1 other person like this.
  5. Sumandora

    Sumandora Im using Parental Controls. Change my Mind!

    Member
    4
    Nov 13, 2018
    Germany
    if i now would know how to :D i hate Py
     
  6. blawar
    OP

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    just run:

    pip3 install pyqt5 wmi
     
    Sumandora likes this.
  7. Sumandora

    Sumandora Im using Parental Controls. Change my Mind!

    Member
    4
    Nov 13, 2018
    Germany
    ty
     
  8. AnalogMan

    AnalogMan ultraSuMoFramework Dev

    Member
    12
    Apr 20, 2007
    United States
    So you actually released it. Thought it was gonna be closed source, lol.
     
  9. blawar
    OP

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    I have a closed source version too, that is easier, and runs on the switch.
     
  10. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    Nice. I'll keep this in my back pocket for when 256gb NAND chips get a bit more affordable.
     
  11. sthetix

    sthetix Member

    Newcomer
    4
    Dec 25, 2015
    Indonesia
    For those who have problem running this nandpart.py, here's how to solve it

    Install the latest python with PATH enabled.

    then run this pip3 install pyqt5 wmi --user

    then if you got some more error like ModuleNotFoundError: No module named 'win32com' after executing the nandpart.py, try this command

    pip install pywin32 --user

    then run again

    python nandpart.py

    [​IMG]

    [​IMG]
     
    Last edited by sthetix, May 28, 2019
    Hernie likes this.
  12. pcwizard7

    pcwizard7 GBAtemp Fan

    Member
    4
    Aug 2, 2013
    Australia
    where the best place to go for larger nand flash chips?
     
  13. blawar
    OP

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    Not sure to be honest, people have to make them. I would do it, but it would not be worth my time unless it was around $150 shipped, which i think is outside most people's price point.
     
  14. Hayato213

    Hayato213 GBAtemp Guru

    Member
    12
    Dec 26, 2015
    United States
  15. lieder1987

    lieder1987 Advanced Member

    Newcomer
    5
    Sep 24, 2017
    United States
  16. CrisFTW

    CrisFTW GBAtemp Maniac

    Member
    8
    Jan 10, 2016
    United States
    Is it possible to resize SXOS emunand with this? Would love to see a 900GB Nand with a 1TB SD
     
  17. ModderFokker619

    ModderFokker619 GBAtemp Advanced Fan

    Member
    6
    Oct 2, 2015
    United States
    California
    stick267 likes this.
  18. lieder1987

    lieder1987 Advanced Member

    Newcomer
    5
    Sep 24, 2017
    United States
    PM me when you get pricing, very very interested. With a drop in solution it is a cake walk upgrade. Just dont have the soldering iron and heat gun to do it myself.
     
  19. ModderFokker619

    ModderFokker619 GBAtemp Advanced Fan

    Member
    6
    Oct 2, 2015
    United States
    California

    Waiting on modules from China :(

    Will offer both choices

    Ready to go

    Current 32GB reballed
     
    Last edited by ModderFokker619, May 28, 2019
  20. blawar
    OP

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    SX will not boot with modified partition tables.
     
Quick Reply
Draft saved Draft deleted