How is Android supposed to handle multiple partitions on an extern sd card?
As an experiment, I took a 64 GB SDXC card, looked at it in Gparted, it turns out it is exfat
formatted, with some amount of MB unallocated at start. Using gparted
and gnome-disks
, I managed to split the partition into two exfat
partitions, which should be around 32 GB each.
Inserted this into an Xperia Z2, stock ROM (the last Android 5.x update). The phone didn't put out any notification upon plug in of the sdcard, but notified the plug out of the card, and complained it should be unmounted first. I inspected a bit via adb logcat
and it looks like mounting is ultimately fine, as /storage/sdcard1
. But when I look at that via Settings/Storage, I can only see 29.12 GB for "SD Card". Plugging the card back at the PC, I can see only the first partition has Android files saved, not the second one. Same result if first partition is exfat
, and second partition is fat32
.
So, basically, is this the expected behavior of Android when presented with an SD card with two partitions - it just mounts the first one, and ignores the rest? Could I mount the second partition from say adb shell
, and would I need a rooted device for that?