AnsweredAssumed Answered

unmount file system at shutdown in Android.

Question asked by John Turnur on Mar 15, 2013
Latest reply on May 20, 2013 by Yixing Kong
Branched to a new discussion



In some specific application on IMX6Q SABRE SD, I need to unmount /data and /system partition of android at  shutdown time. I have called function umount("/data") and umount2("/data",MNT_FORCE) at very low level of  function android_reboot ( ) function which is called from file.

function umount fails at this point.

can anyone suggest the place where i can call umount function to unmount the file system successfully ?

Also, is remount function first umount the media and then mount?