exec '/system/bin/sh' failed: No such file or directory - General Questions and Answers

Hello.
I built CM11 for my chinese tablet Onda V989 and i successfully flash my rom via CWM. (I wipe data & cache after flashing).
After rebooting it stuck on the bootloader logo. (I think that it happens because system partition was not mounted correctly)
Then i tried to get logcat but i got this error:
Code:
exec '/system/bin/sh' failed: No such file or directory
Then i checked otapackage which i built ands i found that sh file did not exist. It is strange.
Any idea?
Here is a my device tree which i used for building:
device folder
vendor folder
kernel folder

Related

Recovery : exec '/system/bin/sh' failed

I repacked recovery.img after adding busybox and nandroid.
Now I'm trying to get adb shell working in recovery mode but I always get the error : "exec '/system/bin/sh' failed: No such file or directory"
I tried added "symlink /sbin/busybox /system/bin/sh" to init.rc but the error is still there.
How can I get adb shell working in recovery?

[Q] adb shell errors after flashing custom system.img. [star b92m mtk6577]

I'm creating custom system.img for the device star b92m (Flashing via sp flash tool)
(My files are here: https://github.com/Bnaya/alps-H958-mods)
I'm packing the files back to the .img file using make_ext4fs.
(./tools/make_ext4fs -s -l 512M -a system ./packed_systems/cm_custom_system.img systems/custom_alpha/)
The phone is working (boot and usage ) with that .img, the adb is recognizing the device but adb shell returns that error:
Code:
- exec '/system/bin/sh' failed: Exec format error (8) nRet(-1) -
That happens event of all of the files are the original files, just extracted & repack the .img file
The only difference i can point on is that the original system.img file is 512MB size and my packed one size are based on the content size (even with the -s -l 512M params)

Unable to install any Rom , /system: No such file or directory

So I tried to install LineageOS on my Honor 8. I unblocked the Bootloader and I am currently able to get into TWRP and Fastboot Mode. I did change the filesystem for the cache system and data as described in this video: w w w. youtube.com /watch?v=X7yDPszoQ5s to enable the encrypted folders.
When I try to install any ROM I am getting the following Errors in red:
E: unknown command (log)
Updater process ended with ERROR: 7
Error installing zip file 'romname'
Also:
Skipping MD5 check: no MD5 file found
could not detect filesystem for /dev/block/bootdevice/by-name/system at /system: No such file or directory
unmount of /system failed; no such volume
patching system image uncoditionally...
E1001: Failed to update system image.

rsync Android / TWRP

I'm trying to create rsync to my andorid / TWRP So i can backup android folder
My code for compile:
Code:
Downloaded from (https://github.com/WayneD/rsync/releases)
./configure --host=arm-linux-gnueabi CFLAGS="-static" --disable-xxhash --disable-zstd
make
make prefix=/home/fredy/Desktop/rsync install
i copy the file ("rsync", "rsync-ssl") into /sbin
But i got this error here and testet with command "rsync":
Code:
/sbin/rsync: line 1: syntax error: unexpected "("
Can you help me out?
Thanks for your time

exec '/system/bin/sh' failed: No such file or directory (2)

I've been trying to get CyanogenMod 12.1 to work on a Samsung device, but when I try to run adb shell, I get the following error:
Code:
- exec '/system/bin/sh' failed: No such file or directory (2) -
I can confirm that the binary exists (I checked via TWRP). Any help please?
Wondering what sense the cmd listed above makes? It simply switches to Android's default shell.
AFAIK exec cmd isn't part of Android OS ( read: Toybox )
xXx yYy said:
Wondering what sense the cmd listed above makes? It simply switches to Android's default shell.
AFAIK exec cmd isn't part of Android OS ( read: Toybox )
Click to expand...
Click to collapse
Thanks! I hope I'll be somehow able to fix this issue.

Categories

Resources