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/09/30 00:56] – [Editing system files] added link to my cool new notable files/folders page that you should all definitely check out 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, |
| - | <WRAP center round info 60%> | + | ===== Creating a Batocera filesystem overlay ===== |
| - | The boot partition remounting information has been moved to [[edit_boot_partition|its own page]]. | + | |
| - | </ | + | |
| - | ===== Editing system files ===== | + | For modifications |
| - | If you need to edit files to assist | + | |
| - | For modifications to the regular Batocera virtual file system, you can directly edit the files in their directory while booted (for example if you want to play with the configgen scripts in ''/ | + | <WRAP center round tip> |
| + | Refer to [[: | ||
| + | </ | ||
| - | This command | + | 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 |
| <WRAP center round important> | <WRAP center round important> | ||
| Line 24: | Line 21: | ||
| </ | </ | ||
| - | 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.1632963417.txt.gz · Last modified: by atari