[Android Q&A, Help & Troubleshooting] vMAC:
Ok here is the issue. I am trying to get my phone to load a init.d script during boot. This script is to swap the /data/media folder withe /sdcard folder so that my phone uses the sdcard as my internal memory for loading apps. This script has worked on other ROMs that I have used it on, however right now it is not working at boot time.

I have verified that my init.d scripts are loading and working without a problem. If I have it generate a file while booting based on a script it will do so. I have also verified that if I run the script using either sManager or the standard Linux Script Handler built into Root Explorer that the following code will run and work correctly.

busybox mount -o remount,rw /

busybox mount -t vfat -o umask=0000 /dev/block/vold/179:33 /mnt/sdcard
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:33 /mnt/sdcard
if busybox mount | busybox grep vold/179:33; then
busybox mount -o bind /data/media /mnt/extSdCard
fi

I have attached a copy of my device boot via adb logcat. I can see where it appears that the lines of code in this script are being executed, unfortunately though something is failing and it is not working. This little snippet of the log is where I think the problem may be, however I know nothing about how to read these logs:

D/MountService( 772): externalstorage_lock_state =

D/AudioStreamOutALSA( 197): standby

D/ALSAModule( 197): s_standby: handle 0x421eace8 h 0x0

E/ALSAModule( 197): s_standby handle h 0x4229fc50

I/MountService( 772): doMountVolume: Mouting /storage/extSdCard

W/System.err( 772):	at com.android.server.enterprise.EnterpriseDeviceManagerService$2.run(EnterpriseDeviceManagerService.java:770)

W/System.err( 772):	at android.os.Handler.handleCallback(Handler.java:615)

W/System.err( 772):	at android.os.Handler.dispatchMessage(Handler.java:92)

D/MtpService( 1069): onStorageStateChanged /storage/extSdCard unmounted -> checking

D/VoldCmdListener( 178): volume mount /storage/extSdCard

I/Vold ( 178): /dev/block/vold/179:33 being considered for volume sdcard

D/Vold ( 178): Volume sdcard state changing 1 (Idle-Unmounted) -> 3 (Checking)

I/MountService( 772): onEvent:: raw= 605 Volume sdcard /storage/extSdCard state changed from 1 (Idle-Unmounted) to 3 (Checking) cooked = 605 Volume sdcard /storage/extSdCard state changed from 1 (Idle-Unmounted) to 3 (Checking)

I/MountService( 772): updating volume state checking

D/MountService( 772): updatePublicVolumeState :: path = /storage/extSdCard, state = checking

D/MountService( 772): volume state changed for /storage/extSdCard (unmounted -> checking)

I/StorageNotification( 932): Media {/storage/extSdCard} state changed from {unmounted} -> {checking}

I/MountService( 772): notifyVolumeStateChanged:: path = /storage/extSdCard,old = unmounted,new = checking

D/MountService( 772): sendStorageIntent Intent { act=android.intent.action.MEDIA_CHECKING dat=file:///storage/extSdCard (has extras) }

D/StorageNotification( 932): setMediaStorageNotification : notify id = -535891041, path = /storage/extSdCard, title = Preparing SD card

D/ApplicationPolicy( 772): isStatusBarNotificationAllowed: packageName = com.android.systemui

D/ActivityThread( 1561): setTargetHeapUtilization:0.25

D/ActivityThread( 1561): setTargetHeapIdealFree:8388608

D/ActivityThread( 1561): setTargetHeapConcurrentStart:2097152

W/System.err( 772):	at android.os.Looper.loop(Looper.java:137)

W/System.err( 772):	at android.os.HandlerThread.run(HandlerThread.java:60)

W/System.err( 772): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)

W/System.err( 772):	at libcore.io.Posix.open(Native Method)

W/System.err( 772):	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)

Any insight that can be given to me would be extremely appreciated. Thank you.