Page 1 of 1

Remount r/w not working

Posted: 2011-07-15, 20:06 UTC
by androidgoodies
Could someone please check the remount function? Its not working here. Anyway it should be included in popup menu or in the configuration page. (htc hd2 cm7 - tc beta 10)

Using TC editor I couldn't 't save edited build.prop file in /system folder. Looks like permission issue with the text editor. (root functions is checked in configuration)

Posted: 2011-07-15, 21:39 UTC
by DeathStalker
1) create button with internal command - "119 Remount (requires root access)
2) remount disk in RW state.
3) change permission of file build.prop -rwxrwxrwx
4) edit file build.prop and save it
5) change permission of file build.prop -rw-r--r--

Posted: 2011-07-16, 07:33 UTC
by ghisler(Author)
Indeed build.prop itself has read only attributes, so you can modify it only when changing the permissions. It's planned for TC 2.0 to (optionally) show the permissions in the file lists.

Posted: 2011-07-16, 09:52 UTC
by androidgoodies
Thanks guys for the replies and your confirmations, but I think as a program which has given root access, tc editor should take care the file permission. FYI internal editor in root explorer can edit any text file in root system or sdcard easily regarding its permissions.

Also have an issue opening/viewing hidden text file in root system. I hope you can fix all these issues on next release, and give the editor full root access like the editor in root explorer.

My other suggestions/request:
1. Make the default toolbar button customizable.
2. Add file comparison.

Thanks and keep up the great work! ;-)

Posted: 2011-07-18, 08:45 UTC
by nova
Hi all,

I'm unable to save a new build.prop into /system.
I follow the steps give by DeathStalker but when I save the file I obtain:
1 ) An error message (something like write error)
2) The file itself is now zero length on disk!

My folder /system as attribute drwxrwxrwx and it is mounted r/w
I can delete any file in /system
But I can't copy file in /system from other folder (write error)
My phone is rooted.

Any idea ?


Posted: 2011-07-18, 14:42 UTC
by ghisler(Author)
What editor did you use?

Posted: 2011-07-18, 15:47 UTC
by nova
Sorry .. I use TC editor for that. ( tc 1.0 beta 10)
What I don't understand is why the file is truncated to zero size and in the same time tc show the error writing??

Posted: 2011-07-18, 19:12 UTC
by DeathStalker
You need to install Busybox.

Posted: 2011-07-19, 07:05 UTC
by nova
DeathStalker Thx, my BusyBox is installed.
At this time I use it with a terminal console to make changes in my /system folder.
But I'll prefer to use TC to do this job :D ( simply edit a file and save it ).
As I said before tc do the job partially. The file is not saved BUT the size is altered!

Posted: 2011-07-19, 08:08 UTC
by nova
to Mr ghisler
If I try to edit and save file with an external editor I have not write error, BUT the file size is zero too.. Maybe that help, it's seem to be not a tc issue...

Posted: 2011-07-21, 12:44 UTC
by ghisler(Author)
I guess that you have the right to create new files there, but the system creates them as read only. Therefore TC cannot write any data to the file. Can you check what permissions the new 0 byte file has?

Posted: 2011-07-22, 15:37 UTC
by nova
If I edit build.prop (with tc internal viewer) and save it I got a write error message and the file on disk is now zero size. the file date is updated too.
Attribute before and after write are -rwxrwxrwx

If I edit build.prop and use "save as" with a different name, I got a write error message but nothing is write on the disk (I mean there is no new file created on disk with zero length)


Posted: 2011-07-25, 12:55 UTC
by ghisler(Author)
That's very odd. Maybe build.prop is actually a link to some other file? Try enabling root functions everywhere (via main menu - configuration), then TC will show link targets.

Posted: 2011-07-26, 07:21 UTC
by nova
Hi, yes that odd...

I use "terminal emulator" from android market and I can play with shell command.

If I type something like this:
cd /system
ls > test

I obtain a file "test" with -rw-rw-rw attribut (and correctly filled).

If now I try to modify it and save it with tc I obtain a write file error and a file with zero size on disk!

And yes I have configured TC to use root function everywhere..

The only way I have found to do my job is to use linux shell command like cp, cat > ...etc

Posted: 2011-07-28, 13:27 UTC
by ghisler(Author)
Ah, wait, maybe the system partition has 0 bytes free? Try the df command, or when using a button, the command must be sh and the parameters *df (including the * at the beginning).