"Ignore ownership on this volume" deselected each time external HDD is mounted

Hi, I noticed the following - when I "Erase" external HDD partition with Disk Utility current value of the flag "Ignore ownership on this volume" is memorized for this partion as its constant attribute. "Get Info" on this partition shows one attribute "Owners enabled : Yes".


If this value is "Yes" then each time HDD is mounted the check "Ignore ownership on this volume" is deselected for this partition.


I have 2 partitions 1TB each - one is empty, enother one is full.

  1. For empty partition I fixed this by checkig mark "Ignore ownership on this volume" and doing "Erase" with Disk Utility for this partition. After this "Get Info" in Disk Utility shows modified value for the attribute: "Owners enabled : "No". This disk now mount with selected "Ignore ownership on this volume".
  2. For full partition it is not easy to make the same - they both located on the same HDD, so copying files from full partition to empty, erasing full partition with new setting, and copying the files back - is complicated.


Is there another way to change attribute "Owners enabled" for a disk partition without reformatting it with Disk Utility? Is there a tool similar to hdiutil which could handle this change?

Thanks

MacBook Pro 13", macOS 10.14

Posted on Jul 12, 2019 2:00 PM

Reply

Similar questions

1 reply

Jul 13, 2019 10:17 AM in response to Malkone

I found answer to my question - yes, it is possible to modify ownership for the disk or partition with Terminal app diskutil.

Man page paragraph regarding enabling ownership explains:


Enable ownership of a volume. The on-root-disk Volume Database at /var/db/volinfo.database is manipulated such that the User and Group ID settings of files, directories, and links (file system objects, or "FSOs") on the target volume are taken into account.

This setting for a particular volume is persistent across ejects and injects of that volume as seen by the current OS, even across reboots of that OS, because of the entries in this OS's Volume Database. Note thus that the setting is not kept on the target disk, nor is it in-memory.

For some locations of devices (e.g. internal hard disks), consideration of ownership settings on FSOs is the default. For others (e.g. plug-in USB disks), it is not.

When ownership is disabled, Owner and Group ID settings on FSOs appear to the user and programs as the current user and group instead of their actual on-disk settings, in order to make it easy to use a plug-in disk of which the user has physical possession.

When ownership is enabled, the Owner and Group ID settings that exist on the disk are taken into account for determining access, and exact settings are written to the disk as FSOs are created. A common reason for having to enable ownership is when a disk is to contain FSOs whose User and Group ID settings, and thus permissions behavior overall, is critically important, such as when the plug-in disk contains system files to be changed or added to.


And command 'sudo diskutil disableOwnership device' disables owners for the 'device' which can be any version of the device identification:

- The disk identifier (see below). Any entry of the form of disk*, e.g. disk1s9.

- The device node entry containing the disk identifier. Any entry of the form of /dev/[r]disk*, e.g. /dev/disk2.

- The volume mount point. Any entry of the form of /Volumes/*, e.g. /Volumes/Untitled. In most cases, a "custom" mount point, e.g. /your/custom/mountpoint/here is also accepted.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"Ignore ownership on this volume" deselected each time external HDD is mounted

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.