mounting a partition / image
Posted: 07 Sep 2013 18:57
hi,
after an upgrade of the Android system from v4.0 to v4.2.2 on my phone one of my flows stopped working. the flow is triggered when the external SD card is mounted and mounts a filesystem image, another flow unmounts the image before the SD card is unmounted. from logcat it seems that the script is executed successfully, but from an adb shell the image isn't seen as mounted. the loop device is definitely set up, as /sys/block/loopX/loop/backing_file shows. when trying to detach the loop manually with "losetup -d" the kernel complains about "Device or resource busy". looks a bit as if the mount is setup inside a container, only visible to Automagic. on the other hand also Automagic fails to detach the loop device (using umount -d)
when the mount and unmount scripts are executed manually from an adb shell everything works as expected
any ideas?
g2ek
after an upgrade of the Android system from v4.0 to v4.2.2 on my phone one of my flows stopped working. the flow is triggered when the external SD card is mounted and mounts a filesystem image, another flow unmounts the image before the SD card is unmounted. from logcat it seems that the script is executed successfully, but from an adb shell the image isn't seen as mounted. the loop device is definitely set up, as /sys/block/loopX/loop/backing_file shows. when trying to detach the loop manually with "losetup -d" the kernel complains about "Device or resource busy". looks a bit as if the mount is setup inside a container, only visible to Automagic. on the other hand also Automagic fails to detach the loop device (using umount -d)
when the mount and unmount scripts are executed manually from an adb shell everything works as expected
any ideas?
g2ek