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?