Skip to content

Instantly share code, notes, and snippets.

@dreamer2908
dreamer2908 / Some ways to change the serial number of exFAT partitions.md
Last active November 6, 2023 14:08
Some ways to change the serial number of exFAT partitions

(Note: limited usefulness, only for some specific uses. Or for fun, because it can be done.)

I want to upgrade the sdcard (32GB in FAT32) in my Android phone to a new 128GB one but I want the mount location to stay the same, i.e /storage/xxxx-xxxx (volume serial number, 8 random hex numbers like 1234-ABCD)

If I format the card, the volume serial number will be randomly generated, so the location changes. Thus, I need to re-allow file access right for some apps, fix some sync jobs, rebuild my music playlists, etc. :effort: I want to keep the serial number as-is.

One option is to clone the partition on the old card to the new one: the serial number will stay the same, and FAT32 does work with 128GB cards. But I don't want FAT32 anymore due to its 4GB file size limit as I want to carry large ISO and movie files. NTFS isn't supported because Lenovo doesn't pay Paragon or Tuxera to get their commercial NTFS drivers. So exFAT is selected.