help me please I cannot modify system files despite having root

Search This thread

lg_g3_d855

Member
Feb 8, 2021
12
0
i'm on (pixel 2xl) lineageos 16.0 rooted with magisk, i want to add a script in init.d folder but i can't do it, i tried with root explorer but it doesn't work, afwall also can't mount folder for startup script, any solution?
 

User699

Senior Member
Feb 28, 2021
223
1
41
i'm on (pixel 2xl) lineageos 16.0 rooted with magisk, i want to add a script in init.d folder but i can't do it, i tried with root explorer but it doesn't work, afwall also can't mount folder for startup script, any solution?
Why? What error do you get?

Try to move/copy something into /tmp folder. It should work if you're rooted (your shell shows # instead of $).
If it doesn't work, maybe you have to remount your system as rw (read and write):
Code:
mount -o rw,remount /
after you made your modifications, mount it as ro (read only) again:
Code:
mount -o ro,remount /

If it still doesn't work, we need to see the error you get (copy and paste into this forum) while moving/coping something into /tmp.
 
  • Like
Reactions: lg_g3_d855

lg_g3_d855

Member
Feb 8, 2021
12
0
Why? What error do you get?

Try to move/copy something into /tmp folder. It should work if you're rooted (your shell shows # instead of $).
If it doesn't work, maybe you have to remount your system as rw (read and write):
Code:
mount -o rw,remount /
after you made your modifications, mount it as ro (read only) again:
Code:
mount -o ro,remount /

If it still doesn't work, we need to see the error you get (copy and paste into this forum) while moving/coping something into /tmp.
i tried with mount -o rw, remount, but it keeps showing me the file system is read only
.
 

User699

Senior Member
Feb 28, 2021
223
1
41
i tried with mount -o rw, remount, but it keeps showing me the file system is read only
.
Can you verify you entered that command as root?
Please do the following:

Do this on your computer to enter your devices shell
Code:
prompt_PC:~$ adb shell

Code:
prompt:~$ whoami
This should give you either "shell" or "root"

If it says "shell" do:
Code:
prompt:~$ su
prompt:~#
It will show a # instead of $ if you're root.

If you're already root (or you are now root due to su command), do:
Code:
prompt:~# mount -o rw,remount /
Now it should be writeable and you can do your modifications.

After you finished you need to change it to ro (read only) again:
Code:
prompt:~# mount -o ro,remount /

After that you can exit the shell:
Code:
prompt:~# exit
prompt:~$ exit
(first exits su, second exits shell)




I'm sorry if you already did that but I wan't to be sure you did it correctly.
If this procedere doesn't work, please copy and past your input and output into this forum as this might help to understand what's going on/failing etc.
 

lg_g3_d855

Member
Feb 8, 2021
12
0
Can you verify you entered that command as root?
Please do the following:

Do this on your computer to enter your devices shell
Code:
prompt_PC:~$ adb shell

Code:
prompt:~$ whoami
This should give you either "shell" or "root"

If it says "shell" do:
Code:
prompt:~$ su
prompt:~#
It will show a # instead of $ if you're root.

If you're already root (or you are now root due to su command), do:
Code:
prompt:~# mount -o rw,remount /
Now it should be writeable and you can do your modifications.

After you finished you need to change it to ro (read only) again:
Code:
prompt:~# mount -o ro,remount /

After that you can exit the shell:
Code:
prompt:~# exit
prompt:~$ exit
(first exits su, second exits shell)




I'm sorry if you already did that but I wan't to be sure you did it correctly.
If this procedere doesn't work, please copy and past your input and output into this forum as this might help to understand what's going on/failing etc.
yes I'm root, output is file system is read only despite adb commands
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    i'm on (pixel 2xl) lineageos 16.0 rooted with magisk, i want to add a script in init.d folder but i can't do it, i tried with root explorer but it doesn't work, afwall also can't mount folder for startup script, any solution?
    Why? What error do you get?

    Try to move/copy something into /tmp folder. It should work if you're rooted (your shell shows # instead of $).
    If it doesn't work, maybe you have to remount your system as rw (read and write):
    Code:
    mount -o rw,remount /
    after you made your modifications, mount it as ro (read only) again:
    Code:
    mount -o ro,remount /

    If it still doesn't work, we need to see the error you get (copy and paste into this forum) while moving/coping something into /tmp.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone