Author Topic: USB Mass Storage Failed to Unmount internal SD Card  (Read 10875 times)

0 Members and 1 Guest are viewing this topic.

nereis

  • Guest
USB Mass Storage Failed to Unmount internal SD Card
« on: July 16, 2012, 08:42:23 AM »
I started having trouble accessing the internal SD Card through UMS on my phone since installing Avast, I have uninstalled Anti-Theft then Avast, but the problem persists.  I am running CM9 based Slim Rom 4.2 with Semaphore 1.2.6s kernel, the phone comes with 16GB of internal storage, partially taken by system, and I have another Micro SD Card installed.

I have switched different usb cables, computers, usb ports with no improvement, but emmc continues to be accessible throughout this process.

http://forum.avast.com/index.php?topic=95241.0
I suspect this user may have been experiencing a similar issue as I am.

The following logcat shows the errors, notably "Failed to unmount /mnt/secure/staging"
[suspicious]
Code: [Select]
07-16 01:36:31.464 D/VoldCmdListener(  147): volume shared /mnt/sdcard ums
07-16 01:36:31.468 D/VoldCmdListener(  147): volume shared /mnt/emmc ums
...
07-16 01:36:31.714 D/VoldCmdListener(  147): volume unmount /mnt/sdcard force
07-16 01:36:31.714 D/Vold    (  147): Volume sdcard state changing 4 (Mounted) -> 5 (Unmounting)
07-16 01:36:31.714 D/MountService(  301): sendStorageIntent Intent { act=android.intent.action.MEDIA_EJECT dat=file:///mnt/sdcard (has extras) }
...
07-16 01:36:32.718 I/Vold    (  147): /mnt/secure/staging/.android_secure sucessfully unmounted
07-16 01:36:32.718 I/Vold    (  147): /mnt/secure/asec sucessfully unmounted

07-16 01:36:32.718 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 9, action 0)
07-16 01:36:33.867 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 8, action 0)
07-16 01:36:35.019 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 7, action 0)
07-16 01:36:36.207 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 6, action 0)
07-16 01:36:37.363 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 5, action 0)
07-16 01:36:37.941 D/dalvikvm( 6009): GC_CONCURRENT freed 419K, 24% free 3020K/3971K, paused 2ms+2ms
07-16 01:36:38.531 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 4, action 0)
07-16 01:36:39.675 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 3, action 0)
07-16 01:36:40.824 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 2, action 1)
07-16 01:36:41.972 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 1, action 2)
07-16 01:36:43.121 W/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy, retries 0, action 0)
07-16 01:36:44.269 E/Vold    (  147): Giving up on unmount /mnt/secure/staging (Device or resource busy)
07-16 01:36:44.269 E/Vold    (  147): Failed to unmount /mnt/secure/staging (Device or resource busy)
07-16 01:36:44.269 D/Vold    (  147): Volume sdcard state changing 5 (Unmounting) -> 4 (Mounted)
07-16 01:36:44.273 W/MountService(  301): Duplicate state transition (mounted -> mounted) for /mnt/sdcard
07-16 01:36:44.273 D/MountService(  301): sendStorageIntent Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///mnt/sdcard (has extras) }
07-16 01:36:44.277 D/VoldCmdListener(  147): volume share /mnt/sdcard ums
07-16 01:36:44.285 D/MediaScannerReceiver( 6805): action: android.intent.action.MEDIA_MOUNTED path: /mnt/sdcard
07-16 01:36:44.300 E/MountService(  301): Failed to share/unshare
07-16 01:36:44.300 E/MountService(  301): com.android.server.NativeDaemonConnectorException: Cmd {volume share /mnt/sdcard ums} failed with code 405 : {volume operation failed (Device or resource busy)}

[/suspicious]

nereis

  • Guest
Re: USB Mass Storage Failed to Unmount internal SD Card
« Reply #1 on: July 16, 2012, 08:50:08 AM »
The following log might also say something?
I can post the complete logcat if necessary.
[suspicious]
Code: [Select]

07-16 01:36:44.418 W/ActivityManager(  301): Unable to launch app com.google.android.youtube/10049 for broadcast Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///mnt/sdcard flg=0x10 (has extras) }: process is bad
07-16 01:36:44.418 W/ActivityManager(  301): finishReceiver called but none active
07-16 01:36:45.718 D/VoldCmdListener(  147): volume unshare /mnt/sdcard ums
07-16 01:36:45.718 W/Vold    (  147): Returning OperationFailed - no handler for errno 22
07-16 01:36:45.722 E/MountService(  301): Failed to share/unshare
07-16 01:36:45.722 E/MountService(  301): com.android.server.NativeDaemonConnectorException: Cmd {volume unshare /mnt/sdcard ums} failed with code 400 : {volume operation failed (Invalid argument)}
...
07-16 01:36:45.722 D/VoldCmdListener(  147): volume mount /mnt/sdcard
07-16 01:36:45.726 E/MountService(  301): Failed to remount /mnt/sdcard after disabling share method ums
07-16 01:36:45.726 D/VoldCmdListener(  147): volume unshare /mnt/emmc ums

[/suspicious]

Offline Filip Havlicek

  • Avast team
  • Massive Poster
  • *
  • Posts: 2647
Re: USB Mass Storage Failed to Unmount internal SD Card
« Reply #2 on: July 16, 2012, 11:45:02 AM »
Hi,

I don't really think this is our fault, but that's not gonna fix it, right? By doing a "Failed to unmount /mnt/secure/staging" Google search you can find a plenty of results like http://e2e.ti.com/support/embedded/android/f/509/t/128607.aspx or http://e2e.ti.com/support/embedded/android/f/509/p/119138/438264.aspx or http://forum.cyanogenmod.com/topic/4284-unable-to-mount-sd-card/ . Did you try to read through those?

 The only thing that comes to my mind at the moment is reformatting the SD card (backup files first if possible) and trying again. I fixed a mounting problem like that two days ago by simply reformatting.

Filip

nereis

  • Guest
Re: USB Mass Storage Failed to Unmount internal SD Card
« Reply #3 on: July 16, 2012, 11:40:20 PM »
Thank You! Reformatting the SD worked.

I am back onto installing Avast again.

Offline Filip Havlicek

  • Avast team
  • Massive Poster
  • *
  • Posts: 2647
Re: USB Mass Storage Failed to Unmount internal SD Card
« Reply #4 on: July 17, 2012, 08:47:30 AM »
Hi,

glad to hear it helped :)

Filip