Remount system writable - EVO 4G Android Development

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.

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

[Q] How to have write permission in some file in /system???

My captivate is already rooted, i use the Astro app to edit files and now im trying to edit the /system/etc/gps.conf, but when i try to save...does not save...i notice this file is read only rights. How can i edit that and save it???
to mount /system as read write, you need to be rooted (obviously) and open up an adb shell.
mount -o rw /dev/block/stl9 /system
depending on what kernel you're running and what filesystem /system is mounted as you *may* need to specify the filesystem ("-t vfat" for rfs, "-t ext4" for voodoo) but I've never had to before.

(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?

Get rid of ubuntu partitins

I installed the ubuntu dual boot and now want to get rid if the ubuntu partitions it created.
Anyone know how to do this?
Well, how about opening a terminal under android (terminal emulator by jack pavelich should be fine) and typing "mount" for checking mount points.
Then you could mount the partitions (e.g. "mount -o remount,rw /dev/sda2 /Volumes/useless)
---> This would mount the partition "sda2" as read-write on "/Volumes/useless/" in your android root directory.
Then delete all files on that dir. And google somewhat for further information on how to delete partitions.
Hope this helps.
NVFlashing over everything is probably the easiest
I fixed this by nvflashing the stock rom.

[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..

Categories

Resources