redirect rom folder to usb flashdrive?

Home Forums RetroPie Project Everything else related to the RetroPie Project redirect rom folder to usb flashdrive?

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of retrouser15 retrouser15 2 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #90615
    Profile photo of cosmodk
    cosmodk
    Participant

    Is it possible to redirect the ROMS folder to a flashdrive? i am having major issues with my memory card on my RaspPi 2 filling up with roms πŸ™

    i would love to keep my memory card clean and free of Roms, and keep those separate on a USB Stick instead.

    for that past week i have been trying to find a solution online, however i am no Linux wizard and have to rely on outdated guides, that in the end prove to be non functional πŸ™

    Please oh Gurus of RetroPie help me out πŸ™‚

    Kind regards
    Jimmy

    #90628
    Profile photo of retrouser15
    retrouser15
    Participant

    Let me make the following assumptions for example purposes:

    /dev/sdb1 is the partition for the flash drive
    ext4 is used as the filesystem
    flash drive mounted as /mnt/games

    First we add the device to be mounted at boot (ignore filesystem checking, you can make this 0 2 if preferred for filesystem checking)
    sudo echo "$(blkid /dev/sdb1 | cut -d' ' -f2) /mnt/usb ext4 defaults 0 0" >> /etc/fstab

    Next we mv all the existing ROM data to the flash drive
    mv /home/pi/RetroPie/roms /mnt/usb/roms

    Create a symlink from the existing location to new
    ln -s /mnt/usb/roms /home/pi/RetroPie/roms

    Then all should be well.

    • This reply was modified 2 years, 1 month ago by Profile photo of retrouser15 retrouser15.
    #90631
    Profile photo of cosmodk
    cosmodk
    Participant

    I will try this πŸ™‚

    My filesystem is FAT32 would that be an issue? will this also prevent my SDcard Roms folder filling up with roms?

    Thanks

    //Jimmy

    #90632
    Profile photo of retrouser15
    retrouser15
    Participant

    You should subsitute ext4 for FAT32 in the first command then. Additionally run blkid /dev/sdb1 by itself to determine which field has the UUID and change the -f int he cut command to match.

    It will then use onlyt he flash drive. Symlinks are treated as if they exist in the source when they do not. So your SD card will not be written to using this method as it will reirect to the flash drive.

    As with any advice on commands given via the internet ensure you have backups and check man pages if unsure. Not responsible for data loss. I have not tested this but was discussing it with someone earlier in any case.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar