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

    Is there a better way to run ROMs from an external drive using automount?!?!?

    Scheduled Pinned Locked Moved Help and Support
    17 Posts 6 Posters 9.3k 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.
    • cyperghostC
      cyperghost @Shakz
      last edited by cyperghost

      @Shakz
      Why du you use fstab?
      You can use several usb sticks and the first will be mounted as /media/usb0 the second stick will be mounted as /media/usb1

      So in my humble opinion it is not necesasry to use fstab. I see no advantage to use fstab and then link the external device :)

      Lucid is asking for automount devices and automount-usb package is installed by default in RetroPie packages.

      ShakzS 1 Reply Last reply Reply Quote 0
      • ShakzS
        Shakz @cyperghost
        last edited by

        @cyperghost In my case I use a 2tb Western Digital Mybook. As those that have this drive know it mounts up two disks/mount points when you plug it in. One is the actual drive for storage...then other is a drive with a buncha tools from WD that no one uses. Sometimes its mounted on usb1 sometimes usb0...they flip flop depending on which one answers first when the pi boots up and automounts. That is why I use fstab.

        RetroPie tips, tricks, and tweaks: https://www.youtube.com/eazyhax

        cyperghostC 1 Reply Last reply Reply Quote 0
        • cyperghostC
          cyperghost @Shakz
          last edited by

          @Shakz Ah... I didn't know :) Well I think that's a special case but good to know the reasons.

          dankcushionsD 1 Reply Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator @cyperghost
            last edited by

            @dankcushions
            No I think playing with fstab is NOT the simpelst way. It's the robustest one :)

            you can use the fstab method to link to the media/ default mount point as well (rather than the UUID), which makes it as simple as your symlink method :) but in my experience you'll want to make sure your permissions are right, and fstab is the way to do that, so you might as well mount it to the right place whilst you're there.

            but yeah like I said there's a number of ways to achieve the same thing.

            1 Reply Last reply Reply Quote 1
            • L
              LucidEye @dankcushions
              last edited by

              @dankcushions
              If it says to copy the just the contents, then why is the path you have shown in the instructions "/home/pi/RetroPie"? If you are only copying the contents, shouldn't the path be "/home/pi/"? I did follow the instructions... twice... using the path /home/pi/RetroPi as well as /home/pi in fstab and neither one worked. Emulationstation did not see any of the roms on the external HDD. Any ideas why?

              ShakzS dankcushionsD 2 Replies Last reply Reply Quote 0
              • ShakzS
                Shakz @LucidEye
                last edited by

                @LucidEye
                What is the output of the following?

                df
                

                and

                ls -latr /home/pi/RetroPie/roms
                

                RetroPie tips, tricks, and tweaks: https://www.youtube.com/eazyhax

                1 Reply Last reply Reply Quote 0
                • dankcushionsD
                  dankcushions Global Moderator @LucidEye
                  last edited by

                  @LucidEye said in Is there a better way to run ROMs from an external drive using automount?!?!?:

                  @dankcushions
                  If it says to copy the just the contents, then why is the path you have shown in the instructions "/home/pi/RetroPie"? If you are only copying the contents, shouldn't the path be "/home/pi/"? I did follow the instructions... twice... using the path /home/pi/RetroPi as well as /home/pi in fstab and neither one worked. Emulationstation did not see any of the roms on the external HDD. Any ideas why?

                  I've edited the wiki to make it less ambiguous, but like i said, the Linux commands are there. if you paste these commands in it will work. however if you've already deleted the path from your old install then it's too late.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dsstrainer
                    last edited by dsstrainer

                    For those looking for a simpler one-line solution, you can just run this all in one line at the prompt (after you disable the USB service from the retropie-setup menu and move the folder structure over to usb)

                    sdauuid=$(ls -l /dev/disk/by-uuid/ | grep sda1 | cut -d " " -f 9) && echo UUID=$sdauuid  /home/pi/RetroPie      vfat    nofail,user,uid=pi,gid=pi 0       2 | sudo tee -a /etc/fstab
                    

                    It simply sets the value of the UUID to a variable, then generates the necessary fstab line, substituting the uuid value for $sdauuid variable and appends it to the fstab file. I could have also added the part where it moves the existing structure over to this one line but for readability sake I didn't.

                    Alternatively, if you are planning on only ever having a single usb drive, you can just use a symlink and not worry about uuid

                    cd ~;mv RetroPie RetroPie-local;ln -s /media/usb0 RetroPie
                    

                    This will goto your home directory, rename the existing RetroPie to RetroPie-local, and create a symlink to the usb0 drive named RetroPie

                    Note this method isn't recommended when using more than one usb drive as it could cause a race condition on which drive is which. Fstab is best and the one liner should make it nice and easy.

                    RetroPie v4.2 • RPi3 Model B • 5.1V 2.5A PSU • 8GB SanDisk class 10 microSD • 16GB External USB Thumb Drive
                    Roms, images and configs stored in USB and symlinked from normal microsd location
                    Xarcade Keyboard encoder + Zero Delay Joystick encoder

                    1 Reply Last reply Reply Quote 1
                    • B
                      Bobbensun
                      last edited by

                      Hello all !! I've followed what's written in

                      https://www.htpcguides.com/properly-mount-usb-storage-raspberry-pi/

                      and also read thru and tried everything in this thread, and Retropie still doesn't load anything from the HDD.

                      Working with a Pi3 and a Seagate usb hdd, powered thru a usb hub.

                      The HDD is mounted, as i can see the messages in the loading screens. But nothing gets copied over.

                      On my HDD, i made a folder called /mount.
                      I copied the complete RetroPie folder in it ( /mount/RetroPie/ ), roms and all.

                      I have no clue what i'm missing, and it's frustrating after 3 days of trial and error.

                      Any help ???

                      dankcushionsD 1 Reply Last reply Reply Quote 0
                      • dankcushionsD
                        dankcushions Global Moderator @Bobbensun
                        last edited by

                        @bobbensun our guide is here: https://retropie.org.uk/docs/Running-ROMs-from-a-USB-drive/ - it's very simple and will work.

                        we don't support guides written on other sites.

                        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.