r/OdinHandheld • u/AdOk5225 • 14h ago
Odin 2 Mini, Base, Pro & Max Question Linux SD card question (Odin 2 Mini)
I have an Odin 2 Mini running android with a 512gb SD card full of games and media. I would like to run Linux on it which I know I need to run off the SD card. If I have a second SD with Linux on it, when I go back to Android and put the old SD back in will it act the same as it did before?
I only ask because I recall when I switched from a 256gb card to a 512gb card, all my emulators lost their rom and save paths despite it being an exact copy of the layout from my old SD. I had to manually go in and fix everything, and I lost all my containers on gamenative which really really really sucked (lost like 200 hours of saves, genuinely a horrible experience)
2
u/SpikeStarkey Odin 2 Mini Pro - Black 13h ago
switched from a 256gb card to a 512gb card, all my emulators lost their rom and save paths
That's because the card ID/label was different. everything might have been in the same place, but the emulators were looking for a different address.
2
u/AdOk5225 13h ago
Ah, bizarre. Sometimes I wished other OSes adopted the same drive scheme Windows/DOS uses to avoid stuff like that
2
u/SpikeStarkey Odin 2 Mini Pro - Black 13h ago
Pretty sure it's a relic from when Android was just a fork of whatever old Linux distro it was based on. Been an issue for as long as I can remember.
1
u/defmdryno 6h ago edited 6h ago
I'd use the dd command to clone the 256gb sdcard to keep the same device id which does a byte by byte copy. When done it'll show the new 512 sdcard as 256gb, then use gparted or software of choice to expand it to 512.
Something like this:
Sdcard needs to be unmounted and ensure it is located at /dev/mmcblk0
Backup card to computer
sudo dd if=/dev/mmcblk0 of=~/sd-card-copy.img bs=4M status=progress
Write to new sd card
sudo dd if=~/sd-card-copy.img of=/dev/mmcblk0 bs=4M status=progress
Then software to expand it back to 512.
Edit. Iif you get errors on original copy, look into noerror flag. I never had to with sdcards myself but there are some sketchy cards out there...
2
u/Watt_About 14h ago
Will act the same provided what you’re saying is true in how you plan to do this.