relan / exfat

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

mkexfatfs -i claims to be setting the volume id. it doesn't. #127

Closed mhellwig closed 4 years ago

mhellwig commented 5 years ago

the volume id turns out to be some other random 32-digit hex number, not the one I set. Tried setting it with dashes and without - doesn't work. Please at least don't claim in the manpage that it does .. Gave me false hope for an hour.

relan commented 5 years ago

Could you show the exact command you used?

mhellwig commented 5 years ago

sure mkexfatfs -i <32 digits of hex goes here> -n XXXX-XXXX /dev/mmcblk0p1

where the XXXXes are also numbers. The command runs successfully and returns no error. The card is formatted. The label (XXXX-XXXX) is set correctly but the ID (the 32 hex digits) is NOT set to what I defined on the commandline, it's some completely unrelated other 32 hex digits.

relan commented 5 years ago

-i sets exFAT-specific, 4-byte (32-bit) ID.

You probably want to set GPT partition ID (32 hex digits constitute a 16-byte (128-bit) ID). If so, you should use a partition editor for that, e.g. parted.

mhellwig commented 5 years ago

huh. ok, so I misunderstood what it was doing. So apparently what Android uses to determine the mountpoint is the partition ID? I'll investigate ...

relan commented 4 years ago

Closing as there's nothing to do here.

drrossum commented 4 years ago

I'm running into the same issue. I don't have a GPT on the sdcard that I could set UUIDs for. What is the solution?

drrossum commented 4 years ago

From looking at the code I see the issue is that it does not discriminate a user-provided value of 00000000 from "undefined".