[Defy Android Development] mato_d007:
I compiled a 4.1.2 nightly today with updated aerokernel, and everything is working except sdcard, which gets unmounted automatically because it fails to mount due to a missing file in /system/bin, "mount.exfat"

I pulled the file from cm11 but its fails to mount anyways, so i assume that the mount system has changed since the last nightly compiled by [MENTION=513620]Quarx[/MENTION]. So, where i should look in the source to find the problem and fix it? cant paste the logcat now, but i will add it later.

EDIT: logcat added with the mount.exfat from CM11 already included. Without it i will just say that is missing.

02-24 16:08:20.476 V/DevicePolicyManagerService(1508): Sending password expiration notifications for action android.intent.action.BOOT_COMPLETED
02-24 16:08:20.476 D/VoldCmdListener(1219): volume mount /mnt/sdcard
02-24 16:08:20.484 I/Vold (1219): /dev/block/vold/179:1 being considered for volume sdcard
02-24 16:08:20.484 D/Vold (1219): Volume sdcard state changing 1 (Idle-Unmounted) -> 3 (Checking)
02-24 16:08:20.484 W/Vold (1219): Skipping fs checks
02-24 16:08:20.484 E/Vold (1219): Exfat::doMount
02-24 16:08:20.484 D/MountService(1508): volume state changed for /mnt/sdcard (unmounted -> checking)
02-24 16:08:20.539 I/StorageNotification(1666): Media {/mnt/sdcard} state changed from {unmounted} -> {checking} (primary = true)
02-24 16:08:20.703 D/PhoneStatusBar(1666): addNotification score=0
02-24 16:08:21.007 D/MountService(1508): sendStorageIntent Intent { act=android.intent.action.MEDIA_CHECKING dat=file:///mnt/sdcard (has extras) }
02-24 16:08:21.125 V/WiredAccessoryObserver(1508): init()
02-24 16:08:22.250 I/ActivityManager(1508): Start proc com.google.android.apps.plus for service com.google.android.apps.plus/.service.EsSyncAdapterService: pid=1958 uid=10055 gids={3003, 3002, 1015, 1006, 1028}
02-24 16:08:22.414 V/ActivityThread(1925): com.google.android.gsf.login white listed for hwui
02-24 16:08:23.211 V/ActivityThread(1958): com.google.android.apps.plus white listed for hwui
02-24 16:08:23.672 I/ActivityManager(1508): Start proc com.android.settings for broadcast com.android.settings/.widget.SettingsAppWidgetProvider: pid=2005 uid=1000 gids={1015, 3002, 3001, 3003, 1028, 3007}
02-24 16:08:23.789 V/ActivityThread(2005): com.android.settings white listed for hwui
02-24 16:08:23.968 E/Vold (1219): /dev/block/vold/179:1 failed to mount via ExFat (I/O error)
02-24 16:08:23.968 I/Vold (1219): Device /dev/block/vold/179:1, target /mnt/sdcard mounted @ /mnt/secure/staging
02-24 16:08:23.968 E/Vold (1219): Failed to create /mnt/secure/staging/.android_secure (Read-only file system)
02-24 16:08:23.968 E/Vold (1219): Failed to create bindmounts (Read-only file system)
02-24 16:08:23.968 D/Vold (1219): Volume sdcard state changing 3 (Checking) -> 1 (Idle-Unmounted)
02-24 16:08:23.968 W/Vold (1219): Returning OperationFailed - no handler for errno 22
02-24 16:08:24.015 E/VoldConnector(1508): NDC Command {3 volume mount /mnt/sdcard} took too long (3536ms)
02-24 16:08:24.015 D/MountService(1508): volume state changed for /mnt/sdcard (checking -> unmounted)
02-24 16:08:24.047 E/MountService(1508): Boot-time mount failed (-1)
02-24 16:08:24.078 D/MountService(1508): sendStorageIntent Intent { act=android.intent.action.MEDIA_UNMOUNTED dat=file:///mnt/sdcard (has extras) }
02-24 16:08:24.679 I/StorageNotification(1666): Media {/mnt/sdcard} state changed from {checking} -> {unmounted} (primary = true)
02-24 16:08:24.687 D/VoldCmdListener(1219): volume shared /mnt/sdcard ums
02-24 16:08:24.937 D/PhoneStatusBar(1666): addNotification score=0
02-24 16:08:24.968 I/ActivityManager(1508): Start proc com.google.android.gms for broadcast com.google.android.gms/com.google.android.location.internal.NlpNetworkProviderSettingsUpdateReceiver: pid=2027 uid=10010 gids={3003, 1015, 1028, 1007, 3002, 3001, 1006, 2001, 3006}
02-24 16:08:25.101 V/ActivityThread(2027): com.google.android.gms white listed for hwui
02-24 16:08:25.625 D/PhoneStatusBar(1666): disable: < expand icons alerts ticker system_info BACK HOME recent* CLOCK >
02-24 16:08:25.711 D/PhoneStatusBar(1666): disable: < expand icons alerts ticker system_info back* home* recent clock* >