what does flashing via fastboot actually do?


tawaya23

Members
Jan 29, 2022
2
3
Hi!



If I modify files that are in the root "/" directory, e.g. create new folders, modify chmod, delete files etc., if I flash the stock rom via fastboot, will all partitions and files in the "/" directory be restored? Or will the flash restore only some partitions?
 

Igor Eisberg

Developer
Staff member
Oct 6, 2016
7,473
322
On all devices released in the past ~4 years, "/" is in fact the system partition (known as "system-as-root").
Flashing either a recovery ROM or a fastboot ROMs will overwrite the system partition, hence "/".
 
  • Like
Reactions: tawaya23

tawaya23

Members
Jan 29, 2022
2
3
On all devices released in the past ~4 years, "/" is in fact the system partition (known as "system-as-root").
Flashing either a recovery ROM or a fastboot ROMs will overwrite the system partition, hence "/".
I understand, thanks for answering, one last question, "/" is modified by the user? example with OrangeFox, I can create folders in "/" and put the files I want? if I reinstall the miui via fastboot, the changes made by the user previously will be deleted right? example chmod?
 

Igor Eisberg

Developer
Staff member
Oct 6, 2016
7,473
322
I understand, thanks for answering, one last question, "/" is modified by the user? example with OrangeFox, I can create folders in "/" and put the files I want? if I reinstall the miui via fastboot, the changes made by the user previously will be deleted right? example chmod?
You can't touch anything on any read-only system partition. If you try, you can end up in a boot failure.
 
  • Like
Reactions: tawaya23