Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| modify_the_system_while_it_s_running [2021/10/01 01:57] – updated inlinks atari | modify_the_system_while_it_s_running [2023/04/09 14:10] (current) – [Creating a Batocera filesystem overlay] maximumentropy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Overlays ====== | + | ====== Overlays |
| - | Batocera is like a firmware. It's a huge virtual | + | Batocera is like a firmware. It's a huge filesystem image at ''/ |
| - | + | ||
| - | The boot partition is mounted with read-only permissions at '' | + | |
| {{batocera_drive_layout.png? | {{batocera_drive_layout.png? | ||
| - | That said, you can utilize overlays to " | + | Under normal circumstances, |
| - | ===== Editing system files ===== | + | ===== Creating a Batocera filesystem overlay |
| - | If you need to edit files to assist in making Batocera boot or to set up external storage, refer to [[edit_boot_partition|editing the boot partition]]. | + | For modifications to the regular Batocera |
| - | + | ||
| - | For modifications to the regular Batocera | + | |
| <WRAP center round tip> | <WRAP center round tip> | ||
| Refer to [[: | Refer to [[: | ||
| </ | </ | ||
| + | |||
| + | By default, Batocera overlay files are limited to 100 MB. If your modifications are over 100 MB, you can specify the size of the overlay with the command. Keep always a bit of margin, the overlay will embed a few more files than those you were expecting (some system files created on-the-fly at boot time). For example, if you need to save 120 MB of data on the system, you can type '' | ||
| <WRAP center round important> | <WRAP center round important> | ||
| Line 23: | Line 21: | ||
| </ | </ | ||
| - | Even if you don't use the '' | + | <WRAP center round tip> |
| + | To view the contents of the overlay | ||
| - | By default, Batocera overlay files are limited to 50 MB. If your modifications are over 50 MB, you can specify the size of the overlay with the command. Keep always a bit of margin, the overlay will embed a few more files than those you were expecting (some system files created on-the-fly at boot time). For example, if you need to save 120 MB of data on the system, you can type '' | + | < |
| + | mount /boot/boot/overlay | ||
| + | find /mnt | ||
| + | umount /mnt | ||
| + | </ | ||
| - | <WRAP center round alert> | ||
| - | This cannot be done for the Batocera **v31** on the Odroid XU4 platform. | ||
| </ | </ | ||
| + | |||
| + | ===== Removing the overlay ===== | ||
| + | |||
| + | Even if you don't use the '' | ||
| ===== Cases when you don't need to modify the system ===== | ===== Cases when you don't need to modify the system ===== | ||
| Some best practices here: | Some best practices here: | ||
| - | * You generally | + | * You don't need to edit ''/ |
| - | * You should not modify ''/ | + | * You should not modify ''/ |
| + | |||
| + | ===== I want to modify something in the boot folder though ===== | ||
| + | The boot partition is mounted with read-only permissions at ''/ | ||
modify_the_system_while_it_s_running.1633053422.txt.gz · Last modified: by atari