relan / exfat

Free exFAT file system implementation
GNU General Public License v2.0
779 stars 176 forks source link

[tools][feature request] Allow To Change Volume Serial Number ("ID") #166

Open maddes-b opened 3 years ago

maddes-b commented 3 years ago

Please consider adding a separate tool or extending the label tool to change the volume serial number of an exFAT file system (offset 0x64/100 in main boot sector). For FAT under Linux one can use mlabel -N 12345678 -i /dev/sdb1. I hope this is easy to implement as mkfs.exfat should already have all necessary components for it.

My use case: Replaced an old USB stick with a new one, formatted it with exFAT and copied all data from the old one to it. On the first usage I recognized that the old USB stick was also recognized by its volume serial number and not just the label. Either I had to find and change all places on all devices/PCs where the old serial number was recognized, or I create a new 1:1 copy of the USB stick. It was easier for me to reformat with mkfs.exfat -i 12345678 /dev/sdb1 and take again some time to copy all files. But it would have been much easier to just change the serial number if possible.

Thanks Maddes