1. Download our Official Android App: Forums for Android!

[International / GSM] Getting "no sdcard found" errors in CWM

Discussion in 'Android Devices' started by gapi, Jan 1, 2012.

  1. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    When I try and run a .zip from CWM. I tried on other .zips as well.

    -- Installing: /sdcard/People_Inverted.zip
    Finding update package...
    I:Update location: /sdcard/People_Inverted.zip
    I:using /data/media, no /sdcard found.
    Opening update package...
    Installing update...
    E:Error in /sdcard/People_Inverted.zip
    (Status 0)
    Installation aborted.
    result was NULL, message is: assert failed: install_zip("/sdcard/People_Inverted.zip")
    I:using /data/media, no /sdcard found.
     

    Advertisement

  2. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    gapi,

    You are not the first to run into this issue... It looks to me, that sometimes, ClockworkMod is not able to successfully soft-link /sdcard to the /data/media area.

    Indeed, this is exactly why I had to add alternative commands in the rooting guide to tell people to try to use /data/media to push their su.zip files when rooting via ClockworkMod.

    Next time this happens in ClockworkMod, you could try creating the soft-link the /sdcard link yourself via this command from your PC (while ClockworkMod is still booted-up and running):

    adb shell ln -n -s /data/media /sdcard

    Then try re-doing your the flash / install of your .zip file.

    Let us know how this works for you.

    Cheers!
     
  3. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Happy New Year Scary Alien, Thanks,

    Your not off the hook that easy. Heh!

    I cannot even guess how to do that. I remember doing the shift/right click open command prompt. I am an old DOS man so I an comfy in there.

    But for this I need some guidance. Lets see....... USB the phone, Boot in to CWR? Now what?

    Heh, Sorry. Talk To Me,
    These are for inverted MMS, People & Gmail apps.
    I got the Gmail inverted (its a simple .apk) to work but it kept returning the settings to default and needing to re-sync on every boot. Dang It. It does great job of not blinding you in the dark.

    Thanks
     
  4. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    LOL, gapi, no problem...

    Well, yes, you'll need to:

    - have the phone connected to your PC via the USB cable

    - have ClockworkMod up and running

    - have the adb USB drivers already installed

    - have at least the adb.exe utility (and for Windows, its .dll files) installed in a folder (see the "Mini-SDK" portion of this post: Mini-SDK (contains adb and fastboot utilities for Windows, Mac, and Linux))

    - verify that adb does work with an "adb devices" command

    - then, type the command I gave you in the previous post

    Its really not that hard once you've done it a time or two.

    An alternative for you would be to simply restart CWM and retry things... I'm pretty sure that its simply a timing issue that doesn't always happen to everyone all the time.

    Cheers!
     
  5. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    In c:\ I type in "adb devices" and get my device listed.
    In c:\ I type in "adb shell ln -n -s /data/media /sdcard" and get"

    "/sbin/sh: syntax error: unexpected "in"

    :thinking:
     
  6. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    Yeah, not sure what that "in" part is referencing either???

    Is your phone in recovery mode (i.e., booted / running ClockworkMod) when you typed the second command?

    When I type that when the SD card is already mounted (like it normally should be), I get this:

    Code (Text):
    1. C:\gnex\sdk-tools>[B][COLOR="Purple"]adb shell ln -n -s /data/media /sdcard[/COLOR][/B]
    2. [COLOR="Blue"]ln: /sdcard: File exists[/COLOR]
    Also, you can verify that the /sdcard directory is already pointing to /data/media by doing this:

    Code (Text):
    1. C:\gnex\sdk-tools>[COLOR="Purple"][B]adb shell ls -a -l[/B][/COLOR]
    2. drwxr-xr-x 17 root root        0 Jan  1 18:05 .
    3. drwxr-xr-x 17 root root        0 Jan  1 18:05 ..
    4. drwxr-xr-x  2 root root        0 Jan  1 18:05 boot
    5. drwxrwx---  4 system cache  4096 Dec 31 20:23 cache
    6. drwxr-xr-x  3 root root        0 Jan  1 18:05 data
    7. drwxr-xr-x  2 root root        0 Jan  1 18:05 datadata
    8. -rw-r--r--  1 root root     1698 Jan  1  1970 default.prop
    9. drwxr-xr-x 11 root root     1640 Jan  1 18:05 dev
    10. drwxr-xr-x  2 root root        0 Jan  1 18:05 emmc
    11. drwxr-xr-x  2 root root        0 Jan  1 18:05 etc
    12. -rwxr-x---  1 root root   102920 Jan  1  1970 init
    13. -rwxr-x---  1 root root     1342 Jan  1  1970 init.rc
    14. dr-xr-xr-x 94 root root        0 Jan  1  1970 proc
    15. drwxr-xr-x  3 root root        0 Jan  1  1970 res
    16. drwx------  2 root root        0 Nov 12 02:32 root
    17. drwxr-x---  2 root root        0 Jan  1  1970 sbin
    18. drwxr-xr-x  2 root root        0 Jan  1 18:05 sd-ext
    19. [COLOR="Red"]lrwxrwxrwx  1 root root       11 Jan  1 18:05 sdcard -> /data/media[/COLOR]
    20. drwxr-xr-x 14 root root        0 Jan  1 18:05 sys
    21. drwxr-xr-x  3 root root        0 Jan  1  1970 system
    22. drwxr-xr-x  2 root root        0 Jan  1 18:05 tmp
    23. -rw-r--r--  1 root root      272 Jan  1  1970 ueventd.goldfish.rc
    24. -rw-r--r--  1 root root     3825 Jan  1  1970 ueventd.rc
    Where you can see the line in red above shows "sdcard -> /data/media" which is what you want.

    So, if you see that /sdcard is already symlinked to /data/media, you won't have to try to re-do the link (which, should be everytime, but apparently is not for some strange reason).
     
  7. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Uh Oh! I seen left off the "/" before sdcard. :eek:

    Now I get in: /sdcard: file exists


    Thanks.

    I still get errors but without the no sdcard found.

    It basically says there is an error in the .zip file, aborted, status 0. So I guess I need to look at some other issue.

    At least you got me by the no card found thanks.

    So, do I need to do the dos commands every time to get by the no sdcard found?
     
  8. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    I'm actually not sure since I, too, see "I:using /data/media, no /sdcard found." messages in my recovery.log file.

    I'm thinking that CWM is checking to see if /sdcard is an actual partition vs. a soft-linked directory and that these warning messages just occur when those checks are being done.

    I'm going to have to look at the source a little more...its still a mystery to me.

    In reviewing your first post, you can see that CWM "sees" your /sdcard since it tries to unpack and install the People_Inverted.zip file:

    -- Installing: /sdcard/People_Inverted.zip
    Finding update package...
    I:Update location: /sdcard/People_Inverted.zip
    I:using /data/media, no /sdcard found.
    Opening update package...
    Installing update...
    E:Error in /sdcard/People_Inverted.zip
    (Status 0)
    Installation aborted.
    result was NULL, message is: assert failed: install_zip("/sdcard/People_Inverted.zip")
    I:using /data/media, no /sdcard found.


    The "result was NULL, message is: assert failed:" might be meaningful--but I'm not sure what that meaning is (bad .zip file? etc., dunno).

    I don't think the /sdcard mount issue is necessarily your problem at this point... You could try re-downloading the file--where did you get it from, by the way? I'd like to do a signature check on it to see if its signed (which doesn't help us much since CWM doesn't check signatures by default :().

    You certainly shouldn't have to issue that link command I gave you before...it got me thinking that it was related to the other issues I've seen with the SD card in CWM, but appears not to be in your case (but did help me understand things a little more).

    Also, I just saw your thread over on XDA...not very nice or understanding folks over there, eh? :)

    Cheers!
     
  9. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Thanks,

    I'm all good now but the .zips will not take.

    I'll have to go back to the source now.

    Thanks.
     
  10. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Our posts got overlapped and mixed there, but thanks. Have a look here and you may likey and helpy me eh?

    The inverted mms = LINK (EDIT = Now Installed & Working Great)
    The inverted G-Talk LINK
    The inverted GMail LINK (Look at the bottom of the opening screen shots for the links and 4.0.1 & 4.0.2 options.) (EDIT = Now Installed & Working Great)

    You tell me Bro. I am a newb and some of these guys are burnt out on helping newbs. I understand how it goes.

    1. Learn and be excited to help others.
    2. Help and help and help for months on end.
    3. Burn out but keep sharing with less reply's and details.
    Sometimes we have to just keep probing for folk like yourself. I will be in category 1. soon, maybe.....heh!
     
  11. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    A Note on the Black Gmail. The first install was corrupted because it kept returning back to defaults and re-syncing like it was the 1st time it started on every re-boot.
    I did a 2nd install and its fine! I love that covert black stuff!
     
  12. r5ingh

    r5ingh Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jan 1, 2012

    Jan 1, 2012
    2
    0
    5
    Hey Guys,

    Apologies if this is slightly off topic, but I created the symlink to /data/media on my device without actually needing it. I've tried to remove it by rm /sdcard but have been unsuccessful.. can anyone highlight the correct syntax/method to remove the symlink? Thanks in advance...!
     
  13. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    Cool, so that solves the mystery, eh? (a corrupt / incomplete file download?).

    I'll check out the links and files after a bit...looks interesting.

    LOL re. your list...I've been helping-out here at AF (and a little bit over at XDA) since about May of last year (when I first rooted my Eris). Its certainly a challenge at times, but the rewards are worth it :).

    Cheers!
     
  14. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    Welcome to the AndroidForums, r5ingh :).

    First, when and where did you create the symlink? Can you tell us more about what you did?

    If you did it while ClockworkMod was booted-up / running (which is the only context that the softlink discussion was intended for), then there's no worries because that only affects a temporary ramdisk and will go bye-bye after you reboot. Chances are, the link was actually already there and you should have gotten a warning message similar to what was discussed above.

    If you tried to do it while Android was booted-up, you would have first had to have mounted /system as read-write and then tried to do it, you should have found that the link was already there since Android does this already (so, don't try to remove it--it'll probably get recreated after reboot anyway).

    You don't really want to remove it since linking /sdcard to /data/media is what you want.

    Let us know.

    Cheers!
     
    r5ingh likes this.
  15. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Note to Scary Alien,

    All the dos commands you had me do has stuck. No more "No sdcard found" even after several reboots and cache cleanings and such, thanks.

    Now I could just get it to install the .zips I want.

    Is there a test .zip app I can try that will show us its either my phone or those apps. something that I can toss afterwords.
     
  16. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    You mean a test .zip file you can flash?

    You could always use the su.zip file referenced in the ClockworkMod rooting method listed in each of the How-To Root guides (click it's "Show" button to expand and see where to get the su.zip file to download).

    The su.zip file should simply re-install the su binary and the Superuser.apk file...no harm, no foul there.
     
  17. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Same thing:

    Finding update package...
    Opening update package...
    Installing update...
    E:Error in /sdcard/su.zip
    (Status 0)
    Installation aborted.


    :thinking:
     
  18. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    Wow! That is very interesting...

    You are on a Windows machine, right? (I'm pretty sure you are since you made "DOS" references earlier).

    Can you try downloading directly to your /sdcard from your phone? (don't let any other machine touch it) and then try to flash that...

    It seems like its a partial or corrupted download...

    Try downloading the su.zip file directly to your phone via your phone. Then, check its size and MD5 checksum with either my AFV app or with Astro File Manager:

    File size (bytes): 1,126,078
    MD5 checksum: 3450886ea845813637419c10da01ba9d

    Let me know.

    Thanks!
     
  19. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    I'm all turned around now. I am finding all kinds of su.zip files out there.
    Where is this clockworkmod show thing?

    I'm in a dizzy spin.

    I have tried downloading things to the GN but it tells me I cannot save here.
     
  20. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    Here's the one I was referencing: http://download.clockworkmod.com/test/su.zip

    Download that directly from your phone to your /sdcard folder and then try my AFV app against it (use Select File to navigate to the file, long-press the filename, select "Calc MD-5 Checksum" or use Astro File Manager, navigate to file, long-press and select Details.

    Let me know.
     
  21. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Heh, Sorry, I caught on just before your reply came.

    I cannot download to the phone. I have to drag it over.
    I got the one you pointed at and it checks out size and sum wise.

    It installed!!!

    I'm embarrassed to ask this but if I want to install for example the inverted people zip should I not disable the current one or rename it .bak? Could this be the prob.

    I'm new but all these guys posting these wonderful new things love to omit the install stuff.
     
  22. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    Why can't you download to the phone? :thinking: (i.e., point your browser to the web site and click on or long-press the link to do the save).

    I'm not sure what you mean about disabling your current inverted people zip (I laughed when I typed that ;))...

    You touched on the issue a little bit already where devs that don't post MD5 checksums or create signed .zip files (signing is NOT that hard), you can't verify and double-check that you've had a file download issue.

    Here is what I get when I download the People_Inverted.zip file:

    File size (bytes): 1,858,466
    MD5 sum: 12050a418983b4fbf0cfee8eee743455

    Incidentally, my AFV app has a "Verify Jar File" feature/option that will allow you to validate that a signed .zip-type file is whole and un-corrupt--even if you don't know the MD5 checksum. That's not the case with the su.zip file or the People_Inverted.zip file, though (they are not signed).

    You should ask / encourage a dev to publish the MD5 checksum and its file size or ask that they published signed versions of files.

    I'm guessing that you might be getting corrupted files when you are dragging and dropping to your phone. When you are downloading a file to your PC first and then dragging it to your phone, there are now three copies of that file: the original from the download location, the one you downloaded to your PC, and now the one your phone. Which one is the right one? You don't know unless there's a way to validate a file's checksum.
     
  23. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    I hear you. I took you wrong again. Via phone su.zip download it went and installed fine.

    Could it be the apps the inverted ones are replacing need to be uninstalled 1st?
     
  24. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,293
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,293
    23,645
    2,138
    Male
    space alien ;)
    Indy
    Do you mean if the install is failing because they are already installed or need to be uninstalled?

    I don't think so...the methods used by any given flashable install .zip file can be wildly different (i.e., author's choice), but I can't imagine them failing because of being already installed (an install usually just "plops" the files to their needed locations, etc.).
     
  25. gapi

    gapi Android Expert
    Thread Starter
    Rank:
    None
    Points:
    243
    Posts:
    1,593
    Joined:
    May 14, 2011

    Arrrgh! Mercy, I just want to do the Dr. Smith - Oh The Pain!

    Get this.

    1. I went in and renamed the mms.apk to mms.apk.bak.
    2. Went to the link I put up here for the inverted mms and opened the page.
    3. Copied the link and texted it to myself.
    4. Opened the link from my mms and downloaded the file.
    5. Used root explorer to move it from downloads to the sdcard area.
    6. Opened CWR and it INSTALLED!
    Going after the others now.
     
Tags:

Share This Page

Loading...