Using terminal emulator (easy mount) - Hero, G2 Touch Themes and Apps

Im always using terminal emulator to mount the /system partition but got fed up of typing it in all the time so.....
Using terminal emulator by Jack Palkevich
MENU>PREFERENCES>INITIAL COMMAND>
Change it to su && mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
Voila now the system partition is mounted whenever you enter terminal emulator!
Hopefully someone else will find this as useful as i have.

Related

Trying to get root access

I can enter the first two commands, mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system,flash_image recovery recovery.img and cd /sdcard but when i type in the last command i get this
cannot open /system/recovery.img no such file
Don't know what you're typing there.. missing some stuff.
Try this:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
cd /system
cat /sdcard/recovery.img > recovery.img
flash_image recovery recovery.img
Did you type SU before??
i did what the first reply did. what do you mean su?
i got it thanks
SU = root access.
Once you have rooted your phone and installed a custom image, you need to type "su" and press enter anytime you go to the command prompt to do something requiring root. Basically root is disabled by default so you don't break things - you need to specifically tell the phone you want root access to try and avoid breaking things by mistake.
Anyway, glad you got it working.

Script Making

Tell me what I'm doing wrong here. I'm trying to make a script that will remove some apps whenever I flash a new rom. Here's what I thought would work:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
cd /system/app
rm com.amazon*.apk
rm Mail.apk
rm Development.apk
rm LatinIME.apk
To use it I type:
Code:
$ su
# sh /sdcard/apps.sh
and it just fails at every line. Any help would be appreciated.
On the first line try
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
or your could shortcut it by using
mount /system
Stupid question, but do you have the permissions set to allow root access?
I've done that a few times to realize what my "mistake" was.
well you could just make a script for your PC something along the lines of
Code:
@echo off
adb remount
adb shell rm /system/app/com.amazon*.apk
adb shell rm /system/app/Mail.apk
adb shell rm /system/app/Development.apk
adb shell rm /system/app/LatinIME.apk
adb shell reboot
and rename it to a .bat or .cmd file
jackslim said:
On the first line try
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
or your could shortcut it by using
mount /system
Click to expand...
Click to collapse
Ok so I did that and the script appears to be working. I'll test it when Cyanogen release another update with amazon... Adding the -t yaffs2, what exactly did that do?
The -t is a trigger saying that your going to specify what type of filesystem your mounting, yaffs2 is the type of filesystem

Newb terminal command questions

What's the difference between these two (at least why they use the mount command, remount command, or shell command?)
su
mount -o remount,rw /dev/mtdblock3 /system
rm [whatever i want]
mount -o remount,ro /dev/mtdblock3 /system
and
adb remount
adb shell rm [whatever i want]
The first is a terminal command from the phone. (Only requires the phone)
The second is through adb to the phone. (Involves a properly configured adb, computer, usb cable, and phone)
evilkorn said:
The first is a terminal command from the phone. (Only requires the phone)
The second is through adb to the phone. (Involves a properly configured adb, computer, usb cable, and phone)
Click to expand...
Click to collapse
Wow, so people manage to type out all that craziness on the phone huh.
Thanks!
Anytime. Doubt they do that all the time, it would be easier to just make a script if you have to do that more than once. I just use root explorer, it has a button that mounts /system/ -rw.
I'm not sure about other terminals, but you can create aliases in Better Terminal Emulator
alias rw='mount -o remount,rw /dev/mtdblock3 /system'
alias ro='mount -o remount,ro /dev/mtdblock3 /system'
so now all you have to do is type rw or ro and it executes the full command. Or you can create scripts:
su
mount -o remount,rw /dev/mtdblock3 /system
cd /system/bin
echo "#! /system/bin/sh" | tee ro rw
echo "mount -o remount,rw /dev/mtdblock3 /system" >> rw
echo "mount -o remount,ro /dev/mtdblock3 /system" >> ro
chmod 755 rw ro
Same thing, except it executes the scripts instead of an alias.

mounting the data partition

I know this works for mounting the system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
but whats the string for mounting the /data ?
either in adb or terminal emulator
Yes I have/am searched/ing.....
Thank to whom ever can answer
type remount and look for the data in adb it should list off strings
more clarity please. Trying a bunch of options still getting acces denided and operation not permitted
If it helps I cant even adb shell then su.
Yes I am rooted
Yes my phone is in pc mode
bad4u6669 said:
I know this works for mounting the system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
but whats the string for mounting the /data ?
either in adb or terminal emulator
Yes I have/am searched/ing.....
Thank to whom ever can answer
Click to expand...
Click to collapse
Try
su
mount -o rw,remount -t ext3 /dev/block/userdata /data
Sent from my DROIDX using XDA App
drew630 said:
Try
su
mount -o rw,remount -t ext3 /dev/block/userdata /data
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
Finally got a chance to test it last night, and it worked! thanks!

[Q] adb remount vs. mount -o rw,remount -t yaffs2 ...

So in several "how to remove apk" threads, I've seen 2 different ways to go about removing apks.
1)
Code:
adb remount
adb shell rm /system/app/blah.apk
2)
Code:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# rm /system/app/blah.apk
My questions is, is there a difference between adb remount and mount -o rw,remount -t yaffs2blahblah?
The long command can be run on a terminal emulator on the phone so you can do other things without a computer.
Sent from my HERO200 using XDA App

Categories

Resources