Like my work?
Support me on https://ko-fi.com/natrox!
[Changelog]
2022-11-04 - v0.2.0 - Added functionality to exclude folders from the migration, users can pick which ones to skip from an optional menu.
2022-10-30 - v0.1.0 - Initial release.
Original post:
Hello everyone!
I am happy to announce that I have released a new utility for MiSTer; the SD Card Migration Utility!
You can use this utility to migrate to another SD card. You can even migrate to a smaller card if you wish - as long as the space used on your source SD card does not exceed the capacity of the new SD card.
No more will you need to use MrFusion to set up a new SD card and copy files over manually! This utility runs from your MiSTer and does everything for you. After it finishes, the SD card is ready for use right away.
Limitation: It won't work with SD cards that are 2TB or larger - but good luck finding one of those!!
Description: (copied from my repository):
This utility can be used on a running MiSTer system to migrate to a new SD card.
A USB SD card adapter is required to be connected to your MiSTer.
The target SD card can be of any size - as long as it can fit all of the data on the source SD card.
It performs a number of checks to make sure that the migration will be successful.
A key feature of this utility is that it looks at the source SD card's disk geometry and reproduces the required geometry on the new SD card.
This means that the U-Boot partition located at the tail-end of the disk is copied over, while the rest of the card is formatted to exFAT for data use.
All of the original data is copied over by default - version 0.2.0 introduces folder filtering, giving you the option to skip folders if you so desire. This utility is designed to be run from the MiSTer main menu, it will guide you through disk selection and it performs the necessary checks. During the process, it will freeze the main MiSTer binary to ensure file integrity.
It can also be used to make a backup SD - although it is not suitable for incremental backups.
Download:
For wget: https://raw.githubusercontent.com/Natro ... rate_sd.sh
GitHub viewer: https://github.com/Natrox/MiSTer_Utils_ ... rate_sd.sh
Repository: https://github.com/Natrox/MiSTer_Utils_Natrox
Installation:
Download "migrate_sd.sh" in whatever way you please, and put it in the "/media/fat/Scripts" folder on your MiSTer!
You can then run it from the main menu like any other script.
I hope you will find this script useful. Please let me know if you have any questions, problems or nice words.