I Am Rooted: Why this error?

Discussion in 'Android Hacks and Help' started by buddy5582, Jan 10, 2010.

  1. buddy5582
    Offline

    buddy5582 New Member

    Joined:
    Jan 3, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    Installing 0.99.2b and when I go to flash the image recovery to the partition I get this error:
    / # su
    su
    sh: am: not found
    su: am.. Error:No such file or directory

    Please, any info is very much appreciated.
  2. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    0
    Is this from recovery mode, or phone running? I'm assuming phone running because I think su is automatic in recovery mode.

    Enter these commands, what do you see:

    echo $PATH
    busybox ls -lt `which su`

    EDIT: Looking at it again, your prompt is the '#' ... this typically means you are already root. Which means you do not need to enter the su command ... you might be in recovery mode here then? If so ... you don't need to enter the 'su' command ...
  3. buddy5582
    Offline

    buddy5582 New Member

    Joined:
    Jan 3, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    This is when the phone was running. Do I run your commands in a shell?
  4. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    0
    Yes, from a DOS prompt, run 'adb shell' ... then run the commands I've shown

    But I'm still confused about your showing the # prompt BEFORE you enter su ... if you have a # prompt, you're already 'su'd' or root ...
  5. buddy5582
    Offline

    buddy5582 New Member

    Joined:
    Jan 3, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    Thanks again, Chevy. I'm not sure why I was getting the error. Honestly, I just used a backup with root and went that route. I did run your commands:

    C:\Documents and Settings\HP_Administrator\Desktop>adb shell
    / # echo $PATH
    echo $PATH
    /sbin:/system/sbin:/system/bin:/system/xbin
    / # busybox ls -lt `which su`
    busybox ls -lt `which su`
    -rwsr-xr-x 1 0 0 5480 Jan 10 15:48 /system/bin/su

    Again, appreciate it.
  6. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    0
    You bet ... so when you're getting this error 'su' ... are you entering it yourself? It appears so ... I don't think you need to. Appears you are already root. One other way to test is to try 'ls -l /data' ... if that works, you're root.

    So if you're sitting at the '#' prompt, just run the flash_image command without running su
Search tags for this page
/sbin/sh su not found
,

/sbin/sh: su: not found

,
adb su: not found
,
android su not found
,
busybox su binary not found
,
no su found in $path
,

no su was found in $path

,
no su was found in path
,
sbin sh su not found
,
su: /sbin/sh: no such file or directory
,
su: am.. error:no such file or directory
,
where does the su file go