Based on comment #7, are you saying that you need something like the following if both udisks and hal-lock are present together?
E.g.:
udisks --inhibit -- \ hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive \ --run "/path-to-gpartedbin $*"
My testing on Lucid with only the udisks command (without hal-lock) has shown that udisks alone appears to prevent auto-mounting.
sudo udisks --inhibit -- /path-to-gpartedbin $*
Based on comment #7, are you saying that you need something like the following if both udisks and hal-lock are present together?
E.g.:
udisks --inhibit -- \ .Hal.Device. Storage --exclusive \ to-gpartedbin $*"
hal-lock --interface org.freedesktop
--run "/path-
My testing on Lucid with only the udisks command (without hal-lock) has shown that udisks alone appears to prevent auto-mounting.
E.g.:
sudo udisks --inhibit -- /path-to-gpartedbin $*