Appears that 'hal' (Hardware Abstraction Layer) is causing the partitions to be automatically remounted. Could you test what happens if you also call:
eject /dev/somewhere
Does that prevent the device from being immediately remounted?
Appears that 'hal' (Hardware Abstraction Layer) is causing the partitions to be automatically remounted. Could you test what happens if you also call:
eject /dev/somewhere
Does that prevent the device from being immediately remounted?