Search code examples
macoscocoarenamevolumensfilemanager

How to change volume name using cocoa on Mac OS X


I am trying to change the name of the volume on a flash (USB) drive. I have tried different ways:

  1. Disk Arbitration Framework
  2. Just rename using NSFileManager

Thanks in advance, Vladimir


Solution

  • Another way would be to use FSRenameUnicode.