TC on rooted KitKat can write to / but not delete!
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This is just for test purposes! I need to find out what's the problem on your device. I do not have this problem on my Nexus 7 with Android 4.4.2. and SuperSU.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 39
- Joined: 2012-09-27, 23:27 UTC
Fyi, I get a funky toast also. I'll try the 'make a button' today, but just the normal way I get this:Image: http://i1374.photobucket.com/albums/ag435/TheByteSmasher/Screenshot_2014-06-29-12-32-08_zpsxwx0goco.png
-
- Junior Member
- Posts: 39
- Joined: 2012-09-27, 23:27 UTC
Doesn't work... maybe I did something wrong...[img]http://i1374.photobucket.com/albums/ag435/TheByteSmasher/Mobile%20Uploads/2014-06/Screenshot_2014-06-29-16-52-37_zpsclcub8yk.png[/img]
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Hmm, that's a funny error message "Not enough memory". It usually comes when the /system partition is full and you try to write something to it. Maybe it's a journaling file system like EX4 and the journal cannot be written for the deletion...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 39
- Joined: 2012-09-27, 23:27 UTC
- NoSubstitute
- Junior Member
- Posts: 47
- Joined: 2012-02-08, 10:45 UTC
- Location: Malmö, Sweden
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, unfortunately not, sorry. I have never seen this error on other devices.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- NoSubstitute
- Junior Member
- Posts: 47
- Joined: 2012-02-08, 10:45 UTC
- Location: Malmö, Sweden
Test button worked!
Creating a button like you described, with the following content, worked.
Function: Send shell command
Command: su
Parametre line 1: mount -o remount,rw -t rootf rootfs /
Parametre line 2: rmdir /root/write-test
So it seems when it is done "automatically" the commands aren't chained/connected correctly. It says it does the remount, but it doesn't allow the rmdir.
This is on my Nexus 7 with 4.4.4 and my Sony Xperia Z with 4.4.2, both fully rooted.
Function: Send shell command
Command: su
Parametre line 1: mount -o remount,rw -t rootf rootfs /
Parametre line 2: rmdir /root/write-test
So it seems when it is done "automatically" the commands aren't chained/connected correctly. It says it does the remount, but it doesn't allow the rmdir.
This is on my Nexus 7 with 4.4.4 and my Sony Xperia Z with 4.4.2, both fully rooted.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Can you try something else too, please? Create two separate buttons, one with
mount -o remount,rw -t rootf rootfs /
and the other with
rmdir /root/write-test
Then press the first and then the second button. Does this work too?
mount -o remount,rw -t rootf rootfs /
and the other with
rmdir /root/write-test
Then press the first and then the second button. Does this work too?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- NoSubstitute
- Junior Member
- Posts: 47
- Joined: 2012-02-08, 10:45 UTC
- Location: Malmö, Sweden
Yes, this works. Both commands have to be SU, with the action as parameter.ghisler(Author) wrote:Can you try something else too, please? Create two separate buttons, one with
mount -o remount,rw -t rootf rootfs /
and the other with
rmdir /root/write-test
Then press the first and then the second button. Does this work too?
It seems that the internal mkdir command requests and processes the remount to rw and also correctly requests SU permissions, but the internal rm/dir does not.
When I create both mkdir and rmdir as SU commands it works fine.
IF I first manually remount as rw with your button.
Same if I do a SU copy and then an SU rm of that file.
So, basically, it seems to create or remove things from / one has to first remount it, with your remount-button. After that, it varies whether you are creating or removing.
For creating one can use the internal commands and buttons just fine.
For removing, only manually created buttons, with SU works.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
OK, I will try to find out what is different. Can you check what command the remount button sends? Maybe there is a small difference to the command you entered manually...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- NoSubstitute
- Junior Member
- Posts: 47
- Joined: 2012-02-08, 10:45 UTC
- Location: Malmö, Sweden
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, I mean when you press the 119 Mount button in that directory, TC will offer to mount the drive with write rights. In this dialog box, it shows the exact command which it will send. Please check whether it is 100% the same as your own, or if there are additional or missing parameters.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- NoSubstitute
- Junior Member
- Posts: 47
- Joined: 2012-02-08, 10:45 UTC
- Location: Malmö, Sweden