[android-developers] Re: How to change /sdcard to be not a read-only file system
Even I tried with -sdcard option, but adb push still does not work saying that it is a read only file system. On Wed, Aug 19, 2009 at 5:13 PM, Jack Hajack...@t-mobile.com wrote: If you do a adb shell and cd /sdcard, do you see any files in / sdcard? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 5:07 pm, n179911 n179...@gmail.com wrote: Yes, i did start my emulator with -sdcard with the file I created by $ mksdcard 256M sd256m.img $ put images in the img file but when i launch the emulator with '-sdcard', can then click 'Gallery', it shows 'No Media found'. On Wed, Aug 19, 2009 at 4:14 PM, Jack Hajack...@t-mobile.com wrote: It seems like the sdcard is not available. Did you specify the -sdcard when you run the emulator? Or did you enter the SDCard data when you created the AVD? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 3:28 pm, n179911 n179...@gmail.com wrote: Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system # --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to change /sdcard to be not a read-only file system
It seems like the sdcard is not available. Did you specify the -sdcard when you run the emulator? Or did you enter the SDCard data when you created the AVD? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 3:28 pm, n179911 n179...@gmail.com wrote: Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system # --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to change /sdcard to be not a read-only file system
Are you using the SDK with an AVD? If so, this should not happen. Otherwise, trying using the -sdcard file option, as in: mksdcard 32M mysdcard.img emulator -sdcard mysdcard.img other options On Wed, Aug 19, 2009 at 3:28 PM, n179911 n179...@gmail.com wrote: Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system # --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to change /sdcard to be not a read-only file system
Yes, i did start my emulator with -sdcard with the file I created by $ mksdcard 256M sd256m.img $ put images in the img file but when i launch the emulator with '-sdcard', can then click 'Gallery', it shows 'No Media found'. On Wed, Aug 19, 2009 at 4:14 PM, Jack Hajack...@t-mobile.com wrote: It seems like the sdcard is not available. Did you specify the -sdcard when you run the emulator? Or did you enter the SDCard data when you created the AVD? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 3:28 pm, n179911 n179...@gmail.com wrote: Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system # --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to change /sdcard to be not a read-only file system
If you do a adb shell and cd /sdcard, do you see any files in / sdcard? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 5:07 pm, n179911 n179...@gmail.com wrote: Yes, i did start my emulator with -sdcard with the file I created by $ mksdcard 256M sd256m.img $ put images in the img file but when i launch the emulator with '-sdcard', can then click 'Gallery', it shows 'No Media found'. On Wed, Aug 19, 2009 at 4:14 PM, Jack Hajack...@t-mobile.com wrote: It seems like the sdcard is not available. Did you specify the -sdcard when you run the emulator? Or did you enter the SDCard data when you created the AVD? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 3:28 pm, n179911 n179...@gmail.com wrote: Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system # --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to change /sdcard to be not a read-only file system
Thank you for your help. I am building android 1.5r3 from the source. I did $ source build/envsetup.sh $ lunch 1 $ make -j4 after the build is done $ ./out/host/darwin-x86/bin/mksdcard 32M mysdcard.img mount img on my local machine and drag and drop 4 images file to it $./out/host/darwin-x86/bin/emulator -sdcard mysdcard.img The emulator started. But when I go to 'Gallery' App it said 'No Media Found'. I appreciate if you have any idea to my problem. I did 'adb logcat' when I start my emulator. The only int sdcard related I found is 'create NNNA file: /sdcard/DCIM/100ANDRO failed'. Not sure if that is related.: D/dalvikvm( 620): GC freed 1727 objects / 112640 bytes in 85ms I/ActivityManager( 580): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={com.android.camera/com.android.camera.GalleryPicker} } I/ActivityManager( 580): Start proc com.android.camera for activity com.android.camera/.GalleryPicker: pid=710 uid=10003 gids={1006, 2001, 3003} E/ImageManager( 710): create NNNA file: /sdcard/DCIM/100ANDRO failed V/ImageManager( 710): storage state is removed V/ImageManager( 710): storage state is removed V/ImageManager( 710): storage state is removed V/ImageManager( 710): storage state is removed W/IInputConnectionWrapper( 620): showStatusIcon on inactive InputConnection I/ActivityManager( 580): Displayed activity com.android.camera/.GalleryPicker: 827 ms I/ARMAssembler( 580): generated scanline__0077:03545404_0A04_ [ 29 ipp] (51 ins) at [0x18f398:0x18f464] in 793000 ns D/dalvikvm( 620): GC freed 1561 objects / 81728 bytes in 84ms On Wed, Aug 19, 2009 at 4:10 PM, David Turnerdi...@android.com wrote: Are you using the SDK with an AVD? If so, this should not happen. Otherwise, trying using the -sdcard file option, as in: mksdcard 32M mysdcard.img emulator -sdcard mysdcard.img other options On Wed, Aug 19, 2009 at 3:28 PM, n179911 n179...@gmail.com wrote: Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system # --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to change /sdcard to be not a read-only file system
On Wed, Aug 19, 2009 at 5:13 PM, Jack Hajack...@t-mobile.com wrote: If you do a adb shell and cd /sdcard, do you see any files in / sdcard? I do 'ls -l' it shows 'sdcard' as '---' in terms of permission. # ls -l drwxrwxrwt root root 2009-08-19 19:00 sqlite_stmt_journals drwxrwx--- system cache 2009-08-19 19:00 cache d- system system2009-08-19 19:00 sdcard and when I go to 'cd /sdcard', there is no files there. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 5:07 pm, n179911 n179...@gmail.com wrote: Yes, i did start my emulator with -sdcard with the file I created by $ mksdcard 256M sd256m.img $ put images in the img file but when i launch the emulator with '-sdcard', can then click 'Gallery', it shows 'No Media found'. On Wed, Aug 19, 2009 at 4:14 PM, Jack Hajack...@t-mobile.com wrote: It seems like the sdcard is not available. Did you specify the -sdcard when you run the emulator? Or did you enter the SDCard data when you created the AVD? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 3:28 pm, n179911 n179...@gmail.com wrote: Hi, I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_glass_red.png /sdcard/bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop/bullet_ball_glass_red.png' to '/sdcard/bullet_ball_glass_red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system # --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---