Jump to content

adb shell is not working.


Recommended Posts

Guest sreeramu
Posted

Hi Friends,

I Started my u8220 in recovery mode by holding end key and menu key , after the recovery mode come i connected my device to my PC and in commend prompt i typed

Commend : adb shell

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

and i tried

Commend : adb push /sdparted.txt /sbin/sdparted

Output: failed to copy '/sdparted.txt' to '/sbin/sdparted': Permission denied

Can i know why i am getting this errors , am i missing any thing....?

Note: I rooted my device(my device have root access).

Guest MarcusHenrique
Posted

To access adb you should have the phone powered on, not in recovery mode :huh:

Guest sreeramu
Posted
To access adb you should have the phone powered on, not in recovery mode :huh:

Hi MarcusHenrique Thank you for you quick replay .

Now i am trying with phone switch on but i am getting below error can i know the reason.

C:\>adb push /sdparted.txt /sbin/sdparted

failed to copy '/sdparted.txt' to '/sbin/sdparted': Read-only file system

Guest BigBearMDC
Posted
Hi MarcusHenrique Thank you for you quick replay .

Now i am trying with phone switch on but i am getting below error can i know the reason.

C:\>adb push /sdparted.txt /sbin/sdparted

failed to copy '/sdparted.txt' to '/sbin/sdparted': Read-only file system

You have to mount the Pulse's filesystem with read/write access first.

I just don't remeber the command right now.

Something like mount -o rw /mcblk1 /system...

Greetings,

BigBear

Guest Tom G
Posted
Hi MarcusHenrique Thank you for you quick replay .

Now i am trying with phone switch on but i am getting below error can i know the reason.

C:\>adb push /sdparted.txt /sbin/sdparted

failed to copy '/sdparted.txt' to '/sbin/sdparted': Read-only file system

What is it you are trying to do? what is sdparted.txt?

/sbin is on the root fs (/), which by default is mounted read-only. What ever you are trying to push, I would recommend putting it on /sdcard which should be rw.

If you really want it in /sbin try

adb shell mount / -o remount,rw

adb push /sdparted.txt /sbin/sdparted

Guest sreeramu
Posted
You have to mount the Pulse's filesystem with read/write access first.

I just don't remeber the command right now.

Something like mount -o rw /mcblk1 /system...

Greetings,

BigBear

Hi Friend thank you for your replay i will try it...

Guest sreeramu
Posted
What is it you are trying to do? what is sdparted.txt?

/sbin is on the root fs (/), which by default is mounted read-only. What ever you are trying to push, I would recommend putting it on /sdcard which should be rw.

If you really want it in /sbin try

adb shell mount / -o remount,rw

adb push /sdparted.txt /sbin/sdparted

Hi friend as i know by default all the applications are installed in device memory i am trying to partition my sd card for making application application get installed on sd card...

I got one tutorial called

How to partition your Androids SD card to install apps on it

so i am trying it.

Hi All,

i have one question in huawei u8220 by default where the applications get installed.....In device memory or in sd card......?

Guest sreeramu
Posted
What is it you are trying to do? what is sdparted.txt?

/sbin is on the root fs (/), which by default is mounted read-only. What ever you are trying to push, I would recommend putting it on /sdcard which should be rw.

If you really want it in /sbin try

adb shell mount / -o remount,rw

adb push /sdparted.txt /sbin/sdparted

Hi Tom i am getting error for this commend

C:\>adb shell mount / -o remount,rw

Usage: mount [-r] [-w] [-o options] [-t type] device directory

Guest Tom G
Posted
Hi Tom i am getting error for this commend

C:\>adb shell mount / -o remount,rw

Usage: mount [-r] [-w] [-o options] [-t type] device directory

I'm not sure why it failed, that command works fine for me. Maybe windows doesn't pass the command to the shell properly? You could try going into adb shell then run mount with the same arguments and see it you still get an error.

The easiest way to partition the sd card is from the patched recovery image (I'm not sure the normal image even has the fdisk/mkfs commands needed for partitioning/formatting).

Install the recovery image Link

Then you simply boot into recovery mode (hold menu+red button while booting) and choose the menu option for partitioning the sd card.

Guest sreeramu
Posted
I'm not sure why it failed, that command works fine for me. Maybe windows doesn't pass the command to the shell properly? You could try going into adb shell then run mount with the same arguments and see it you still get an error.

The easiest way to partition the sd card is from the patched recovery image (I'm not sure the normal image even has the fdisk/mkfs commands needed for partitioning/formatting).

Install the recovery image Link

Then you simply boot into recovery mode (hold menu+red button while booting) and choose the menu option for partitioning the sd card.

Hi friend,

After doing partition of my sd card as mentioned in the tutorial my sd card was not detected .....So i removed the partition and formatted it now sd card is detecting.....did some one know what could be the problem.....?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.