paulhoule / tentacruel

MIT License
0 stars 0 forks source link

Is there a volume id embedded in the cid names seen on a USB stick #22

Closed paulhoule closed 5 years ago

paulhoule commented 5 years ago

There is something that looks like a guid in the cid names that was the same when I plugged the same USB stick into different HEOS devices. What I wonder is do you see a different guid for a different USB stick which would be useful as a volume id.

paulhoule commented 5 years ago

Here is what I see in Linux:

paul@tamamo:~$ blkid
/dev/sda1: UUID="EF55-8DF4" TYPE="vfat" PARTUUID="e2a7ecc1-b6c0-41c8-af88-6daad2cc6af8"
/dev/sda2: UUID="18a1d54e-266e-40bb-893d-36a5456915ec" TYPE="ext2" PARTUUID="50a15137-6019-4bad-8e2a-c4a0e9a99057"
/dev/sda3: UUID="SeSAST-V989-2eWk-0gbw-Np8z-1Gmj-SkXhPq" TYPE="LVM2_member" PARTUUID="c477c19b-f92b-46d7-bc27-0a6cdb1a476d"
/dev/sdc1: LABEL="tamamo-no-mae" UUID="11125636551743123169" UUID_SUB="17875135226538789216" TYPE="zfs_member" PARTLABEL="zfs-bce5748688d023be" PARTUUID="df0a9e7f-5f74-b246-99a8-938e8117ce2e"
/dev/sdb1: LABEL="tamamo-no-mae" UUID="11125636551743123169" UUID_SUB="16490093533911484559" TYPE="zfs_member" PARTLABEL="zfs-1cde04eef410833e" PARTUUID="dfb23b00-ece7-0b4b-9f6e-92c27274fc12"
...
/dev/sdd1: LABEL="V2" UUID="F01A-D46D" TYPE="vfat" PARTUUID="ff4945ce-01"

The important one is at the bottom, this one:

/dev/sdd1: LABEL="V2" UUID="F01A-D46D" TYPE="vfat" PARTUUID="ff4945ce-01"

It seems that Windows writes something shorter than a full UUID in the UUID fields so probably HEOS is doing some hash on the data to produce a UUID-alike.

paulhoule commented 5 years ago

It is not clear how to see that guid on a non-HEOS platform but HEOS seems to consistently see the same usb stick associated with the same same cid