Eclipse console shows:'Failed to push selection: Read-only file system'when i try to push a file

痴心易碎 提交于 2019-11-28 22:38:22
Amel Jose

Just go to

C:\Documents and Settings\<adminstrator>\.android\avd

take 'properties' of your avd folder (there is a folder for each of the avd's)

uncheck 'Read only' -> OK

This was the only thing that worked for me.

P.S: Some of these folders might be hidden.

On the Terminal or Command-Prompt, write these( for me its command prompt ):

  • adb shell(Opens the device shell. you'll see a #)
  • su(get the root permission, if necessary)
  • mount -o rw,remount rootfs /(remount the root file system.)
  • chmod 777 /mnt/sdcard (change the permission of the sdcard to rwe.)
  • exit

If it doesn't work, try to push the file from the same shell using adb push . Hope this help.

MKJParekh

You need to give SDCard support to your AVD and mount the SDCard.

First go to 'AVD Manager and select your AVD then Click on Edit and in the Hardware add SDCard Support'.

Please check this link for complete detailed step to achieve SDCard support and mounting.

You can also give a try to this command in CMD, this will remount your SDCard.

c:\android-sdk\platform-tools\>adb remount

I was also facing same issue :

Failed to push selection: Read-only file system

In computers with higher configuration(beyond Windows XP) settings like ---> C:\Documents and Settings\.android\avd
doesn't exist so instead go to this path --> C:\Users\.android and right click on this folder and uncheck the box having name as read only.

Hope this helps those with newer windows on their pc :) , if this solution helps you than please vote for it.

In my case i have mistake with the slash. while specifying "Additional Emulator Command Line Options" in eclipse

Actually it should be -sdcard C:/Kamal/sdcard/emulator_sdcard

and i was putting -sdcard C:\Kamal\sdcard\emulator_sdcard

Then after restarting the Eclipse & Emulator it works.

If the data in the sd card is not updated in the emulator or in the app which you are developing then, Select, Dev Tools->Media Scanner The data which has been already pushed into the sd card by variant means will get loaded soon.!

afra mehrparvar

if some one have same problem in new build of studio . 0.8.9 and above see my solution here and it will work like a charm : (afra mehrparvar solution in the bottom of the page )

Android Emulator sdcard push error: Read-only file system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!