‘diskutil repairVolume’ on boot?
[Cross posted to
Does anyone here know how to have OS X (10.4.3) do the equivilent of a ‘diskutil repairVolume’ on reboot, before the OS is up? I’ve got a machine I don’t (currently) have physical access to which needs the root disk repaired so I can’t boot the install CD and run the check that way.
Also, anyone remember the issue with rsyncing to external volumes that I’ve been incessantly complaining about? I’m now thinking that I’ve got an issue with the source data, which was somehow manifesting itself in errors with rsync being unable to find destination files after they were written. There’s some weird inconsistancy here. Or maybe I was reading the rsync errors backwards? Hrm.
Anyway, any idea how to make diskutil do my bidding? I know how I’d do it under Windows, but OS X doesn’t seem to support this here…
Looks like you might want some oneoff mods to /etc/rc
It looks like in the init page, you can be very BSD and go into a secure mode – but I’d see about flagging the system for a fsck on boot and just throwing in diskutil in place.
Hope that gives a start.