I cant mount system rw - Nexus 6P Q&A, Help & Troubleshooting

Hi. Im running stock 7.1.1 and i got tired of google now launcher. I downloaded the pixel launcher but couldnt swipe left for google now. This is caused because the app is not system mounted. So i flashed twrp but it didnt stick,after 2 weeks of trying difrent ways to do it and giving up a few times i saw a post that said i have to root after the flash or it wont stick. Ok i now have a rooted 7.1.1 with twrp and i can do what i want.. or so i thought because i cant mount system rw and cant set any app to system. I tried one click app and adb. My friend tried to mount it through twrp terminal but it shows that system is empty. I saw some posts about it that said that there were 2 system folders, one mounted by twrp and second one that actually is system and cant be accesed. Right now febuary OTA security patch is rolling in and i downladed flash wire to update but it crashes on encrypting. I think that this problem is caused by the same thing. Can someone give me some instructions to mount that damn thing or am i doomed forever? ;_; sorry for my english and my noobish explanation btw.

Download and install BusyBox and a terminal emulator app if you haven't already. In terminal emulator type "su" without quotes then press enter to give it root access. On the next line type "mount busybox -o rw,remount system" also without the quotes and press enter. If you did it right it should just go to the next line without any errors. Doing this should give you rw access to system.

murphyjasonc said:
Download and install BusyBox and a terminal emulator app if you haven't already. In terminal emulator type "su" without quotes then press enter to give it root access. On the next line type "mount busybox -o rw,remount system" also without the quotes and press enter. If you did it right it should just go to the next line without any errors. Doing this should give you rw access to system.
Click to expand...
Click to collapse
After i done this it gives back "system" not in /proc/mounts

Siris. said:
After i done this it gives back "system" not in /proc/mounts
Click to expand...
Click to collapse
Try this "busybox mount -o rw,remount system"

Siris. said:
After i done this it gives back "system" not in /proc/mounts
Click to expand...
Click to collapse
I think this should do the trick:
mount -o rw,remount /system

murphyjasonc said:
Try this "busybox mount -o rw,remount system"
Click to expand...
Click to collapse
ok so i think it did the trick because there was no error still link2sd says : dev/block/platform/soc.0/f9824909.sdhci/by-name/system /system device or resource busy

Related

Problems with adb push

I am running custom rom Rooted 2.1 v0.3.
Ever since flashing to the custom rom, when i try to push a file, such as:
adb push bootanimation.zip /system/media
I get the error:
Failed to copy.... Read-only file system.
I didn't have this error before flashing to the rom. Does this have something to do with superuser whitelist?
I have tired:
mount -oremount,rw /dev/block/mtdblock3 /system
and it didn't work and I tired:
adb remount
winch returned:
Operation not permitted.
This is ticking me off since I didn't have this problem until flashing the rom.
EDIT: Now if I try:
adb push bootanimation.zip /system/media,
I get:
Permission denied.
This is crazy.
I need help also. Rooting for first time and trying to get recovery.img on and keep getting read only errors. Tried remount to no avail. Help please
su
mount -o rw,remount /Dev/block/mtdblock3 /system
file system is case sensitive!
if anyone know what command to execute an install or push of "any.apk" via Android Terminal Emulator. It would help me greatly.
p.s.
make sure you have developer mode enabled "settings" and accept su permissions. Also have BusyBox
fKngFtd said:
su
mount -o rw,remount /Dev/block/mtdblock3 /system
file system is case sensitive!
if anyone know what command to execute an install or push of "any.apk" via Android Terminal Emulator. It would help me greatly.
p.s.
make sure you have developer mode enabled "settings" and accept su permissions. Also have BusyBox
Click to expand...
Click to collapse
...it's a lowercase d in dev.
mount -o rw,remount /dev/block/mtdblock3 /system
n2imagination said:
I need help also. Rooting for first time and trying to get recovery.img on and keep getting read only errors. Tried remount to no avail. Help please
Click to expand...
Click to collapse
I had the same problem. From what I could tell, I had the wrong ADB driver somehow. So I downloaded the drivers from the HTC website and went to device manager (Win7) and updated the driver software which fixed the problem. But I think i just lucked out when i stumbled onto that, I feel a blind retard with epilepsy trying to draw a circle on an etch-a-sketch when I'm doing things like rooting. But, it couldn't hurt to try it.
fKngFtd said:
su
if anyone know what command to execute an install or push of "any.apk" via Android Terminal Emulator. It would help me greatly.
Click to expand...
Click to collapse
adb install -l whatever.apk (from tools dir in sdk)
`mods said:
I am running custom rom Rooted 2.1 v0.3.
Ever since flashing to the custom rom, when i try to push a file, such as:
adb push bootanimation.zip /system/media
I get the error:
Failed to copy.... Read-only file system.
I didn't have this error before flashing to the rom. Does this have something to do with superuser whitelist?
I have tired:
mount -oremount,rw /dev/block/mtdblock3 /system
and it didn't work and I tired:
adb remount
winch returned:
Operation not permitted.
This is ticking me off since I didn't have this problem until flashing the rom.
EDIT: Now if I try:
adb push bootanimation.zip /system/media,
I get:
Permission denied.
This is crazy.
Click to expand...
Click to collapse
Did you ever get this fixed? I have the same problem!
I have the same problem also. I've been using SDK just fine for over a month or two, and now that I'm on V3, no worky. Somethings obviously going on. But what?!
LexusBrian400 said:
I have the same problem also. I've been using SDK just fine for over a month or two, and now that I'm on V3, no worky. Somethings obviously going on. But what?!
Click to expand...
Click to collapse
I think the proper permissions were not set for this ROM. Hopefully jcase can modify the file and re-upload the ROM =)
at least that's what I've gathered... someone PLEASE correct me if I'm wrong
edit: I looked at the script file and it seems like rw permissions are set properly???
jcase - any insight?
I personally get a bunch of "Out of memory" errors when trying to follow the recovery walk-through.
post baleeted

Remount Failed: Operation Not Permited

Hey guys. I've done commands in adb many times. I'm still new to it, but I never remember having this issue.
I've ran CM6 for months, and nightly's as well. I'm running a custom compiled CM6 right now though.
adb remount I get
remount failed, operation not permitted.. and in default.prop ro.secure is set to 1. I changed to 0 but still can't do remount. Any other suggestions?
Thanks!
For a workaround, try remounting through shell - mount -o rw,remount /system, or the full command (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
is that a temporary fix, or for good. or just a work around?
Just a workaround. It's a command in OS itself that does the same job as "adb remount" - which is, remounts.
I just can't think of anything that would cause adb remount to fail, so I have no suggestions for you to try. But in case you want to be able to do something without getting stuck, and wait for the solution without being in a hurry - I've posted the workaround.
I don't have a solution to solve it once and for all, but every time you want to remount, use
PHP:
adb root
before your commands
excellent.
adb root
adbd is being restarted
adb remount succeeded .
Thanks dude! that will work for now til cooker fixes that. lol
Jack_R1 said:
For a workaround, try remounting through shell - mount -o rw,remount /system, or the full command (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Click to expand...
Click to collapse
Tried this and it appeared to succeed but I didn't get the results I wanted.
After doing this I tried push c:\com.amazon.mp3.apk \system\app\ and it repeated it back to me, but when I look in that directory, it's not there. What am I doing wrong?
Wrong direction of slashes:
push c:\com.amazon.mp3.apk /system/app/
And you shouldn't be doing it from the ADB shell. The remount is done in the shell, the push is done outside of it.
Jack_R1 said:
Wrong direction of slashes:
push c:\com.amazon.mp3.apk /system/app/
Click to expand...
Click to collapse
Ahhhh, I was wondering about that! Thank you!!
And you shouldn't be doing it from the ADB shell. The remount is done in the shell, the push is done outside of it.
Click to expand...
Click to collapse
So once I perform the remount I exit out of the shell?
operation not permitted.
"adb push" gets you "not permitted"?
try "adb root" first, as suggested above.
Jack_R1 said:
"adb push" gets you "not permitted"?
try "adb root" first, as suggested above.
Click to expand...
Click to collapse
adb root gets me something along the lines of "not supported on a stock build."
EDIT
ok...
adb shell
su
mount -o rw,remount /system
then i get this:
Usage: mount [-r] [-w] [-o options] [-t type] device directory
So it appears it's not actually registering the command?
Then I try
push c:\com.amazon.mp3.apk /system/app/
and I get: failed to copy 'c:\com.amazon.mp3.apk' to '/system/app/com.amazon.mp3.apk' : Read-only file system.
You need to use the full command, since you're running sh, not bash.
Look for the full command in my post.
Yes, currently it doesn't do a thing.
Jack_R1 said:
You need to use the full command, since you're running sh, not bash.
Look for the full command in my post.
Yes, currently it doesn't do a thing.
Click to expand...
Click to collapse
So I tried the full command and exited out to "dos" command prompt and tried again. This time I got "failed to copy.... ....permission denied."
Ok, try without exiting. I'm not sure it'll do anything useful, though.
There is some problem with either your ADB setup or the ROM you're using. Or you're just not rooted.
Jack_R1 said:
Ok, try without exiting. I'm not sure it'll do anything useful, though.
There is some problem with either your ADB setup or the ROM you're using. Or you're just not rooted.
Click to expand...
Click to collapse
Found another thread on another board. I just flashed amon ra's recovery and booted up from there, and it appeared to let me copy!
But then it wouldn't let me cd to system/app. It let me cd to system, but not to app. Weird... I booted back up and there's no evidence of the "copied" apk, anywhere.
What...
the...
****.
Thanks to all for your patience with my super-noobish ass, I'm hoping you're not as frustrated with me as I am with this.
When you're in the recovery, your system isn't mounted. You need to mount it first.
Use almost the same command as for remount, but leave out the "remount" option. Just "-o rw".
Your copy went to void.
Jack_R1 said:
When you're in the recovery, your system isn't mounted. You need to mount it first.
Use almost the same command as for remount, but leave out the "remount" option. Just "-o rw".
Your copy went to void.
Click to expand...
Click to collapse
lol, awesome, thanks. I'll fiddle with it some more in the morning.
Why isn't there a link somewhere to a simple instruction manual? It would be so much easier if I could read up on this myself without bugging all of you guys.
Of course there is. My sig has it in bold, and you can find everything there. It's just that people tend to rush asking questions instead of reading
Jack_R1 said:
Of course there is. My sig has it in bold, and you can find everything there. It's just that people tend to rush asking questions instead of reading
Click to expand...
Click to collapse
I've seen a couple of the basic noob guides to adb and I've seen the google definition of adb functions but it doesn't include instructions on how to do the stuff you're walking me through.
Will take a look at those links shortly. Btw, I'm on a MT3G though I don't think that makes a difference at this level.

[Q] 1st update froyo

should i flash it. i dont have root
WOW! i cant believe no one has replied to you.
if you take a look at the first post with the topic
[ROM] Official AOSP 2.2 OTA
but you mentioned you dont have root. so try installing alogcat from the marketplace and capture the whole deal. then you can email directly from the app.
logcat isnt going to do much, it prefetches the files, need to pull the update.zip from adb
ok, so i havnt gotten the notice yet.
but need a bit of help prepping for when i do.
i have the android sdk installed on my desktop, and can create a virtual device etc...
but when i open the cmd prompt and try to run adb devices it says it is populating a list but i see no results or no file created.
so i tried just running adb logcat and it stops at waiting for device.
any pointers. im running win7x64 ultimate
well, i screwed it up. i removed the usb drivers and set it to debugging mode and got it working.
so i am able to run adb shell etc...
once i get the notice ill be ready to do an adb pull
adb shell
su
cd /cache/
ls
adb pull /cache/<package_name>.zip .
sepiid said:
well, i screwed it up. i removed the usb drivers and set it to debugging mode and got it working.
so i am able to run adb shell etc...
once i get the notice ill be ready to do an adb pull
adb shell
su
cd /cache/
ls
adb pull /cache/<package_name>.zip .
Click to expand...
Click to collapse
but how do you know the new radio and spl update name?
you should get that by running su then "cd /cache/ ; ls"
right now i have
download-1.apk
downloadfile.apk
recovery
lost+found
so after it is precached i run that "cd cache/ ; ls" i should have another file or two in there
that would be the file you run adb pull /cache/*.*
a tad bit of help, as a test i am trying to do
adb pull cache/downloadfile.apk d:\
but i get
remote object 'cache/downloadfile.apk' does not exist
i also tried adb pull /cache/downloadfile.apk d:\
and get the same.
edit:
tried doing a adb push
D:\android-sdk-windows\tools>adb push d:\test.txt /cache
failed to copy 'd:\test.txt' to '/cache/test.txt': Permission denied
so i dont have permission to put anything there, which means i likely dont have permission to pull from there
D:\android-sdk-windows\tools>adb pull /cache/downloadfile.apk d:\
remote object '/cache/downloadfile.apk' does not exist
so i opened another cmd prompt and and did an adb shell
su
and i am su
so while the other window was open and i was su i tried the same commands again and got the same results.
edit2:
D:\android-sdk-windows\tools>adb shell ls /cache
opendir failed, Permission denied
so it is definately a su/permissions issue.
Are you rooted? If not use Universal Androot.
*anticipation*
sepiid said:
a tad bit of help, as a test i am trying to do
adb pull cache/downloadfile.apk d:\
but i get
remote object 'cache/downloadfile.apk' does not exist
i also tried adb pull /cache/downloadfile.apk d:\
and get the same.
edit:
tried doing a adb push
D:\android-sdk-windows\tools>adb push d:\test.txt /cache
failed to copy 'd:\test.txt' to '/cache/test.txt': Permission denied
so i dont have permission to put anything there, which means i likely dont have permission to pull from there
D:\android-sdk-windows\tools>adb pull /cache/downloadfile.apk d:\
remote object '/cache/downloadfile.apk' does not exist
so i opened another cmd prompt and and did an adb shell
su
and i am su
so while the other window was open and i was su i tried the same commands again and got the same results.
edit2:
D:\android-sdk-windows\tools>adb shell ls /cache
opendir failed, Permission denied
so it is definately a su/permissions issue.
Click to expand...
Click to collapse
Here do this:
First if you have root, open up terminal or cmd prompt if you are on windows:
adb shell
su
mount -o rw,remount yaffs2 /cache
chmod 777 /cache
that will change the permissions allowing for read and write.
Now exit out of shell and just adb pull /cache/
That will pull everything out of the cache partition.
BAM!!! perfect!
i new it was permissions related. just couldnt figure out the "mount -o rw,remount yaffs2 /cache" part. might i ask you to break that down for me? at least the yaffs2 part.
thanks!
so once the update hits i am ready to grab the files.
callmeradical said:
Here do this:
First if you have root, open up terminal or cmd prompt if you are on windows:
adb shell
su
mount -o rw,remount yaffs2 /cache
chmod 777 /cache
that will change the permissions allowing for read and write.
Now exit out of shell and just adb pull /cache/
That will pull everything out of the cache partition.
Click to expand...
Click to collapse
So the YAFFS2 part of the code I put up there is designating the file system in which we are reading/writing.
YAFFS2 is the most popular and widely used format for flash memory.
please allow me.
yaffs2 is a filesystem type. /cache is of course the directory. -o is for option.
rw: read/write
remount: remount /cache again with new option.
sepiid said:
BAM!!! perfect!
i new it was permissions related. just couldnt figure out the "mount -o rw,remount yaffs2 /cache" part. might i ask you to break that down for me? at least the yaffs2 part.
thanks!
so once the update hits i am ready to grab the files.
Click to expand...
Click to collapse
Oh yeah and BTW, you can change the permissions back if you want after your done, otherwise I believe you can just reboot the phone and it fixes it, not entirely sure, I was trying to rewrite my default.prop to get adb remount to work with stock 1.6 rooted, but I am getting and access denied issue.
perfect was about to ask what the -o was but i tried mount --help and mount -h both resulted in nothing. then you reply sharpt71
thanks again all.
i am now ready to pull the update and upload once i get the update. hopefully soon!
Rather than the remounting and chmoding so you can adb pull.
You could probably get away with
Code:
su
cp /cache/<whatever> /sdcard
Then mount the SD card or put it in a card reader.
SilverSurfR said:
Rather than the remounting and chmoding so you can adb pull.
You could probably get away with
Code:
su
cp /cache/<whatever> /sdcard
Then mount the SD card or put it in a card reader.
Click to expand...
Click to collapse
You probably could I just know that this is a sure fire way to grab everything in cache directly to the machine, otherwise if you aren't next to a machine you could probably do a copy like you said.
My 2nd update failed, do you guys think the files are still in my cache?

[Q] Deleting bloatware problem?

I had my stuff deleted, however im having to redo it, im following this "http://forum.xda-developers.com/showthread.php?t=581635&page=32" and it worked perfect the first time, now i keep getting an error that says the files are read only. Whats wrong?
Moved to general Are you perm. rooted? How are you deleting them?
nbunn said:
I had my stuff deleted, however im having to redo it, im following this "http://forum.xda-developers.com/showthread.php?t=581635&page=32" and it worked perfect the first time, now i keep getting an error that says the files are read only. Whats wrong?
Click to expand...
Click to collapse
You need to mount /system as rw. In the terminal enter
Code:
mount -o rw,remount -t ext3 /dev/block/mmcblk0p26 /system
Then remove as before.
cloverdale said:
You need to mount /system as rw. In the terminal enter
Code:
mount -o rw,remount -t ext3 /dev/block/mmcblk0p26 /system
Then remove as before.
Click to expand...
Click to collapse
It told me permission denied, and operation not permitted?
nbunn said:
It told me permission denied, and operation not permitted?
Click to expand...
Click to collapse
Did you enter su first?
cloverdale said:
Did you enter su first?
Click to expand...
Click to collapse
yes i did, ill try again

How to remove the demo games?

I went to /system/app and found most applications, but the only thing that I really want to find are the demo games, and for some reason I can't find them! I even went to /data/app and found the apk packages there, I deleted them but the games are still installed.
Any ideas?
Are they in /cust?
if i have not remembered wrongly, the demo games r in /system/app/..
what specific game(s) do u want to remove? i can give u the location tonight after work (as i stored the paths in my home pc..)
FYI. Mine are all in /cust/pccw/hk/app.
simplistian said:
FYI. Mine are all in /cust/pccw/hk/app.
Click to expand...
Click to collapse
is it possible\safe to delete them?
if u meant those "Ironman", "Prince of Persia", etc., then its okay to delete them..
i did..
My phone didnt have any demo games and i found it weird couse in all the reviews i saw them in the menu screen...
my memory didnt fail me.. the 4 games that i removed were all in /system/app/
BubbleBash2.apk (Launcher: Bubble Bash 2)
IronMan2.apk (Launcher: Iron Man 2)
PrinceofPersiaZero.apk (Prince of Persia)
UNO.apk (Launcher: UNO)
btw, im with the hong kong B135 version..
@flipmodegr
yeah, it seems that ROM for Wind is cleaner..
nice to hear that its normal for the greek phones
yes, Wind Gr gives a stock android rom (not even hauwei has added anything) so its clean like water
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Tcm9669 said:
Thanks everyone I found them in /cust/roadhound/au/app but for some reason I can't mount the location as R/W using Root Explorer.. my phone IS rooted.. I don't know why it does not let me mount it as R/W.. therefore I can't delete them!!
Any ideas on this?
Thanks
Click to expand...
Click to collapse
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p12 /system
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p12 /system
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Tcm9669 said:
I can mount /system as R/W.. I just cant mount that directory in R/W .. it just opens as R/O even if I mount /system as R/W
Click to expand...
Click to collapse
Oops sorry. See Below.
Try using adb or you could try in terminal emulator:
Mount R/W
Code:
mount -o remount,rw /dev/block/mmcblk0p1 /cust_backup
Mount R/O
Code:
mount -o remount,ro /dev/block/mmcblk0p1 /cust_backup
And the apps are in cust_backup/image/cust_data/roadhound/au/app. The /cust directory is just a link to the cust_backup direcctory. Which is why you cant mount it RW
Tried in Terminal Emulator, said
mount: Operation not permitted
Click to expand...
Click to collapse
then tried with sudo and said
sudo: permission denied
Click to expand...
Click to collapse
Tcm9669 said:
Tried in Terminal Emulator, said then tried with sudo and said
Click to expand...
Click to collapse
Root is su
Ahh, I tried
sudo <<command here>>
su worked! Thanks finally removed them ... WOHO!
Thank you very much mate.. oz oz oz, oi oi oi!
I want to remove those demos too, is it possible with stock non-rooted system?
No.. you need to root it. It's quite easy to do.

Categories

Resources