Is there a better way to run ROMs from an external drive using automount?!?!?
-
@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/usb1So 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.
-
@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.
-
@Shakz Ah... I didn't know :) Well I think that's a special case but good to know the reasons.
-
@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.
-
@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? -
-
@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.
-
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.
-
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 ???
-
@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.
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.