I am trying to remount the /system partition from a shell, and tried both commands suggested in this post, but it does not work. Here are the script commands I am issuing:
adb shell mount | grep -e "system"
echo
adb shell "su -c 'adb shell mount -o rw,remount /system'"
echo
adb shell mount | grep -e "system"
echo
I get:
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
error: device not found
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
@Bo Lawson- I tried the command you suggested. Here are the relevant lines from my script; /system remains in ro.
adb shell mount | grep -e "system"
echo
adb shell su -c mount -o remount,rw /system
echo
adb shell mount | grep -e "system"
echo
Here is the output...
sansari@ubuntu:~$ ./module_script
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
@Bo Lawson - Thanks. You are absolutely right. I got the result I wanted. No explanation is necessary; I am just grateful for your help.
0 /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,seclabel,relatime,data=ordered 0 0
– user3326293 Oct 08 '15 at 16:53