Hey Guys
I've seen similar threads about the X-Axis getting inverted, and I have the same issue. I can't use the *#2663# code, it doesn't seem to work on my phone, which is a S6-G90WB. I saw a guide where I can edit a script.bin file, BUT, I can't find any thing mountable in /dev/block/.
I have root access to the root via adb, and I was trying the following:
1) adb shell
2) su
3) mount -o remount,rw -t ext4 /dev/root /
4) mount -t vfat /dev/block/nanda /bootfs -- I can't find this file and no other files in block are mountable
Click to expand...
Click to collapse
Once I complete step 4, there should be a file script.bin, which I can edit to invert the X-Axis, script.bin, but I can't find it, or what to mount to get access to it.
Has anyone ran into this?
Thanks
D
Related
Hello, all!
I'm trying edit a file in /etc/ and adb says 'Failed to copy: Read-only filesystem'
Now, is this actually true? Or is this simply a permissions issue? I'm doing this on a non-rooted phone, so I can't 'touch' anything without permission errors, but is it a futile task if the filesystem is read only anyway?
I'm trying to do this from a non-rooted environment as I had intended on making this into an application, but I imagine that if I can't touch or push these files from an adb shell then I won't be able to from the application space either.
It's frustrating not to be able to edit the filesystem of my own phone, I'll be rooting if this is just a permissions problem and not an issue of a non-writable filesystem. Perhaps I could still make an application for rooted-only phones.. hrm..
Any thoughts on this?
/etc is an alias for /system/etc, and /system is a partition mounted as ro (you can confirm this yourself by running mount)
Ah, bugger. So this is hopeless (without modifying and then reflashing)?
Thanks very much.
you need to mount it read write,
mount -oremount,rw /dev/block/mtdblock3 /system
then it will be read/write
try adb remount. if it failes you need root sorry.
Hello, i have the same error and I have root. i have tried adb remount and the mount -oremount,rw /dev/block/mtdblock3 /system
still dotn work. I want to move a script to /
so i only have to type sh debian.sh
nvm I figured it out. i just put it on system and then just type sh debian.sh on the terminal and it works
Rafase282 said:
Hello, i have the same error and I have root. i have tried adb remount and the mount -oremount,rw /dev/block/mtdblock3 /system
still dotn work. I want to move a script to /
so i only have to type sh debian.sh
Click to expand...
Click to collapse
what is the error message? saying it dont work doesnt provide enough info for us to help....
it says sh: cant open aw.sh
so i still have to put the path or cd to where the file is. Is there a way to make /system my home?
no you cant make system your home, system is system, home is home. you can make a symlink if you are familiar with linux - might want to read up about shell commands
korndub said:
you need to mount it read write,
mount -oremount,rw /dev/block/mtdblock3 /system
then it will be read/write
Click to expand...
Click to collapse
Thanks it really worked!! for me i had the same problem as the other guy.
Rafase282 said:
Hello, i have the same error and I have root. i have tried adb remount and the mount -oremount,rw /dev/block/mtdblock3 /system
still dotn work. I want to move a script to /
so i only have to type sh debian.sh
nvm I figured it out. i just put it on system and then just type sh debian.sh on the terminal and it works
Click to expand...
Click to collapse
You *CAN'T* modify the / filesystem. It is part of your BOOT partition, which CANNOT be remounted rw. You would have to read, modify, and write the boot partition.
Rafase282 said:
Hello, i have the same error and I have root. i have tried adb remount and the mount -oremount,rw /dev/block/mtdblock3 /system
still dotn work. I want to move a script to /
so i only have to type sh debian.sh
nvm I figured it out. i just put it on system and then just type sh debian.sh on the terminal and it works
Click to expand...
Click to collapse
Maybe you're typing it in too literally. It should actually read like this:
mount -o remount,rw /dev/block/mtdblock3 /system
There was a typo with -oremount, there should be a space after -o.
Hope that helps.
PS. That command worked for me on a device where everything else failed.
dhkr123 said:
You *CAN'T* modify the / filesystem. It is part of your BOOT partition, which CANNOT be remounted rw. You would have to read, modify, and write the boot partition.
Click to expand...
Click to collapse
actually, / can be mounted rw, but changes are lost on reboot
new user
Firerat said:
actually, / can be mounted rw, but changes are lost on reboot
Click to expand...
Click to collapse
Hi I have my Asus Prime rooted and installed a virtuous Rom and I tried to put a fonts on the System/ fonts folder using root explorer using a instructions to fix some error on some games that need that tis fonts exist on the tablet but it said it cant because file system is read only I'm new and I don't know how to do this commands any help on how to do in a easy (explained) form.
egalpr said:
Hi I have my Asus Prime rooted and installed a virtuous Rom and I tried to put a fonts on the System/ fonts folder using root explorer using a instructions to fix some error on some games that need that tis fonts exist on the tablet but it said it cant because file system is read only I'm new and I don't know how to do this commands any help on how to do in a easy (explained) form.
Click to expand...
Click to collapse
I would recommended not posting in the g1 section. The Asus forums would be a lot more helpful.
egalpr said:
Hi I have my Asus Prime rooted and installed a virtuous Rom and I tried to put a fonts on the System/ fonts folder using root explorer using a instructions to fix some error on some games that need that tis fonts exist on the tablet but it said it cant because file system is read only I'm new and I don't know how to do this commands any help on how to do in a easy (explained) form.
Click to expand...
Click to collapse
Download EStrong File Manager and within the settings of it, enable mounting of the system as read/write.
Or, download Terminal Emulator and type this in:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
Or, try typing this in terminal/cmd:
Code:
adb remount
Or, if you plan on doing it all from recovery you could do:
Code:
adb shell "mount system"
and then you could do it all from there.
Next time, please post in the proper forum.
Read-Only /system... i just deleted the file, tich push should update/replace and then it worked... only had this bug when i was trying to modify Trebuchet.apk (homescreen)
Hi guys
Not being a linux expert, i'm stuck with the following problem..
i'm using a program who uses low level adb commands to write on the phone extSdCard...
problem: this extSdcard is seen as a readonly filesystem.
What has to be done to make this FS RW instaed of RO ?
This does not happen under windows where I can write to the extSd without problems
thks in advance for the tip
Sorry if this has been covered,but how would I go about pushing a file by using the phone only?Is that possible to do in a terminal?And if so what commands would be used.Thanks
casperlt1 said:
Sorry if this has been covered,but how would I go about pushing a file by using the phone only?Is that possible to do in a terminal?And if so what commands would be used.Thanks
Click to expand...
Click to collapse
all you'd need to do is go into a terminal, then su, mount with rw permissions, then cp file /path/to/destination
and how do I mount with permissions?that's what I was missing,thanks
casperlt1 said:
and how do I mount with permissions?that's what I was missing,thanks
Click to expand...
Click to collapse
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Go to Market and search for SU file manager or check out http://www.androlib.com/android.application.com-protocol-su-fbs-jmwq.aspx
It's not free, but it's cheap, and has pretty much replaced all the file explorer/editor/utility-type apps I used to screw around with. For all intents and purposes, you can use it to do just about anything you'd otherwise need adb to do.
Hi, I cannot figure out what I need to write in terminal emulator to gain root access to install cwm. I was hoping someone could post the exact command needed, I would appreciate it alot. I have tried searching but the generic commands i found on a different site didnt work. Thanks!
Can you gain root from terminal emulator? First I have heard this. Why not just Odin one of the modded kernels?
Sent from my HTC Sensation Z710e using xda premium
andale927 said:
Hi, I cannot figure out what I need to write in terminal emulator to gain root access to install cwm. I was hoping someone could post the exact command needed, I would appreciate it alot. I have tried searching but the generic commands i found on a different site didnt work. Thanks!
Click to expand...
Click to collapse
If you're just looking for the command to mount /system as read/write, you'll have to figure out what "device" is used for the mount. From the terminal, type:
mount
That will show you a list of things that are currently mounted. You'll see something like (not exactly):
/dev/block/stl9 /system rfs rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime, uid=1000,gid=1015,fmask=0002,dm
ask=0002,allow_utime=0020,codepage=cp437,iocharset =iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
The part you're interested in is the part before "/system" and that is the block device used to mount your system partition. To mount it read/write, you type (based on this example's block device & based on the rfs vs. ext4 file system):
mount -o rw,remount -t rfs /dev/block/stl9 /system
The -o part tells mount "here come the options" which are read/write & remount. The -t tells it the filesystem type (rfs or ext4, depends on if you have voodoo enabled). The next argument tells it the block device, then what mount point to use.
As for root, what Exodian said. You'll either have to flash a root enabled kernel or use SuperOneClick v2.2.
Yes, my phone is a chinese Hero H2000+.
I have managed to stick su and busybox into /system/bin using debugfs, but there's absolutely no way I could find to make /system get into read-write mode.
If I type "mount -o rw,remount /system" it seems to work for about 1 second, but then it's remounted read-only. All the changes will be reverted (files I add/remove via script). If I try to run the same command again, it will show me a message saying filesystem is read only.
Does anyone know what might be causing this?
Thanks in advance.
I personally hate the automounting CDROM image with HTC software. I know it's fairly common knowledge how to disable it but below are the commands for anyone that cares. Make sure android debugging is enabled and enter the applicable command in your computer's terminal. As with other /system edits, this will only stick if you have S-OFF. You may need your phone screen unlocked to accept the su prompt if you haven't already granted ADB root access.
Disable HTC Virtual CDROM:
Code:
adb shell su root -c "mount -o remount,rw /system /system; mv /system/etc/CDROM.ISO /system/etc/CDROM.ISO.bak; mount -o remount,ro /system /system"
Re-Enable HTC Virtual CDROM:
Code:
adb shell su root -c "mount -o remount,rw /system /system; mv /system/etc/CDROM.ISO.bak /system/etc/CDROM.ISO; mount -o remount,ro /system /system"
i didnt know
I didn't know either... thanks!:good:
Never even crossed my ind to remove that annoying "feature"
Cheers man
Any particular reason to not simply rename the file cdrom. iso.bak or just delete it?
Transmitted from the holodeck of my HTC One M8.
hgoldner said:
Any particular reason to not simply rename the file cdrom. iso.bak or just delete it?
Transmitted from the holodeck of my HTC One M8.
Click to expand...
Click to collapse
Nope, I'm in IT so I always rename and not delete for small files. Personal preference.
I had no idea. Thanks so much
Nice. So glad to get rid of that stupid thing. I wanted to do that before but couldn't find where the file was located. Worked great. Thanks alot!
Thanks, just used root explore, found the file, and just added .bak to it.
Put a bootable Linux rescue ISO in there :angel:
unfortunately, I can't find that file. it exist because the silly CD popups every time I plug my phone in, but the .iso isn't in system/etc. my phone seems to be slightly stupid when doing a search. Oh well. Good info to have. Thanks for posting the instructions. I appreciate it.