PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Android > Android Samsung Devices > Legacy Samsung Android Devices > Samsung Moment

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-13-2010, 09:28 PM
vampirefo's Avatar
N00b
Offline
Pocket PC: moment
Carrier: sprint
 
Join Date: Mar 2010
Posts: 28
Reputation: 55
vampirefo is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
How to add remount command to 2.1

OK if you have used 2.1 you noticed remount commands doesn't work, I have fixed that here is the code copy and paste below code into a text editor save as remount, no extension.

copy to your sdcard via usb to computer.


Code:
#!/system/bin/sh
#
# Remount /system rw/ro

case "$1" in
ro)
echo "Setting /system to ro"
mount -t rfs -o remount,ro /dev/stl5 /system
;;
rw)
echo "Setting /system to rw"
mount -t rfs -o remount,rw /dev/stl5 /system
;;
*)
exit 1
esac
Now you need to unmount your computer.

Code:
open terminal
su
mount -t rfs -o remount,rw /dev/stl5 /system
cat /sdcard/remount > /system/bin/remount
chmod 4755 /system/bin/remount
to test that it's working.

in terminal

Code:
remount ro
mkdir /system/bin/test
remount rw
mkdir /system/bin/test
rmdir /system/bin/test
remount ro
reboot
after reboot you can repeat above test if you like.
Reply With Quote
This post has been thanked 2 times.
Reply

  PPCGeeks > Android > Android Samsung Devices > Legacy Samsung Android Devices > Samsung Moment

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 04:14 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com