Automatically un-mount SDCard safely when device is rebooted or turned off? How can I configure my Galaxy S II so every time my device is either rebooted or turned off the SDCard is safely un-mounted because at the moment if I don't un-mount it, the files on SDCard appear as duplicated for some reason.

My device is rooted with Ressurction Remix 2.6.1 with Siyah Kernel 3.2.7.2.
The Android OS is supposed to do this automatically for you unless the device is powered down or rebooted incorrectly (eg. removing the battery). Ive never heard of files being doubled on an SD card after rebooting before. I would suggest trying a different ROM since your phone is rooted.