On Mar 14, 2007, at 05:21:40, Mark Glossop wrote:
On 14/03/2007, at 18:00, webmaster wrote:
I'm in the midst of a HDD project that requires one of the HFS
partition to be locked to prevent writing, I've googled this and
came up empty, anyone know of a utility that allows this?
Locking the mounted volume from the finder isn't an option since
the tests are using the IOKit to see that the particular
partition is actually read-only.
-- Dale
$ man mount
More specifically, something like this:
$ sudo mount -t hfs -f -r /dev/<deviceID> <mountpoint>
If this is still too high-level, you're going to have to play
IOKit's game...
M.
Unfortunately to execute that command (which is the same as locking
the drive in the finder) you have to be booted into OSX to perform.
Unfortunately the test is performed during the boot process and the
system wont boot up if the particular partition is writable.
I believe that partition locking is done in the partition map by
setting a flag and I'd image the drive and hex edit it to change
the byte if I know what I was looking for.