Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The only way I've been able to find involves a somewhat poorly documented feature of the <code>hfs.util</code>.</p> <p>Run the <code>diskutil</code> command and then copy/remember/save the <code>Device Identifier</code>:</p> <pre><code>diskutil info /Volumes/my_drive_label | grep "Device Identifier" </code></pre> <p>You can use the <code>hfs.util</code> with the <code>Device Identifier</code> (replacing <code>disk2s1</code> below) from <code>diskutil</code> to (re)generate a UUID for your volume:</p> <pre><code>/System/Library/Filesystems/hfs.fs/hfs.util -s disk2s1 </code></pre> <p>Keep in mind this won't work for every volume, if the volume is not an HFS drive than it may not work, and other <code>Filesystem/*.fs/*.util</code> commands may not have a <code>-s</code> verb to generate UUIDs.</p> <p><strong>UPDATE</strong></p> <p>In Yosemite and after the <code>-s</code> flag has been disabled at the source level. I haven't been able to find a pre-modified version of <code>hfs.util</code>, but you can do it yourself using the information found in <a href="https://superuser.com/questions/344706/how-does-one-change-the-uuid-of-a-volume-on-mac-os-x-to-a-specified-value">this Superuser question</a>, summarized here:</p> <ol> <li>Download the hfs.util source <a href="https://opensource.apple.com/source/hfs/hfs-183.1/hfs_util/" rel="nofollow">from Apple</a> and extract it to a temporary folder</li> <li>Download hfs_fsctl.h <a href="https://opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/hfs/hfs_fsctl.h" rel="nofollow">from Apple</a> and put it in the hfs.util folder</li> <li>Change line <strong>47</strong> of <code>hfsutil_jnl.c</code> into <code>#include &lt;hfs_fsctl.h&gt;</code></li> <li>Change line <strong>80</strong> of <code>hfsutil_main.c</code> into <code>#include &lt;System/uuid/uuid.h&gt;</code> </li> <li>Change line <strong>81</strong> of <code>hfsutil_main.c</code> into <code>static unsigned char kFSUUIDNamespaceSHA1[] = {0xB3,0xE2,0x0F,0x39,0xF2,0x92,0x11,0xD6,0x97,0xA4,0x00,0x30,0x65,0x43,0xEC,0xAC};</code> (replacing the include line)</li> <li>Also add <code>#define HFS_UUID_SUPPORT 1</code> to <code>hfsutil_main.c</code> </li> </ol> <p>There might still be something missing in the argument parsing section if the above doesn't work, please reference the Superuser question and comment if I've missed something.</p> <p>Some people have also reported that it may be possible to use <a href="http://gparted.org/" rel="nofollow">Gparted</a> to change the UUID of a drive.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload