[SOLVED]Please help me with the terminal emulator (Samsung s4 i9500 rooted) - Galaxy S 4 Q&A, Help & Troubleshooting

Firstly I'd like to thank you for this best forum.
My problem is that when I run the terminal as super user it's can't read sdcard it's give me nothing .
This is the commands
===========================
[email protected]:/ $ su
[email protected]:/ # cd sdcard
[email protected]:/sdcard # ls
[email protected]:/sdcard #
===========================
But without running as super user give me
===========================
[email protected]:/ $ cd sdcard
[email protected]:/sdcard $ ls
Alarms
Android
Application
DCIM
Documents
Download
INDI
Movies
Music
Notifications
Pictures
Podcasts
Ringtones
SMemo
SecretBox
ShareShot
Subtitles
UCDownloads
WhatsApp
comquoordtapatalkxdapreactivity
data
media
viber
[email protected]:/sdcard $
=============================
I've rooted my phone with CF-Auto-Root-Chainfire‏
Please what is the solution.
Thanks again.
just uncheck "mount namespace separation " on supersu app

Hi,
Superuser access on Terminal isn't useful for directory listing, as the function is mostly related to system functions.
Sent from my GT-I9500

What exactly do you want to do? And maybe some one can point you in the right direction.

krasCGQ said:
Hi,
Superuser access on Terminal isn't useful for directory listing, as the function is mostly related to system functions.
Sent from my GT-I9500
Click to expand...
Click to collapse
Thanks.
How I can make it access?

GDReaper said:
What exactly do you want to do? And maybe some one can point you in the right direction.
Click to expand...
Click to collapse
I just wanted to boot backtrack.

Have you installed BusyBox?

Mandark52 said:
Have you installed BusyBox?
Click to expand...
Click to collapse
Yes , I have .

ABSLHM said:
Firstly I'd like to thank you for this best forum.
My problem is that when I run the terminal as super user it's can't read sdcard it's give me nothing .
This is the commands
===========================
[email protected]:/ $ su
[email protected]:/ # cd sdcard
[email protected]:/sdcard # ls
[email protected]:/sdcard #
===========================
But without running as super user give me
===========================
[email protected]:/ $ cd sdcard
[email protected]:/sdcard $ ls
Alarms
Android
Application
DCIM
Documents
Download
INDI
Movies
Music
Notifications
Pictures
Podcasts
Ringtones
SMemo
SecretBox
ShareShot
Subtitles
UCDownloads
WhatsApp
comquoordtapatalkxdapreactivity
data
media
viber
[email protected]:/sdcard $
=============================
I've rooted my phone with CF-Auto-Root-Chainfire‏
Please what is the solution.
Thanks again.
Click to expand...
Click to collapse
On most devices, the SDCard is either mounted or at least linked to either /mnt/sdcard or /sdcard. However, when the device features both, an internal and external SDCard, the latter usually is to be found "inside" the former, e.g. at /sdcard/external_sd. Alternatively, it may be mounted at /mnt/extSdCard or /storage/extSdCard. Note the capitals. Android filenames are case-sensitive.
I think you just tried the wrong path. You can use a file explorer to easily find the correct path.

Lennyz1988 said:
On most devices, the SDCard is either mounted or at least linked to either /mnt/sdcard or /sdcard. However, when the device features both, an internal and external SDCard, the latter usually is to be found "inside" the former, e.g. at /sdcard/external_sd. Alternatively, it may be mounted at /mnt/extSdCard or /storage/extSdCard. Note the capitals. Android filenames are case-sensitive.
I think you just tried the wrong path. You can use a file explorer to easily find the correct path.
Click to expand...
Click to collapse
I tried
/sdcard and /mnt/sdcard
But this one just work...why
/storage/emulated/0

Try this:
cd /storage/extSdCard

Mandark52 said:
Try this:
cd /storage/extSdCard
Click to expand...
Click to collapse
It's work

ABSLHM said:
It's work
Click to expand...
Click to collapse
Glad it worked

Mandark52 said:
Glad it worked
Click to expand...
Click to collapse
But it's the memory card I wanna the phone memory

ABSLHM said:
But it's the memory card I wanna the phone memory
Click to expand...
Click to collapse
Then you are mixing things up because /sdcard is the phone memory.

ABSLHM said:
But it's the memory card I wanna the phone memory
Click to expand...
Click to collapse
For phone memory : cd /storage/emulated/0

Mandark52 said:
For phone memory : cd /storage/emulated/0
Click to expand...
Click to collapse
I know that ? but how I can make it
/sdcard

ABSLHM said:
I know that ? but how I can make it
/sdcard
Click to expand...
Click to collapse
Why do you want to make it as /sdcard? Your apps will crash because of it. May be I could help you with if you tell about it.
All the best!

Mandark52 said:
Why do you want to make it as /sdcard? Your apps will crash because of it. May be I could help you with if you tell about it.
All the best!
Click to expand...
Click to collapse
Ok.... thank you a lot. ?

Mandark52 said:
Why do you want to make it as /sdcard? Your apps will crash because of it. May be I could help you with if you tell about it.
All the best!
Click to expand...
Click to collapse
Why it's crash....I saw some videos on YouTube it's work with /sdcard
Sorry for my a lot questions?

ABSLHM said:
Why it's crash....I saw some videos on YouTube it's work with /sdcard
Sorry for my a lot questions?
Click to expand...
Click to collapse
Its ok you may ask many questions in a thread. I just want to know that why do you want to change the /emulated/0 to /sdcard.

Related

back up apps???????

ok, so i searched and i searched... forums, googling, and video sites (for tutorials and not just one search each, several times each one.) and i haven't been able to find out how to back up apps... i have root access and i'm running a jacheroski rom. i think i can back up free apps only. is it possible to back up my paid apps that i've bought off the market through the phone?? can i do it through a computer??? any insight will help. thank you ahead of time.
thanx to the site for all the roms and tutorials and all the people who contributed to them. ^_^
valefore said:
ok, so i searched and i searched... forums, googling, and video sites (for tutorials and not just one search each, several times each one.) and i haven't been able to find out how to back up apps... i have root access and i'm running a jacheroski rom. i think i can back up free apps only. is it possible to back up my paid apps that i've bought off the market through the phone?? can i do it through a computer??? any insight will help. thank you ahead of time.
thanx to the site for all the roms and tutorials and all the people who contributed to them. ^_^
Click to expand...
Click to collapse
You can try My Backup for Root users
http://www.cyrket.com/package/com.bg.smsbk
Or My Backup
http://www.cyrket.com/package/com.rerware.android.MyBackup
or apps manager
http://www.cyrket.com/package/de.android_telefonie.appmanager
EDIT:
As long as you use the same google account signin, no matter what phone you use, you will always have access to your paid apps again without having to pay for them again, so there is really no need to backup paid apps. If you switch phone (as I have done because I have two) just go to my downloads and all the paid apps (as well as unpaid apps) will be there ready to download again. Or you can use the programs suggested above.
DirectMatrix said:
You can try My Backup for Root users
http://www.cyrket.com/package/com.bg.smsbk
Or My Backup
http://www.cyrket.com/package/com.rerware.android.MyBackup
or apps manager
http://www.cyrket.com/package/de.android_telefonie.appmanager
EDIT:
As long as you use the same google account signin, no matter what phone you use, you will always have access to your paid apps again without having to pay for them again, so there is really no need to backup paid apps. If you switch phone (as I have done because I have two) just go to my downloads and all the paid apps (as well as unpaid apps) will be there ready to download again. Or you can use the programs suggested above.
Click to expand...
Click to collapse
well, when i rooted my phone, i went to "my downloads" in the market and the apps were there, but i needed to redownload but the thing was that if i didn't DL all at once, when i go back to "my downloads" it just shows the recent ones i downloaded and the ones already installed.
but thanx, i'm gonna try those apps right now.
You can also type in the terminal:
$su
#mkdir /sdcard/AppBackup/
#cp -r /system/sd/* /sdcard/AppBackup/
this will put all of your apps, including paid apps, in the directory you created.
Diceman4 said:
You can also type in the terminal:
$su
#mkdir /sdcard/AppBackup/
#cp -r /system/sd/* /sdcard/AppBackup/
this will put all of your apps, including paid apps, in the directory you created.
Click to expand...
Click to collapse
wow... sweet. gonna try that now... the apps didn't work backing up my paid apps. =/
valefore said:
wow... sweet. gonna try that now... the apps didn't work backing up my paid apps. =/
Click to expand...
Click to collapse
I assumed you were using apps 2 sd, if not let me know.
valefore said:
wow... sweet. gonna try that now... the apps didn't work backing up my paid apps. =/
Click to expand...
Click to collapse
The one downside to backing up and reinstalling paid apps from SD is the maret no longer checks for updates on those apps...you have to update manually from the market (But once you do it once through the market then it will keep checking until you wipe again of delete the app)
#cp -r /system/sd/* /sdcard/AppBackup/
is the "*" where i add my folder name or is it after "/appbackup"??? capitalization necessary for the A and B in "appbackup"??
it said optional or options but didn't store anything in my new folder labeled "yoe" in the SD's root...
valefore said:
#cp -r /system/sd/* /sdcard/AppBackup/
is the "*" where i add my folder name or is it after "/appbackup"??? capitalization necessary for the A and B in "appbackup"??
it said optional or options but didn't store anything in my new folder labeled "yoe" in the SD's root...
Click to expand...
Click to collapse
Code:
# mkdir /sdcard/test
mkdir /sdcard/test
# cp -r /system/sd/* /sdcard/test
cp -r /system/sd/* /sdcard/test
# ls /sdcard/test/
ls /sdcard/test/
app
app-private
app_s
This is what should happen when you type in the commands (This is the output when I actually do it)
The mkdir is creating a folder on your SD so when you 'cp' or copy all of the files in /system/sd/ the '*' is a shell wildcard for all files you need to reference the exact folder you created in sdcard.
so if you did:
$su
#mkdir /sdcard/yoe
you should do:
#cp -r /system/sd/* /sdcard/yoe
Then if there are no errors check your sdcard to make sure they got copied
Edit: The 'ls' command is like a 'dir' command in the windows shell
uh.. tried exactly what you wrote down with "test" instead of "yoe", didn't work. and no, i'm not using the app2sd, i don't believe. i'm running the "slow" rom due to me not having a memory card that can be partitioned. (sorry, forgot to mention it.)
i made the yoe folder with astro.
there's just one file under the "test" folder and it's labeled "placeholder"...???
valefore said:
uh.. tried exactly what you wrote down with "test" instead of "yoe", didn't work. and no, i'm not using the app2sd, i don't believe. i'm running the "slow" rom due to me not having a memory card that can be partitioned. (sorry, forgot to mention it.)
i made the yoe folder with astro.
there's just one file under the "test" folder and it's labeled "placeholder"...???
Click to expand...
Click to collapse
OK then type:
#cp -R /system/app-private/* /sdcard/test/
#cp -R /system/app/* /sdcard/test/
The app-private apps are your paid apps the rest are free.
Diceman4 said:
OK then type:
#cp -R /system/app-private/* /sdcard/test/
#cp -R /system/app/* /sdcard/test/
The app-private apps are your paid apps the rest are free.
Click to expand...
Click to collapse
i did this and it said
cp: cannot stat '/system/app-private/*': No such file or direntory
#
valefore said:
i did this and it said
cp: cannot stat '/system/app-private/*': No such file or direntory
#
Click to expand...
Click to collapse
type
$su
#ls /system/
and let me know what it outputs
Diceman4 said:
type
$su
#ls /system/
and let me know what it outputs
Click to expand...
Click to collapse
lib
usr
fonts
sd
xbin
etc
app
customize
build.prop
media
framework
bin
lost+found
#
valefore said:
lib
usr
fonts
sd
xbin
etc
app
customize
build.prop
media
framework
bin
lost+found
#
Click to expand...
Click to collapse
Hmmm... how about:
#ls /system/sd/
and
#ls /system/app
Thanks!
Diceman4 said:
Hmmm... how about:
#ls /system/sd/
and
#ls /system/app
Thanks!
Click to expand...
Click to collapse
the first one gave me
placeholder
the other one gave me a list of .apk and .odex but i checked and double checked but i didn't see the hello im i paid for... ???
valefore said:
the first one gave me
placeholder
the other one gave me a list of .apk and .odex but i checked and double checked but i didn't see the hello im i paid for... ???
Click to expand...
Click to collapse
I should have asked, did you try to set up apps 2 sd? If so it may have been configured wrong.
WHat exactly are you running:
Partitions: order & size
ROM version:
SD Class:
Also could you go to Settings->SDCard and let me know how much Internal storage space you have left.
Thanks!
Diceman4 said:
I should have asked, did you try to set up apps 2 sd? If so it may have been configured wrong.
WHat exactly are you running:
Partitions: order & size
ROM version:
SD Class:
Also could you go to Settings->SDCard and let me know how much Internal storage space you have left.
Thanks!
Click to expand...
Click to collapse
i stated that i didn't believe i have apps2sd because i don't have an sd that can be partitioned.
i have JACHero2.7.3_SuperLite installed i believe.
ota-radio-2_22_19_26I
haykuro latest spl
i don't know the sd class. it's the one gb that came with the phone.
sd total 974 available 623. internal 9mb (lol)
valefore said:
i stated that i didn't believe i have apps2sd because i don't have an sd that can be partitioned.
i have JACHero2.7.3_SuperLite installed i believe.
ota-radio-2_22_19_26I
haykuro latest spl
i don't know the sd class. it's the one gb that came with the phone.
sd total 974 available 623. internal 9mb (lol)
Click to expand...
Click to collapse
You said you don't know if you got apps2sd set up. Did you ever create a second partition (ext2/ext3/ext4)
supremeteam256 said:
You said you don't know if you got apps2sd set up. Did you ever create a second partition (ext2/ext3/ext4)
Click to expand...
Click to collapse
Well, i tried, but it didn't let me. so continued to flash the JACHero roms as the came out and didn't worry bout the apps2sd because i'm happy with just aim and a browser. it has terminal and tether and a twitter client so the only app i really need/want that i have to install from market is the hello aim, i had a few other apps i just wanted to try out but i uninstalled them already.

[Q] How to gain root permission?

Hi,
i'm using mdj 1.7 nandroid and i got problem to get root permission.
i installed super user, z4root,su-2.3.6.1-ef-signed and still i cant delete files , and few more actions.
someone can help me ? :O
incident said:
Hi,
i'm using mdj 1.7 nandroid and i got problem to get root permission.
i installed super user, z4root,su-2.3.6.1-ef-signed and still i cant delete files , and few more actions.
someone can help me ? :O
Click to expand...
Click to collapse
Did you check it is r/w and not r/o?
Have you tried superclick?
Sent from my HTC HD2 using XDA App
jose makalolot said:
Did you check it is r/w and not r/o?
Have you tried superclick?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
I dont know how to check that is r/w ..
1.7 is already rooted...you dont need to install any of those apps...
the_scotsman said:
1.7 is already rooted...you dont need to install any of those apps...
Click to expand...
Click to collapse
are you sure ? cuz i cant delete files from system folder in root and etc..
incident said:
are you sure ? cuz i cant delete files from system folder in root and etc..
Click to expand...
Click to collapse
You need to use something like Root Explorer to do that.
the_scotsman said:
You need to use something like Root Explorer to do that.
Click to expand...
Click to collapse
i know.. but still cant do it..
btw i try to run desktop virtualizer and also this program said that she dont have the right permission do to so. :<
thanks for your's help , mate ! :]
Do you have SDK installed? If so, just open up a command prompt and use:
Code:
adb shell
mount -o rw,remount /system
rm *insert path to specific file you want to remove*
Ctrl+C
exit
anrabi4 said:
Do you have SDK installed? If so, just open up a command prompt and use:
Code:
adb shell
mount -o rw,remount /system
rm *insert path to specific file you want to remove*
Ctrl+C
exit
Click to expand...
Click to collapse
thanks !
with this way , can i grand permission for application? like desktop virtualizer?
(when i run it, it's said "not have right permission")
if yes , how?

[Q] Honeycomb Keyboard

I'm kinda new to android
I've started to delete useless apps through Titanium Backup(acer staff,games etc) , and exidently deleted smth connected with honeycomb stock keyboard.
Now every time when i want to use stock keyboard, pops up a messege "The application Android keyboard (process com.google.android.inputmethod.latin) has stopped unexpectedly. plz try again".
Ive tryied to reset factory data but it wont helped. Is thera any solution for this problem? if there no, plz tell how to completely reset tablet) ive read "system Images " thread but i didn understand some things
here is my recover steps: (for a500 which is bricked)
for a500 is normal:
root it
put the system.img into a500
connect to the computer with adb and follow the codes:
su
dd if=/sdcard/system.img of=/dev/block/mmcblk0p3
then reboot
Click to expand...
Click to collapse
connect to the computer with adb and follow the codes:
su
dd if=/sdcard/system.img of=/dev/block/mmcblk0p3
what that means)
You might very well have ruined your tablet.
I'm not a developer or coder so I can't make any sense of the code you posted but if a reset didn't fix it then you've certainly deleted something important. Hopefully someone has some ideas.
If not, then maybe you can return it? And next time, don't delete something unless you know what it is you're deleting.
ok ive recovered from image, but now wifi is not working , what should i do?
There are posts about having to change file permissions to fix wifi. Search this forum, there are a few.
edit - linked post
http://forum.xda-developers.com/showthread.php?t=1074449&highlight=wifi+permission
yeah ive read this but i dont know how to move that files to system folder on devide, wifi is down , so i cant download any file managing apps from market and theres no any file managers on stock Rom
If you've got the adb working, you can use the command mv to move the file.
I'm not sure of the exact path involved, but for example. the file is in /mnt/sdcard/filetobemoved and needs to go into /sytem/lib/modules
mv /mnt/sdcard/filetobemoved /system/lib/modules
That'd put it in the location you need. To change the permissions, you'd use the command chmod
chmod 655 /system/lib/modules/filetobemoved
The 655 is an octal(0-7) representation of the file's permissions. I'm not sure what permissions it needs, but you could try 655 as a start unless someone else knows for sure.
if you want, hit me up on msn, I can try to walk you through it: [email protected]
Glebaka said:
ok ive recovered from image, but now wifi is not working , what should i do?
Click to expand...
Click to collapse
Ah *phew* Good to hear.
gammaRascal said:
Ah *phew* Good to hear.
Click to expand...
Click to collapse
lol How'd he get in that shape to begin with? Any idea what exactly it was he deleted that bonked his system?
muqali said:
lol How'd he get in that shape to begin with? Any idea what exactly it was he deleted that bonked his system?
Click to expand...
Click to collapse
No clue. I really should start reading up on HC app development and at least familiarize myself with that environment.
I haven't rooted yet cause I'm e'scarded to.
ahh i cant replace that files , somehow installed astro manager(through docsttogo) but i cant remove/replace/rename that files in system/lib/modules it says i dont have permission to do this.
tryed in connectbot type "mv /mnt/sdcard/filetobemoved /system/lib/modules"
got this "failed on '/system/lib/modules/filename' - cross-device link"
im rooted what if
Glebaka said:
ahh i cant replace that files , somehow installed astro manager(through docsttogo) but i cant remove/replace/rename that files in system/lib/modules i dont have permission to do this.
tried connectbot tryied "mv /mnt/sdcard/filetobemoved /system/lib/modules"
got this "failed on '/system/lib/modules/filename' - cross-device link"
im rooted
Click to expand...
Click to collapse
type mount and paste/retype the line that has /system in it. It might be mounted read only.
or try the cp command in place of mv
edit - also, the filetobemoved is just an example. I think one of the filenames is bcm4329.ko but I'm not sure. so /system/lib/modules/bcm4329.ko would be the full path
ah im total noob tried cp instead of mv it said permission denied .
t
ype mount and paste/retype the line that has /system in it. It might be mounted read only.
Click to expand...
Click to collapse
i didnt get that (
edit - also, the filetobemoved is just an example. I think one of the filenames is bcm4329.ko but I'm not sure. so /system/lib/modules/bcm4329.ko would be the full path
Click to expand...
Click to collapse
yeah thats i know)
Are you logged into the tablet using adb's shell? I've only used that once on a different tablet, but iirc the commands are standard Unix/Linux commands. Someone correct me if I'm wrong but aren't you already logged in as superuser like this? You don't need to 'sudo' or 'su' to switch over do you?
I'm not familiar enough with this specific environment to figure out what might be keeping you from placing those files in that location. The command to check the partitions mount options is
mount
It should return a bunch of text, one line of which is gonna be the /system partition. If it's ro(read only) then you can't write to it and would need to remount it.
yeah it looks like it is "ro"
ive got /system ext4 ro
how to remount)
My knowledge of adb is limited as well. All I know is that I can connect to it, type: adb devices (in the command prompt) to make sure it sees my tab then 'adb push filename.extension /directory/structure' to force files... Conversly, I think adb pull filename.extension /directory/structure will grab files on the tab if you know what they are called and where they are located.
Glebaka said:
yeah it looks like it is "ro"
ive got /system ext4 ro
how to remount)
Click to expand...
Click to collapse
what was the /dev/block/mtdblock for /system?
there is a number after it...for example /dev/block/mtdblock1
mount -o rw,remount -t ext4 /dev/block/mtdblock1 /system
would remount it read/write, provided that it is mtdblock1, change the number depending on what your device has.
yeah now /system have "rw", but it anyway refuses to copy using mv(failed on '/system/lib/modules/filename' - cross-device link"
) or astro manager
Glebaka said:
yeah now /system have "rw", but it anyway refuses to copy using mv(failed on '/system/lib/modules/filename' - cross-device link"
) or astro manager
Click to expand...
Click to collapse
If cp won't put it there either, I'm out of ideas. Maybe ask in the other thread how they were able to copy/move the file and set the permissions?
I know it may not be really classy, but how about downloading an .apk That will let you mount the drive, to an sd card in a computer then transfer that to the Acer. (If it's an extreme case and nothing else will work..not condoning piracy, but don't know what would work...)
or is it possible to copy the system data from a Titanium backup and send it over so he can restore the missing files?
This following step I can't be responsible for it's safety. It looks safe to my eyes, but proceed having been forewarned. I did some research and you might be able to use dd to get the file there.
dd if=/mnt/sdcard/filname of=/system/lib/modules/filename

Any fix for this? (Picture attached)

I'm out of ideas. I've asked before but got no where. I figured a picture may help. I can root and get all the way to cm 7.0.3 but anything 1.2 update related fails. I've tried using the cwm flashable update but that fails too.
The pic is from a fresh 1.0. (I've tried 1.1 also.)
Sent from my DROIDX using XDA Premium App
USE THIS http://forum.xda-developers.com/showthread.php?t=1000957 with a sandisk 8 gb class 4 chip.....
Call it a day.... use CM7.1 RC, its very stable.... if you need to update to nightlies, its simple as just copy the downloaded file onto the external memory card.
Yeah that is a last resort. I plan on giving that nook to my brother who is android illiterate. How did everything get borked anyway?
I bypassed the registration and my nook info looks like this
Sent from my DROIDX using XDA Premium App
OH CRAP.... looks like some sort of internal corruption....
Do a complete wipe......
THEN Do the SDCard install...
It's seemless to the user... THere is no bootup screen or anything... The nook will automatically boot to the sd first.... so he won't need to know anything...
if he is REALLY not too literate, then he can just pull the sd, and it boots into the nook.
Ok....I'm not sure what kind of SD card I have... it just says micro SD hc 4gb with a circle with a 4 in it.
So I'm assuming its a class 4 SD card...not sure the brand though
Sent from my DROIDX using XDA Premium App
oman0123 said:
Ok....I'm not sure what kind of SD card I have... it just says micro SD hc 4gb with a circle with a 4 in it.
So I'm assuming its a class 4 SD card...not sure the brand though
Sent from my DROIDX using XDA Premium App
Click to expand...
Click to collapse
It will work fine..... class 4 is good enough
Also if anybody knows a fix for whatever happened I would much rather do that than running off of sd
Also Thanks for the help slider. At least I know he will at least have the current cm if I can't find a fix
Sent from my DROIDX using XDA Premium App
oman0123 said:
Also if anybody knows a fix for whatever happened I would much rather do that than running off of sd
Sent from my DROIDX using XDA Premium App
Click to expand...
Click to collapse
Did you try to wipe it? under settings?
slider2828 said:
Did you try to wipe it? under settings?
Click to expand...
Click to collapse
Yup wont let me. Says: deregister device failed with error: user not registered (E_NOT_REGISTERED)
Sent from my DROIDX using XDA Premium App
Looks like your "ROM" got corrupted... it is a partition (/dev/mmcblk0p2) that is mounted r/w as /rom
Check and see if you have partition mmcblk0p3 and if rombackup.zip is in there...
Boot off CWM bootable uSD... then try the following:
adb shell mkdir /tmp
adb shell mount /dev/block/mmcblk0p3 /tmp
adb shell ls /tmp
if rombackup.zip is there... you're fine... we can fix it.
Wow I've been rooting for about 3 years and have never ever used adb. Crazy right? Can anybody point me in the right direction ?
Sent from my DROIDX using XDA Premium App
can that be done in terminal emulator or do I gotta go and install adb and whatever else on my computer?
term emulator would work.
DizzyDen said:
Looks like your "ROM" got corrupted... it is a partition (/dev/mmcblk0p2) that is mounted r/w as /rom
Check and see if you have partition mmcblk0p3 and if rombackup.zip is in there...
Boot off CWM bootable uSD... then try the following:
adb shell mkdir /tmp
adb shell mount /dev/block/mmcblk0p3 /tmp
adb shell ls /tmp
if rombackup.zip is there... you're fine... we can fix it.
Click to expand...
Click to collapse
Ok I tried adb shell mkdir /tmp and i get mkdir: cant create directory /tmp: read only file system.
Tried adb shell mount /dev/block/mmcblk0p3 /tmp, it fails and says no such file or directory.
does this mean if I want the newest versions of cm7 I gotta do it off sd?
Arrrgh been trying all night. I hope there's still a way and its not completely borked
Sent from my DROIDX using XDA Premium App
oman0123 said:
Ok I tried adb shell mkdir /tmp and i get mkdir: cant create directory /tmp: read only file system.
Tried adb shell mount /dev/block/mmcblk0p3 /tmp, it fails and says no such file or directory.
does this mean if I want the newest versions of cm7 I gotta do it off sd?
Click to expand...
Click to collapse
You could still run CM7 off of EMMC... we're just trying to salvage your device specific information if there's any hope... which I truly think there is.
oman0123 said:
Arrrgh been trying all night. I hope there's still a way and its not completely borked
Click to expand...
Click to collapse
Sorry... was at work... didn't have a chance to reply...
try adb remount
before the other steps above... if you get an error then you will need to
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
One of those two should work from CWM bootable uSD... then the steps I listed above will work... IF you have the rombackup.zip file... we'll help you through fixing your issues.
DizzyDen said:
You could still run CM7 off of EMMC... we're just trying to salvage your device specific information if there's any hope... which I truly think there is.
Sorry... was at work... didn't have a chance to reply...
try adb remount
before the other steps above... if you get an error then you will need to
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
One of those two should work from CWM bootable uSD... then the steps I listed above will work... IF you have the rombackup.zip file... we'll help you through fixing your issues.
Click to expand...
Click to collapse
I got the same error messages after the remount but the "adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system" seemed liked it work. it didnt say anything though
It won't give you a message saying it was successful... just try the other commands to see if you have backuprom.zip on partition 3. If its there... we can fix the issues... if not.. we have to make stuff up to fix it
You can do the same thing for partition 2 (where the device specific stuff is stored unzipped) by creating directory called tmp2 and mounting /dev/block/mmcblk0p2 to it... in that one 3 specific files you're looking for are:
DeviceID
MACAddress
SerialNumber
Those are plain text type files (but not DOS or windows formatted.. so you can view them, but don't edit them in notepad)
DizzyDen said:
It won't give you a message saying it was successful... just try the other commands to see if you have backuprom.zip on partition 3. If its there... we can fix the issues... if not.. we have to make stuff up to fix it
You can do the same thing for partition 2 (where the device specific stuff is stored unzipped) by creating directory called tmp2 and mounting /dev/block/mmcblk0p2 to it... in that one 3 specific files you're looking for are:
DeviceID
MACAddress
SerialNumber
Those are plain text type files (but not DOS or windows formatted.. so you can view them, but don't edit them in notepad)
Click to expand...
Click to collapse
Ok you are gonna have to help me with that. I wouldnt even know where to begin. We all gotta push our limits right? haha
Check your PM... give me a call if you want.
I gave you some bad commands.... this should work:
adb shell mount -O remount /remount, rw /dev/block/mmcblk0p5 /system
adb shell mkdir /system/tmp
adb shell mount /dev/block/mmcblk0p3 /system/tmp
adb shell ls -l /system/tmp
then
adb shell mkdir /system/tmp2
adb shell mount /dev/block/mmcblk0p2 /system/tmp2
adb shell ls -l /system/tmp2
OR
adb shell
mkdir /system/tmp
etc.
etc.
Since you have the rombackup.zip on mmcblk0p3 try this...
extract attached file... then run the resettofactory.cmd file... it will copy the BootCnt file to /rom and make it think its on 8th failed boot.

[Q] mount -o bind on Android 4.2

Hi,
I was using Gscript with a mount script to bind my Gameloft game data folders on external USB disk to the original place on the internal SD card.
a sample script is like:
Code:
mount -o bind /storage/usbdisk/N7/Android/Data/com.gameloft.android.ANMP.GloftN3HM /sdcard/Android/data/com.gameloft.android.ANMP.GloftN3HM
However, after updating to Android 4.2, I lost this capability. The mounts are only available within the context of the app that I mount.
When I leave the app (Gscript), and open a terminal emulator, I see the mount (binding) is gone.
Is there a solution to this on Android 4.2 ?
Thanks.
Anybody who can help with this ?
thx.
This should be the same solution as with cifs and others...
http://forum.xda-developers.com/showthread.php?t=2065856
good question,i opened a similar 3ad in past days but no reply..HEREgscripts system and directory bind aren't working anymore..i think it's the changed mount points or how android manage them..
vorcers,
thanks for this information. But what do you mean by 'Stickmount writes the shell-commands in "/system/bin/debuggerd"' ?
/system/bin/debuggerd seems to be a binary file. How can we write shell commands in it ?
Thanks.
..
mrmrmrmr said:
vorcers,
thanks for this information. But what do you mean by 'Stickmount writes the shell-commands in "/system/bin/debuggerd"' ?
/system/bin/debuggerd seems to be a binary file. How can we write shell commands in it ?
Thanks.
Click to expand...
Click to collapse
any ideas ?

Categories

Resources