Remount r/w not working

Support for Android version of Total Commander

Moderators: sheep, Hacker, Stefan2, white

Post Reply
androidgoodies
Junior Member
Junior Member
Posts: 2
Joined: 2011-07-15, 19:54 UTC

Remount r/w not working

Post by *androidgoodies » 2011-07-15, 20:06 UTC

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)

Edit:
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)

DeathStalker
Junior Member
Junior Member
Posts: 30
Joined: 2011-06-10, 19:33 UTC
Location: Russia, Saint-Petersburg

Post by *DeathStalker » 2011-07-15, 21:39 UTC

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--
TC 7.56a, Win 7 x64
TC for Android 1.0 rc1, HTC Desire | rooted stock Gingerbread (3.14.405.1) | S-OFF

-----------------------------
Sorry for my bad English

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38438
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2011-07-16, 07:33 UTC

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.
Author of Total Commander
http://www.ghisler.com

androidgoodies
Junior Member
Junior Member
Posts: 2
Joined: 2011-07-15, 19:54 UTC

Post by *androidgoodies » 2011-07-16, 09:52 UTC

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! ;-)

nova
Junior Member
Junior Member
Posts: 65
Joined: 2005-06-03, 16:57 UTC
Location: carros France

Post by *nova » 2011-07-18, 08:45 UTC

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 ?

Thanks
#162676 Personal Licence

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38438
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2011-07-18, 14:42 UTC

What editor did you use?
Author of Total Commander
http://www.ghisler.com

nova
Junior Member
Junior Member
Posts: 65
Joined: 2005-06-03, 16:57 UTC
Location: carros France

Post by *nova » 2011-07-18, 15:47 UTC

Hi,
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??
#162676 Personal Licence

DeathStalker
Junior Member
Junior Member
Posts: 30
Joined: 2011-06-10, 19:33 UTC
Location: Russia, Saint-Petersburg

Post by *DeathStalker » 2011-07-18, 19:12 UTC

nova
You need to install Busybox.
TC 7.56a, Win 7 x64
TC for Android 1.0 rc1, HTC Desire | rooted stock Gingerbread (3.14.405.1) | S-OFF

-----------------------------
Sorry for my bad English

nova
Junior Member
Junior Member
Posts: 65
Joined: 2005-06-03, 16:57 UTC
Location: carros France

Post by *nova » 2011-07-19, 07:05 UTC

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!
#162676 Personal Licence

nova
Junior Member
Junior Member
Posts: 65
Joined: 2005-06-03, 16:57 UTC
Location: carros France

Post by *nova » 2011-07-19, 08:08 UTC

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...
regards,
#162676 Personal Licence

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38438
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2011-07-21, 12:44 UTC

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?
Author of Total Commander
http://www.ghisler.com

nova
Junior Member
Junior Member
Posts: 65
Joined: 2005-06-03, 16:57 UTC
Location: carros France

Post by *nova » 2011-07-22, 15:37 UTC

Hello,
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)

-Nova
#162676 Personal Licence

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38438
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2011-07-25, 12:55 UTC

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.
Author of Total Commander
http://www.ghisler.com

nova
Junior Member
Junior Member
Posts: 65
Joined: 2005-06-03, 16:57 UTC
Location: carros France

Post by *nova » 2011-07-26, 07:21 UTC

Hi, yes that odd...

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

If I type something like this:
su
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
#162676 Personal Licence

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38438
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2011-07-28, 13:27 UTC

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).
Author of Total Commander
http://www.ghisler.com

Post Reply