0

I have to edit my fstab in android 4.4 but the root is mounted in read only. I've try to remount the root with mount -o rw,remount /And I can edit the root files but when I reboot the device the changes disappear. How can I make persistent changes in / without rebuild the kernel?

Irfan Latif
  • 20,353
  • 3
  • 70
  • 213
Andrea993
  • 101
  • 1

1 Answers1

0

For that you'd need to edit the corresponding image (see initrd), which is unpacked on each boot.

Alternatively, you could create a script replacing the fstab file, and have this run on each boot e.g. using or a similar app that can execute "stuff" automatically after boot.

Izzy
  • 91,166
  • 73
  • 343
  • 943