1. Download our Official Android App: Forums for Android!

USB Host mode mounting Problem

Discussion in 'Introductions' started by joseph136, Apr 20, 2011.

  1. joseph136

    joseph136 Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    1
    Joined:
    Apr 20, 2011

    Apr 20, 2011
    1
    0
    25
    Hi,

    I'm doing a project using TI Board with android os having ports for connecting usb devices. I have Implemented the USB host mode auto mount feature by adding the command "dev_mount usb /mnt/usb auto /devices/platform/ehci-omap" in vold.fstab file and i can see the contents present in the usb deivce after mounting, using FIle Explorer. But i am getting an error in logcat as shown below after mounting the usb deivce.


    04-20 10:40:13.803: DEBUG/Vold(863): Volume usb state changing 0 (No-Media) -> 2 (Pending)
    04-20 10:40:13.805: WARN/MountService(941): getVolumeState(/mnt/usb): Unknown volume
    04-20 10:40:13.810: DEBUG/Vold(863): Volume usb state changing 2 (Pending) -> 1 (Idle-Unmounted)
    04-20 10:40:13.813: ERROR/VoldConnector(941): Error handling '605 Volume usb /mnt/usb state changed from 0 (No-Media) to 2 (Pending)'
    04-20 10:40:13.813: ERROR/VoldConnector(941): java.lang.IllegalArgumentException
    04-20 10:40:13.813: ERROR/VoldConnector(941): at com.android.server.MountService.getVolumeState(MountService.java:1037)
    04-20 10:40:13.813: ERROR/VoldConnector(941): at com.android.server.MountService.notifyVolumeStateChange(MountService.java:581)
    04-20 10:40:13.813: ERROR/VoldConnector(941): at com.android.server.MountService.onEvent(MountService.java:498)
    04-20 10:40:13.813: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:123)
    04-20 10:40:13.813: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
    04-20 10:40:13.813: ERROR/VoldConnector(941): at java.lang.Thread.run(Thread.java:1096)
    04-20 10:40:13.833: WARN/MountService(941): getVolumeState(/mnt/usb): Unknown volume
    04-20 10:40:13.836: DEBUG/VoldCmdListener(863): volume mount /mnt/usb
    04-20 10:40:13.836: INFO/Vold(863): /dev/block/vold/8:17 being considered for volume usb
    04-20 10:40:13.836: DEBUG/Vold(863): Volume usb state changing 1 (Idle-Unmounted) -> 3 (Checking)
    04-20 10:40:13.841: ERROR/VoldConnector(941): Error handling '605 Volume usb /mnt/usb state changed from 2 (Pending) to 1 (Idle-Unmounted)'
    04-20 10:40:13.841: ERROR/VoldConnector(941): java.lang.IllegalArgumentException
    04-20 10:40:13.841: ERROR/VoldConnector(941): at com.android.server.MountService.getVolumeState(MountService.java:1037)
    04-20 10:40:13.841: ERROR/VoldConnector(941): at com.android.server.MountService.notifyVolumeStateChange(MountService.java:581)
    04-20 10:40:13.841: ERROR/VoldConnector(941): at com.android.server.MountService.onEvent(MountService.java:498)
    04-20 10:40:13.841: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:123)
    04-20 10:40:13.841: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
    04-20 10:40:13.841: ERROR/VoldConnector(941): at java.lang.Thread.run(Thread.java:1096)
    04-20 10:40:13.844: WARN/MountService(941): getVolumeState(/mnt/usb): Unknown volume
    04-20 10:40:13.846: WARN/logwrapper(7210): Unable to background process (No such file or directory)
    04-20 10:40:13.852: ERROR/VoldConnector(941): Error handling '605 Volume usb /mnt/usb state changed from 1 (Idle-Unmounted) to 3 (Checking)'
    04-20 10:40:13.852: ERROR/VoldConnector(941): java.lang.IllegalArgumentException
    04-20 10:40:13.852: ERROR/VoldConnector(941): at com.android.server.MountService.getVolumeState(MountService.java:1037)
    04-20 10:40:13.852: ERROR/VoldConnector(941): at com.android.server.MountService.notifyVolumeStateChange(MountService.java:581)
    04-20 10:40:13.852: ERROR/VoldConnector(941): at com.android.server.MountService.onEvent(MountService.java:498)
    04-20 10:40:13.852: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:123)
    04-20 10:40:13.852: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
    04-20 10:40:13.852: ERROR/VoldConnector(941): at java.lang.Thread.run(Thread.java:1096)
    04-20 10:40:13.856: INFO//system/bin/fsck_msdos(863): ** /dev/block/vold/8:17
    04-20 10:40:13.858: INFO//system/bin/fsck_msdos(863): ** Phase 1 - Read FAT (compare skipped)
    04-20 10:40:13.858: INFO//system/bin/fsck_msdos(863): Attempting to allocate 7713 KB for FAT
    04-20 10:40:15.101: INFO//system/bin/fsck_msdos(863): ** Phase 2 - Check Cluster Chains
    04-20 10:40:15.425: INFO//system/bin/fsck_msdos(863): ** Phase 3 - Checking Directories
    04-20 10:40:15.432: INFO//system/bin/fsck_msdos(863): ** Phase 4 - Checking for Lost Files
    04-20 10:40:15.587: INFO//system/bin/fsck_msdos(863): 12 files, 3700096 free (1973600 clusters)
    04-20 10:40:15.607: INFO/logwrapper(863): /system/bin/fsck_msdos terminated by exit(0)
    04-20 10:40:15.607: INFO/Vold(863): Filesystem check completed OK
    04-20 10:40:15.616: INFO/Vold(863): Device /dev/block/vold/8:17, target /mnt/usb mounted @ /mnt/secure/staging
    04-20 10:40:15.618: DEBUG/Vold(863): Volume usb state changing 3 (Checking) -> 4 (Mounted)
    04-20 10:40:15.621: WARN/MountService(941): getVolumeState(/mnt/usb): Unknown volume
    04-20 10:40:15.625: ERROR/VoldConnector(941): Error handling '605 Volume usb /mnt/usb state changed from 3 (Checking) to 4 (Mounted)'
    04-20 10:40:15.625: ERROR/VoldConnector(941): java.lang.IllegalArgumentException
    04-20 10:40:15.625: ERROR/VoldConnector(941): at com.android.server.MountService.getVolumeState(MountService.java:1037)
    04-20 10:40:15.625: ERROR/VoldConnector(941): at com.android.server.MountService.notifyVolumeStateChange(MountService.java:581)
    04-20 10:40:15.625: ERROR/VoldConnector(941): at com.android.server.MountService.onEvent(MountService.java:498)
    04-20 10:40:15.625: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:123)
    04-20 10:40:15.625: ERROR/VoldConnector(941): at com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:83)
    04-20 10:40:15.625: ERROR/VoldConnector(941): at java.lang.Thread.run(Thread.java:1096)


    I need to get a Callback using BroadcastReceiver after mounting the device. Hope i have to use "android.intent.action.MEDIA_MOUNTED" in the manifest file to get the callback. Please help out to solve this issue.

    Thanks,
    Joseph
     

    Advertisement

  2. Martimus

    Martimus One bite at a time...
    Rank:
    None
    Points:
    843
    Posts:
    19,535
    Joined:
    Jul 9, 2010

    Jul 9, 2010
    19,535
    4,045
    843
    Male
    Engineer
    'neath a cactus

Share This Page

Loading...