Does anybody have a solution to change the 'Volume UUID' on Mac ?
I have this when using diskutil info from mac os x
deek5deek5
Diskutil Info /volumes/drivename Grep Uuid File2 Answers
Below is the applescript script to read UUID from an NTFS partition. All sudo are to be completed for your name and password, otherwise try removing the sudo. I do not advise you to modify the UUID, there is no information on their use. I left the inversion of the bytes in a very rudimentary way.
deek5deek5
I am not sure about Mac but why would you use NTFS there.But for Windows you could try the Set-Disk powershell command with the -Guid parameter.
Cheers,
Gabriel
Gabriel BerceaGabriel Bercea
Not the answer you're looking for? Browse other questions tagged macosterminalapplescriptuuidntfs or ask your own question.
Does anyone know how to change the UUID of a Volume? The background for this question is that I have a duplicate UUID issue:
I have
/Volumes/OldMacHD with a UUID of XYZ. I have /Volumes/Mirror1 with a UUID of XYZ (same UUID! I bet that's because OldMacHD USED to be part of this mirror). I got these UUIDs via:
I’d like to change the UUID of
Mirror1 .
I discovered by chance the
hfs.util utility, since these are HFS volumes after all. The man page for hfs.util says that if you issue the -s flag, this changes the UUID. However, if you type hfs.util all by itself, it doesn’t show you the -s option at all, just every option besides that! Grr. I tried it anyway:
Nothing happens. No error message, no success message. UUID exactly the same. I tried it while the volume was unmounted.
Any ideas?
JakeGould
34k1010 gold badges104104 silver badges146146 bronze badges
EmmelEmmel
6 Answers
the syntax for hfs.util appears to just be the devicename, not the path including /dev/
i.e.
make sure to unmount the drive before the hfs.util -s and mount afterwards.
use the 'raw' device i.e. rdisk1s2 instead of disk1s2
diskutil info will not show the new uuid until you remount.
Daniel ZellerDaniel Zeller
It should be doable.try using the hfs.util specifying the actual device id of the volume (if it's a raid volume you want the device id of the volume on the raid, not of any specific disk).
Device Name Of Your Destination Volume
Alternatively use the little tool that is part of SuperDuper! so you can specify the path to a mounted volume.
The gory details of how the volume id is handled (which is actually not an UUID, the UUID is only used for display and is re-computed every time from the actual volume id) is explained in my answer to How does one change the UUID of a Volume on Mac OS X to a SPECIFIED value?
Community♦
Analog FileAnalog File
/dev/disk4 isn't an HFS volume, it's an entire drive, including the partition table and any number of separate volumes (partitions) on the drive. /dev/disk4s0 would be an example of a volume. Find the correct identifier for the actual HFS volume you care about, and try doing hfs.util -s on that.
79.2k1010 gold badges122122 silver badges166166 bronze badges
You can simply change UUID by partition format/erase.
1) Format disk to Mac OS Extended using built-in
Disk Utility
2) If you need windows partition, format disk to exFAT after you have done first step (for some reason you need two steps for windows partition)
You can check if UUID changed by listing all UUID numbers:
Laimis LaimisonLaimis Laimison
All the examples I can find just take the device BSD name, not the full path to a device file. Have you tried that?
Hasaan ChopHasaan Chop
4,13611 gold badge1414 silver badges1313 bronze badges
Easiest and most compatiable way I have found is with Gparted (can find the mac dmg on either sourceforge OR http://gparted.org) and manually selecting that partition /drive and editing the uuid that way
BUT with disk util (this works on both linux & Mac:
34k1010 gold badges104104 silver badges146146 bronze badges
linuxdev2013linuxdev2013
Not the answer you're looking for? Browse other questions tagged macoshfslogical-driveuuid or ask your own question.
Posted by3 years ago
Archived
I'm running 10.11.2. Hiding the Windows partitions in Clover is easy enough and I can hide the windows drive by placing a . before the drive name in windows, but i can't do the same for System Reserved and can't figure out how to keep it from mounting at boot.
Help?
EDIT: For anyone who comes across this in the future, my issue ended up being that I was booting Windows using the legacy bios instead of uefi. I reinstalled Windows and OSX/Clover and everything works great now. I've got full resolution in Clover and all of the extra system partitions are hidden.
6 comments
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |