Help! Syntax please - G1 Q&A, Help & Troubleshooting

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have typed that in 5 times and it says it's a syntax error. I'm guessing it's a space issue or something. My phone is down.
What is the exact syntax?
Thanks

jlacy76 said:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have typed that in 5 times and it says it's a syntax error. I'm guessing it's a space issue or something. My phone is down.
What is the exact syntax?
Thanks
Click to expand...
Click to collapse
Are you sure your at the root prompt? Looks like this # and not this $

jlacy76 said:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have typed that in 5 times and it says it's a syntax error. I'm guessing it's a space issue or something. My phone is down.
What is the exact syntax?
Thanks
Click to expand...
Click to collapse
That syntax is correct. Are you invoking busybox's mount?

I finally got it, thanks.
The way it shows in the root guide is:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
The way I had to type it.
mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system
It turned out to be a spaces issue.
I got that part done and then is said "Can't cd sdcard"
My sd card is formatted fat 32 and loaded the rc29 fine but won't cd to sd card. Does it need partitions or something?
Honestly, this is one of the most frustrating things I have ever done in trying to root this phone. Now I can't even use mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system.
Please help me out I am still getting usage errors. It must be something to do with spaces in the syntax of mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system

jlacy76 said:
Honestly, this is one of the most frustrating things I have ever done in trying to root this phone. Now I can't even use mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system.
Please help me out I am still getting usage errors. It must be something to do with spaces in the syntax of mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system
Click to expand...
Click to collapse
The syntax of those lines is all messed up. You need spaces between "yaffs2" and "/dev/block/mtdblock3" and "/system". If your phone is already rooted, just hook it up to adb and type adb remount.

Thanks jashsu, that did it. For a total noob like me, I just didn't understand.

Related

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

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!

Trouble with turning JIT on

Can some on please help me out im trying to install JIT and I have in the past but now I cant and I get these errors
mount -o rw,remount system
But seriously, just leave jit off. You will not get more out of it than a higher score in linpack. No real world performance gain, just a tiny disadvantage in startup time of apps.
Sorry for the late Post I did what you said and i get
Usage:mount [-r] [-w] [-o options] [-t type] device dictionary
What do I do then?
Try this
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
instead. Make sure there is no blank between the comma and the remount.
The problem is a missing leading "/" in the mount point.
I.e., mount -o remount,rw /system

[Q]: Read-only filesystem

Hi!
I have rooted my phone (LG Optimus 2X) and mistakenly deleted some files.
I have these files, and want to push them back using adb, put my problem is, that when i try to mount the system in read / write mode using "adb remount" i get this error: "remount faileded: Operation not permitted".
I can't figure out how to fix it, i can pull files etc.
I have also tried to use the adb shell, and copy the files from the internal sdcard, but i'm getting the same error.
Only read-mode.. :/
Anybody who can help, fixing this problem?
If you want to mount /system just write:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Then you're good to go
How to unmount into read-mode only?
Thank! - You saved my day
mrhtml said:
How to unmount into read-mode only?
Thank! - You saved my day
Click to expand...
Click to collapse
A little easier to type...
Mount r/w
Code:
busybox mount -o,remount -rw /system
Mount r/only
Code:
busybox mount -o,remount -r /system
Edit: You shouldn't post stuff like this in dev

[HELP] broken lcd + after working with adb doesnt boot

Hey xda-community,
might be a long text to read but i want to make it as detailed as possible :/.
I have an i9070 with broken lsd (+touch not working) and pattern lock.
i booted into recoverymode (TWRP) and removed the pattern lock via adb shell ("rm /data/system/gesture.key").
i wanted to use [email protected] so i tried to activate USB Debugging via adb shell.
in the internet i found a method and tried it right away
i had to pull /system/build.prop
add the line "persist.service.adb.enable=1" in the file
and after that i had to push it back, but i couln't.
So i searched to mount /system r/w ..... (prob for the false device ,_, )
i tried the 1st command and forgot the 4 in ext4, so i typed it like this in the adb shell:
# mount -o rw,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o rw,remount -t ext4 /dev/block/mmcblk0p8 /system
after that i was able to push the build.prob back, and used
# mount -o ro,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o ro,remount -t ext4 /dev/block/mmcblk0p8 /system
afterwards.
Rebooted it and it stuck while booting prob.
So i tried the push back the original build.prop. (thought it might be the cause)
Still not booting..
I ended trying all commands without any order:
# mount -o ro,remount -t ext /dev/block/mmcblk0p3 /system
# mount -o rw,remount -t ext /dev/block/mmcblk0p3 /system
# mount -o ro,remount -t ext4 /dev/block/mmcblk0p3 /system
# mount -o rw,remount -t ext4 /dev/block/mmcblk0p3 /system
# mount -o ro,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o rw,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o ro,remount -t ext4 /dev/block/mmcblk0p8 /system
# mount -o rw,remount -t ext4 /dev/block/mmcblk0p8 /system
chmod 755 system
chmod 777 system
i used also mount..../mmcblk0p3 instead of mmcblk0p8 because after using "mount" it showed behind the /system mmcblk0p3 ...
i messed too much around as a newbie :crying:
I am still able to use adb in recovery mode but cant acces the internal storage.
Would be nice if someone could help me
Ty if you read the whole text .. ^^

Categories

Resources