Hey guys,
A lot of you were asking if there is an image for xyz GB microSD cards or how to increase the Nintendo Switch partition size to use the same card for the regular Switch OS and Android.
Well, I had the same requirements, therefore I made an
interactive bash script that does exactly that. All you need is a Linux environment to run the script on. This can also be an Ubuntu Live-USB Stick for example.
Unfortunately, this is my first post. Therefore, I cannot include any external links. But you can find everything on
GitHub under
Gabri3lZ/SwitchrootAndroidUtils.
https://github.com/Gabri3lZ/SwitchrootAndroidUtils
The script lets you decide what size the Android user partition should have, and it will use the rest of the free space for the FAT32 partition for the Nintendo Switch. It also allows to create an additional partition for EMUMMC (for those who want to run homebrew apps on the Switch and want to reduce the risk of getting banned). The script has the following advantages over using Etcher to flash the image:
- Size for Nintendo Switch partition and Android user partition can be defined by the user
- Support for an additional partition for EMUMMC
- No wasted space on the microSD card, no matter what size the card has
- The whole process is faster, because it does not dump Gigabytes of empty partition data to the microSD card
- No fragmentation or breaking the (hybrid MBR) partition table because of moving and resizing partitions
- The partitions are properly aligned (to 1 MiB)
The script is interactive. So you can choose the device you want to flash the image onto and the partition size while the script runs. Here is how to use it:
- Download the 16GB image from Switchroot's XDA-Developers post and extract the ZIP file.
- Download "flash.sh" to the same directory where the image is.
- Open Terminal emulator and navigate to the directory where the image and script are (in Ubuntu, you can use the File explorer to navigate there, right click the folder and select "Open in Terminal").
- Execute the script and pass the path to the Android image as a parameter:
Code:
sudo ./flash.sh ./android-16gb.img
- Follow the instructions in the interactive script.
- Follow the remaining instructions in the XDA-Developers post (from step 3).
Hope you enjoy. If there is any feedback about the script, please let me know here or on GitHub.