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

Option for mounting additional local disks #5933

Closed
igno2k opened this issue Apr 5, 2022 · 7 comments
Closed

Option for mounting additional local disks #5933

igno2k opened this issue Apr 5, 2022 · 7 comments

Comments

@igno2k
Copy link

igno2k commented Apr 5, 2022

batocera-boot.conf has the option to mount full /userdata or single directories (like /userdata/roms) via NAS.

Example:

  sharedevice=NETWORK
  sharenetwork_smb1=ROMS@192.168.0.1:Documents/batocera/roms:guest

It would be nice to have a similar option in batocera-boot.conf for additional local disks. For example having two hard disks

  • HDD1: contains batocera installation and /userdata/ (fast flash drive)
  • HDD2: contains only rom files (UUID abcdefg-1234-5678-hijk-lmnopq0000) ("slow" mass storage)

HDD2 should be mounted to /userdata/roms while the rest of the /userdata resides on HDD1.

Maybe it can be done with a configuration like this:

  sharedevice=INTERNAL
  sharedevice_hdd1=ROMS@abcdefg-1234-5678-hijk-lmnopq0000

This can also be done for separate hard disks or partitions for SAVES, BIOS, etc.

I think only some changes to /etc/init.d/S11share have to be done.

At the moment this could also be accomplished with a "dirty hack" like (not tested yet):

sharedevice=NETWORK
sharenetwork_cmd1=mount -t ext4 UUID=abcdefg-1234-5678-hijk-lmnopq0000 /userdata/roms

What do you think?

@nadenislamarre
Copy link
Collaborator

yes, seems easy to add and nice.
i add it to my todo.

@igno2k
Copy link
Author

igno2k commented Apr 6, 2022

Thanks a lot!
Just for the record: the "dirty hack" I mentioned works fine but the other solution would be much cleaner.

@nadenislamarre
Copy link
Collaborator

done here : #5974
please feedback with the next beta soon.

syntax :

sharedevice=DEVICES

sharedevice_part1=SHARE@abcdefg-1234-5678-hijk-lmnopq0000

sharedevice_part2=ROMS@68dc61b8-5008-4659-bde9-5938a547680a:/Documents/roms

note that the device can be a simple uuid or uuid:subdirectory which could be nice to mount /windows/users/you/my_roms for example.

@igno2k
Copy link
Author

igno2k commented Apr 12, 2022

Thanks a lot!
Will check it this weekend and give feedback.

Are there any restrictions regarding filesystems? I will test it with ext4 - but maybe a lot of users have external disks used alongside Windows with ExFAT/NTFS filesystem.

@nadenislamarre
Copy link
Collaborator

hum, i use mount instead of batocera-mount , so yes, i should change it while the aim of batocera-mount is to handle them

@igno2k
Copy link
Author

igno2k commented Apr 15, 2022

Ok, tested it today with an extern USB drive with ext4 filesystems used for ROMS. Works perfectly fine with latest beta (build date 14.04.2022).

Thanks!

@Tine2
Copy link

Tine2 commented Nov 2, 2023

Interesting discussion. I would have a different need and that is, I have Batocera installed on a 2TB SATA HDD, on which I have run out of space. I would like to mount a 2nd STATA HDD on the Motherboard and configure Batocera to make it read the ROMS folder, both from HDD1 and HDD2: can this be done? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants