System R/W and R/O script


Last Updated:

  1. Fabolous

    Fabolous Superuser VIP Member This Topic's Starter

    Joined:
    Nov 7, 2009
    Messages:
    3,635
    Likes Received:
    2,126
    I've modified Pete's sys script to run on the Droid X. Basically, if you install this, you have a very easy way to mount /system as r/w and r/o, and can forgo the extremely long command line to do it.

    Credit to Pete for the original script.

    Installation

    -Download the attached file, and put in on your sdcard
    -Fire up adb or terminal emulator
    -Do the following code:

    Code (Text):
    1.  
    2. su
    3. mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
    4. cp /sdcard/sys /system/xbin/
    5. chmod 755 /system/xbin/sys
    6. sync
    7. mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
    8.  
    That will install the script which basically runs the two commands you typed up above.

    How to use the script

    Whenever you need to mount your system as r/w, fire up adb or terminal emulator:

    Code (Text):
    1.  
    2. su
    3. sys -rw
    4. .
    5. .
    6. go about your business
    7. .
    8. .
    9. sys -ro
    10.  

    Download
    sys
     

    Advertisement
    scary alien, thenew3 and irishpride like this.
  2. irishpride

    irishpride Well-Known Member

    Joined:
    Mar 2, 2010
    Messages:
    561
    Likes Received:
    76
    Thanks Fab, this is going to be a huge time saver!
     
  3. scary alien

    scary alien not really so scary Moderator

    Joined:
    Mar 5, 2010
    Messages:
    21,652
    Likes Received:
    21,997
    Fab,

    Thanks for the script...

    Just thought I'd chime-in with something too... I just pushed the sys.txt file over to my phone with:

    adb push sys.txt /sdcard/sysmount.txt

    Then, when I want to use it, I just type:

    $ su
    # sh /sdcard/sysmount.txt -rw
    sh /sdcard/sysmount.txt -rw
    System Mounted Read Write


    Works great this way too! (your install is clearly much simpler, but I didn't want to install more than I had to ;)).

    Cheers!
     
  4. dwcasey

    dwcasey Well-Known Member

    Joined:
    Dec 7, 2009
    Messages:
    156
    Likes Received:
    9
    thanks fab. i pushed it over to my dropbox so i'll have it on the ready whenever i need it after a rom flash.
     

Share This Page

Loading...