How rename an Volume (partition) with Objective-C or perl,python, ruby,sh,applescript?
I create vhd in different formats (NTFS, FAT32, FAT16, HFS +), I do not find the way to get the $ Volume_name offset of an NTFS partition, plus I would like to convert a string to $ Volume_name. By observing the $ Volume_name of an NTFS partition I was able to see that the string is cut (after each character there is a null character example what we read in hexadecimal of the volume_name that would be "WIN10EN" and in hexa "57494e3130454e" if we go to the offset of $ volume_name we will read with a hexadecimal editor 570049004e003100300045004e and its representation ascii "W I N 1 0 E N".
Hence my question is there a command to obtain the offset of $ Volume_name (the offset is in byte 15776 or 0x3DA0 on a vhd of 2 giga size) ?
Is there a string conversion to name a Volume?
Thank you for your answers
OS X Yosemite (10.10.5), null