Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional exFAT partition #1830

Draft
wants to merge 5 commits into
base: Lakka-v5.x
Choose a base branch
from
Draft

Conversation

ToKe79
Copy link
Collaborator

@ToKe79 ToKe79 commented Feb 12, 2023

based on feature request #646

  • optional exFAT partition created during first boot / partition setup
  • bios files copied from exFAT to default location
  • no change to default behavior

many users request a partition, that is also accessible on operating
system, that does not natively support ext4 system, to be able transfer
their game files to the storage device (see libretro#646).

by reducing the size of the ext4 partition (which mostly stores
configuration and setting files) to roughly 2GiB, the remaining space of
the storage device can be used as exFAT partition, which is accessible
on most (if not all) operating systems.

the partition is mounted by udevil to /storage/roms/EXFAT.

if for some reason the size of the first (FAT32) partition will be
increased in the future, then also the value (4GiB) for the end of the
ext4 partition needs to be adjusted.

this does not break existing installations of Lakka, but it also does
not add the partition to existing installation of Lakka. the partition
is created only on the first boot of the freshly flashed image.
the exFAT partition will be created only in case the user adds a file
called `create_exfat` in the root of the first (FAT32) partition. so the
original (no exFAT partition) behavior is default.
to avoid any folder remapping needs in RetroArch, user can create folder
called `bios` in the root of the exFAT partition and place their bios
files into this folder. during RetroArch startup this folder will be
checked for any existing files/folder, copy them to the default location
for system folder and back them up in folder `bios_copied` folder on the
exFAT partition. a transfer log is created during this process to check
for any failures.
for some users it might be challenging creating a blank file without an
extension. this file can be renamed to 'create_exfat' after writing the
image / BEFORE first boot, in order to create also an additional exFAT
partition
@ToKe79 ToKe79 marked this pull request as draft February 21, 2023 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant