1
I'm curious as to where OSX stores the names of mounted volumes. For example, if I connect my external USB hard drive, mount it and change the name to something else, how does OSX remember the name the next time I mount it? It seems like this should be stored on the volume itself, but I don't see any file that might contain this name. The only file that's created is the ".DS_Store" file, but this does not contain the volume name as far as I can tell.
If it's not store on the volume then how does the OS realize it's the same device being connected?
Actually it may be stored on the volume itself, but not in a file. I'm not 100% certain however of where it is on the disk. I believe it is stored in what Apple calls the "Finder Info" of the volume. The volume identifier (which is not an UUID and is 64 bits only) is stored there. The UUID that Apple shows you is computed every time for display purposes using the Version 3 UUID algorithm from the volume id and a fixed "namespace" id. The UUID that is stored in the GPT is a separate thing (Apple calls it the "Media UUID"). – Analog File – 2014-12-02T22:38:03.907