Android emulator sd card image already in use

I have followed the answers from this question without success. I could not respond to the posted answer (lack of reputation) so I had to make a new question.

Purging all adb processes does not alleviate the 'SD Card image already in use' error. Similarly, if I delete the SD card image, create a new one, then immediately launch the emulator, the error persists. After the emulator loads to the phone home screen, an "SD Card Removed" message is displayed. Here is what my command line looks like when calling the emulator:

jet98f@rc04ucs213:/mnt/dfs/jet98f/Users/jet98f/android-sdk-linux/tools$ emulator -avd Phone -sdcard sdcard.iso

WARNING: Data partition already in use. Changes will not persist!

WARNING: SD Card image already in use: sdcard.iso

WARNING: Cache partition already in use. Changes will not persist!

Failed to symlink /nethome/users/jet98f/.pulse/f4ac236e8e0d8ef32a8796d24e3c758b-runtime to /tmp/pulse-2L9K88eMlGn7: Operation not supported

emulator: emulator window was out of view and was recentered

EDIT: One more thing: running 'lsof | grep sdcard ' results in no returns. That is, the UNIX utility says the file is not open, yet adb claims the image is already in use.


Delete lock pid files?

I am on Windows7 and was having the same problem with the SD Card image, as well as general problems with Eclipse not wanting to connect with the Adb. The state seems to get out of sync.

In windows, there are lock files. In my case (environment, if you will) it is C:\Users\joe\.android\avd\Em22.avd\xxx\pid

where xxx are:

    <li>cache.img.lock</li> <li>hardware-qemu.ini.lock</li> <li>sdcard.img.lock <strong><<<---</strong></li> <li>userdata-qemu.img.lock</li> </ul>

    When the state of eclipse seems lost, I shut everything down, and delete the pid files in the lock directories. It did the trick in at least one occasion where Eclipse would not connect with adb, and when it did, complained about locked sd card image.

    Ooops, I just noticed it has the same answered in link in original question.


    Here is the solution, 1) Open Task Manager. 2) Close all the running emulators from list. 3) Close bluestack programs if running any. 4) Now you are done. You can now run New emulator.


    The sdcard image should be a writeable FAT32 image file. See this link

    It seems you are using an ISO image.

    If you really suspect there's another process (emulator) using a specific sdcard image you can confirm it by running

    $ fuser ~/.android/avd/4.0.3.avd/sdcard.img ~/.android/avd/4.0.3.avd/sdcard.img: 90719

    in this case there's an emulator running (or something else having the file opened) (pid 90719).


  • Failed when trying to create AVD is Android SDK
  • Save XML file on Android device and read it
  • How to screen record iOS-real device with command?
  • Accessing root files (/system, /dev) from a native library in Android application
  • applying background to first, and every third row in a dynamically generated table
  • Can I use jquery to blank textarea fields or ajax like input boxes?
  • JPA CascadeType.REMOVE not working
  • Installing apk from within application in android
  • How to merge two Request in Laravel
  • Unique SMS sender id?
  • Azure table query partial partitionkey guid match
  • HttpClient: disabling chunked encoding
  • aapt.exe'' finished with non-zero exit value 1
  • Clear fused location provider's location for testing
  • How to specify input and output paths from cmd.exe for a PowerShell script?
  • Unexpected token ILLEGAL while running node.js mocha test
  • Merging rows to columns
  • android.support.v7.widget.Toolbar VectorDrawableCompat IllegalStateException when using support lib
  • cygwin cannot exec 'git-add--interactive' permission denied
  • MS Access - How to change the linked table path by amend the table
  • Unable to install Git-core+svn by MacPorts
  • Ajax calls do not work in IE unless you fiddle with security settings
  • C: Incompatible pointer type initializing
  • Alternative to overridePendingTransition() - Android
  • Rails Find when some params will be blank
  • MongoError: Incorrect arguments
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • C++ Partial template specialization - design simplification
  • ilmerge with a PFX file
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • Cassandra Data Model
  • Hazelcast - OperationTimeoutException
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • embed rChart in Markdown
  • apache spark aggregate function using min value
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app