title: Ubuntu - Error: Failed to create the SD card
body: <p>I see a lot of posts about writing to the SD card, but I believe my problem is different.  I am unable to create the SD card during the process of building an AVD.</p>
  
  <p>I initially tried to use the Android SDK and AVD Manager to do this, selecting
  <br><strong>Name</strong>: my_avd
  <br><strong>Target</strong>: Android 2.2 - API Level 8
  <br><strong>SD Card</strong>: Size: 1024 MiB
  <br><strong>Skin</strong>: Built-In: Default (HVGA)
  <br><strong>Hardware</strong>: Property: Abstracted LCD Density, Value: 160</p>
  
  <p>This pops up a window with the message:
  <br>"Result of creating AVD 'my_avd':
  <br>Error: Failed to create the SD card."</p>
  
  <p>I tried to repeat the process from the command line, receiving a similar error:</p>
  
  <pre><code>alex@alex-desktop:~$ android create avd -n my_avd -t 1 -c 1024M
  Android 2.2 is a basic Android platform.
  Do you wish to create a custom hardware profile [no]no
  Error: Failed to create the SD card.
  </code></pre>
  
  <p>Attempting to follow instructions for using mksdcard was equally unproductive; I think my basic lack of linux experience may be causing me a problem here. When I try to use mksdcard, it just reports that it cannot find the file or directory. Is the mksdcard tool available for use this way in linux?</p>
  
  <pre><code>alex@alex-desktop:~$ mksdcard 1024M ./sdcard.iso
  bash: /home/alex/android-sdk-linux_x86/tools/mksdcard: No such file or directory
  alex@alex-desktop:~$ sudo android create avd -n my_avd -t 1 -c 1024M
  </code></pre>
  
  <p>I've added the android tools directory to my PATH variable, but I feel like there is obviously something else I'm missing. Perhaps some kind of access rights?</p>
  
  <p>Attempting to run the android command with sudo did not seem to help either:</p>
  
  <pre><code>alex@alex-desktop:~/android-sdk-linux_x86/tools$ sudo ./android create avd -n my_avd -t 1 -c 1024M
  Android 2.2 is a basic Android platform.
  Do you wish to create a custom hardware profile [no]no
  Error: Failed to create the SD card.
  </code></pre>
  
  <p>I even tried installing Eclipse and the ADT plugin and running the manager from there to no avail. Any tips would be most appreciated. Advanced warning that I am somewhat of a novice Linux user, so even if it seems like a no-brainer obvious thing to check, I could still have missed it.</p>