As idea - I use udev scripts to mount/unmount usb devices, may be this approach works with SATA as well.

Reggie