1. Download our Official Android App: Forums for Android!

Root System R/W and R/O script

Discussion in 'Android Devices' started by Fabolous, Jul 23, 2010.

  1. Fabolous

    Fabolous Superuser
    Thread Starter
    Rank:
    None
    Points:
    313
    Posts:
    3,635
    Joined:
    Nov 7, 2009

    Nov 7, 2009
    3,635
    2,126
    313
    Multi-platinum Rapper
    Illinois
    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 Android Enthusiast
    Rank:
    None
    Points:
    98
    Posts:
    561
    Joined:
    Mar 2, 2010

    Mar 2, 2010
    561
    76
    98
    Emerald City
    Thanks Fab, this is going to be a huge time saver!
     
  3. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #9
    Points:
    2,138
    Posts:
    22,242
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,242
    23,428
    2,138
    Male
    space alien ;)
    Indy
    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
    Rank:
    None
    Points:
    36
    Posts:
    156
    Joined:
    Dec 7, 2009

    Dec 7, 2009
    156
    9
    36
    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...