RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Auto USB copy, how does it work? [solved]

    Scheduled Pinned Locked Moved Help and Support
    usbsdcardudevscript
    3 Posts 2 Posters 452 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • muldjordM
      muldjord
      last edited by muldjord

      So I've been trying to figure out how the RetroPie USB-to-SD autocopy works. The functionality that takes any roms in retropie/roms from the USB stick and copies them to the appropriate folders on the SD card. I would have guessed it to be executed by some udev rule, but I can't for the life of me find any that seems to initiate any such thing.

      Does it run a script? What initiates this? Where are the relevant files located?

      Any help on the technical aspect of this would be appreciated. Thanks!

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @muldjord
        last edited by mitu

        @muldjord Hello there ! It's not using udev, but a special service - usbmount - which drops some files to be executed in /etc/usbmount/mount.d when a new mount-able device appears.

        1 Reply Last reply Reply Quote 1
        • muldjordM
          muldjord
          last edited by

          Thanks @mitu, that'll get me started :D

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.