Mount system rw - Nexus 5 Q&A, Help & Troubleshooting

Hi,
I mounted the system in rw mode via adb shell. Now, I want to reset it back to ro. Will it reset automatically after a reboot?

The-Droidster said:
Hi,
I mounted the system in rw mode via adb shell. Now, I want to reset it back to ro. Will it reset automatically after a reboot?
Click to expand...
Click to collapse
Yes, or you can 'adb shell mount -o ro,remount /system'

Related

system as read/write

need a little help here please...
I want for my /system to be mounted as read/write automaticly upon startup of the phone using this command "mount -o,remount rw /dev/block/mtdblock3 /system"
How can i make this command to be executed as ROOT when my phone starts up.
THanks
vtecpower said:
need a little help here please...
I want for my /system to be mounted as read/write automaticly upon startup of the phone using this command "mount -o,remount rw /dev/block/mtdblock3 /system"
How can i make this command to be executed as ROOT when my phone starts up.
THanks
Click to expand...
Click to collapse
Why do you need this?? Just download droidsans andwhen you need read write just use that.
I need it bc im trying to move my apps to my sd card.....if i have the /system in read only mode then the phone crashed when i try to install a new app but it works fine when my /system is read and write
I doubt you need to mount /system rw. Do ls -l in /system and make sure sd has the same owner/permissions as the other dirs and it should work.
vtecpower said:
I need it bc im trying to move my apps to my sd card.....if i have the /system in read only mode then the phone crashed when i try to install a new app but it works fine when my /system is read and write
Click to expand...
Click to collapse
i have followed the instructions in the post titled apps on sdcard and it works fine without mounting the system RW. look at that post and follow those directions.
See: http://forum.xda-developers.com/showpost.php?p=3386761&postcount=2
Just add the line to The File insted of the Path Part.
The is called after system is mounted so it should work fine

Remount system writable

just do this and you can read and write the system partition
Code:
mount -t yaffs2 -o remount,rw /dev/block/mtdblock4 /system
I have tried to remove some stock apps but am getting an error directory not empty.
l33tlinuxh4x0r said:
just do this and you can read and write the system partition
Code:
mount -t yaffs2 -o remount,rw /dev/block/mtdblock4 /system
Click to expand...
Click to collapse
Iv always seen it written like this
mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system
You can also do this:
Code:
mount /dev/block/mtdblock4 /system
Ummm isnt it nand locked?
What is this? Is this real life?
Jus10o said:
Iv always seen it written like this
mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system
Click to expand...
Click to collapse
They're both the same, you're setting the type of filesystem and then what options and then pointing to what to mount. They are just written differently. And although I know the simplest things are overlooked, but I'd have figured toast and company would of tried mounting the filesystem already. Feel free to correct me if I'm wrong and if anyone can validate this.
Obama's>god said:
Ummm isnt it nand locked?
What is this? Is this real life?
Click to expand...
Click to collapse
NAND is NOT locked if you are in recovery mode.
But unfortunately the stock recovery mode doesn't allow adb, so it only works in rooted/modded ROMs.
Neotelos_com said:
NAND is NOT locked if you are in recovery mode.
But unfortunately the stock recovery mode doesn't allow adb, so it only works in rooted/modded ROMs.
Click to expand...
Click to collapse
maybe i'm wrong, but i thought that NAND was still locked. it's /system you can get to with our current root. if NAND was unlocked, then we could flash the eng build and get it stick. but, we can't.
hope this makes sense because these terms and concepts seem to be getting confused and rehashed in different threads. im all for brainstorming and being creative and hope i explain this well.
you're all correct, in all ROMs, EXCEPT toast's PC36IMG.zip (userdebug RUU), /system is NAND locked.
if you have root access in normal android mode (unrevoked, etc) and are able to make changes to /system, reboot and you'll see the changes don't stick cuz it is NAND locked.
if you're using toast's PC36IMG.zip (leaked userdebug RUU) recovery mode has root adb access AND NAND unlocked /system. hurray for a leak!
it is good to know the mount commands which we can use in the leaked userdebug RUU recovery mode because /system is NAND unlocked there.
but the mount commands won't help us in normal android mode UNTIL we can get past the NAND lock protection.

(Q) Terminal Emulator code

So I have been using Terminal emulator to load new boot loaders on my phone and I use this code:
Code:
su
mount -o remount,rw /system
cp /file location/bootanimation.zip /system/media
My question for you guys is, what does the second line mean? I mean sure I can memorize the code and use it but I'm trying to figure out how to read it and it doesn't really make sense to me.
Code:
mount -o remount,rw /system
We use the mount command, with the option remount (meaning unmount and then mount again), and the desired access rights ( rw = read and write) on the folder /system.
This mean we have a folder /system which is probably mounted as READ ONLY.
To change access rights you have to unmount first and then mount with the new access rights.
We want to change the access rights of system and we don't want to change its mount point. So we use mount command with the option remount and our desired rights.
Does this clarify it for you?
Dark3n said:
Code:
mount -o remount,rw /system
We use the mount command, with the option remount (meaning unmount and then mount again), and the desired access rights ( rw = read and write) on the folder /system.
This mean we have a folder /system which is probably mounted as READ ONLY.
To change access rights you have to unmount first and then mount with the new access rights.
We want to change the access rights of system and we don't want to change its mount point. So we use mount command with the option remount and our desired rights.
Does this clarify it for you?
Click to expand...
Click to collapse
Yes this helped a lot! so the -o was the "option" part?
yes -(o)ption and then the option you want
Dark3n said:
yes -(o)ption and then the option you want
Click to expand...
Click to collapse
Thank you so much!
hmm, i logged in as su but did not perform the remout code, ive found a tool to calibrate my xperia x10 mini pro accelerometer but when i executed it and did the required operation, it said the configuration was complete and yet the accelerometer was left unchanged, could this mean that because i did not use the mount remount command before using the tool that is why the program did no changes at all?

[Q] [q] 4.0.4 /system rw access

Hello,
I have P6800 with 4.0.4 XXLQ2, rooted with supersu 0.96, CWM is 6.0.1.1, everything done via odin.
The question is: im unable to remount /system with rw permissions. I've even tried to kill processes which are working with /system to remount it in other place (like /mnt/s) but no luck. Tried to change init.rc also. Got new adb, etc, etc... but Im still unable to do mount -o rw,remount /system cuz its readonly.
Please help guys, how to mount it with rw perms? Maybe i've got some bug?
thecoba said:
Hello,
I have P6800 with 4.0.4 XXLQ2, rooted with supersu 0.96, CWM is 6.0.1.1, everything done via odin.
The question is: im unable to remount /system with rw permissions. I've even tried to kill processes which are working with /system to remount it in other place (like /mnt/s) but no luck. Tried to change init.rc also. Got new adb, etc, etc... but Im still unable to do mount -o rw,remount /system cuz its readonly.
Please help guys, how to mount it with rw perms? Maybe i've got some bug?
Click to expand...
Click to collapse
CWM 6.0.1.9 + recovery with adb finally helped me..

/system remounting as RO after explicit RW mount

I have used the adb shell to mount my system partition as RW (mount -o remount,rw /system) but it appears to revert to RO. I can't tell exactly why.
I wish to move app updates to /system.
I have used CF Auto Root to root the device.
I installed Titanium Backup Pro.
I have set the app mode to AUTO/indirect as recommended for Samsung devices.
I select Integrate updates to system ROM (or similar, I don't have the screen in front of me). As soon as I do this, the /system partition is remounted as read only (cat /proc/mounts | grep system)
TB just seems to hang. The Gmail base.apk has been copied to /system/apps and the com.google.android.gm-1 folder has been removed from /data/app.
If I don't mount /system as RW the same thing happens.
If I manually copy the app data from /data/app to /system/app and set the permissions the app still fails to function.
Does anyone have any ideas why this is happening?
EDIT:
I cannot load apks via adb - I am told I have a RO file system, even though I can clearly see the /system partition is mounted.

Categories

Resources