Error copying file to /system partition

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

revanmj
New Member
New Member
Posts: 1
Joined: 2008-01-29, 18:22 UTC

Error copying file to /system partition

Post by *revanmj »

Anytime I want to copy some file to the /system partition I get an error saying "su error: could not open source file". Other file managers (for example ES File Manager) don't have this issue.

I'm running an unofficial build of CyanogenMod 11 (Android 4.4) on a Galaxy Nexus and using its default Superuser app.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm surprised that ES can do it under these conditions - to my knowledge, "Superuser" is NOT supporting Android 4.3 and 4.4 yet.

Total Commander currently works with SuperSU. I have no idea what I need to change to make it work with Superuser. I simply call the "su" binary, and SuperSU does the rest.

If anyone has an idea what could be done, please let me know.
Author of Total Commander
https://www.ghisler.com
spamkuba
Junior Member
Junior Member
Posts: 2
Joined: 2013-12-07, 11:06 UTC

Post by *spamkuba »

Hi, I love you program but I have problem too. I use stock 4.4 with supersu. When I copy file from sd to /system file I loose icons and file is not working.
It's a problem with permission?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2revanmj
Which build of Cyanogenmod 11 do you use? I have just installed Cyanogenmod 11 "M Snapshot" dated 2013-12-05 on my Nexus 7 (2012), and I can mount partitions as read/write without any problems. I can also copy to /system without problems. Please make sure that you use the latest Total Commander from the Play Store or ghisler.com.

2spamkuba
This is normal - when you copy a file to /system, it inherits the user rights of that folder. Therefore it's probably limited to root now. To view and change the permissions and user/group, please make a long tap on the file and choose "Properties". There you can tap on "rwx" for the permissions, or "UID" for user/group name.
Author of Total Commander
https://www.ghisler.com
spamkuba
Junior Member
Junior Member
Posts: 2
Joined: 2013-12-07, 11:06 UTC

Post by *spamkuba »

both files have RWX: -rw-r--r-- and UID:0 root
I can send screenshot how it looks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This means that the file should be readable by everyone, but cannot be changed except by the root user.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a bug of Cyanogenmod 11! While the user has access to /storage/emulated/0, the root user does NOT have access to it!

Beta 2 therefore redirects to /storage/emulated/legacy if it cannot access /storage/emulated/0.

Please try it!
Author of Total Commander
https://www.ghisler.com
siealex
Senior Member
Senior Member
Posts: 278
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

It's a bug of Android 4.3 and 4.4, not only cyan.
We are not so S.M.A.R.T. as we imagine...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No it's not. I have a Nexus 7 (2012) with the official 4.4 release from Google, and it does NOT have this bug - the root user does have read and write access to /storage/emulated/0
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

Also i have this problem.
"could not open source file error:2"
4.4.2
do it have a solution.
changed rw /system and file.
remount rw.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't understand. Please be more specific of what doesn't work. What are you trying to do in /system ?
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

I get this error when try to edit or overwrite /etc/dhcpcd/dhcpcd-hooks/20-dns.conf
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see. You may not have the rights to read or write the file, or write to the folder. Please try setting the file attributes via properties.
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

I have set up all permission enabled.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

From where do you try to copy to /system?
Author of Total Commander
https://www.ghisler.com
Post Reply