You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Running-ROMs-from-a-Network-Share.md
+49-21Lines changed: 49 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,52 +13,70 @@ For EmulationStation to be able to see your rom files the paths given to it with
13
13
14
14
If you prefer to not use the EmulationStation system directory names and keep the current folder structure you have on your networked server you'll need to edit `es_systems.cfg`. Use this command to copy the configuration file to the home directory wherein it will be editable through SMB (//RETROPIE/configs/all/emulationstation) or FTP.
If you haven't already, now is a good time to tell Raspbian to wait for your network at boot.
21
23
22
-
sudo raspi-config
24
+
```bash
25
+
sudo raspi-config
26
+
```
23
27
24
-
In there, select "Boot Options" and tell it Yes.
28
+
In there, select System Options->Network at Boot and tell it Yes.
25
29
26
30
### Option 1: Add to autostart.sh (Preferred if using v4.0+)
27
31
28
-
sudo nano /opt/retropie/configs/all/autostart.sh
32
+
```bash
33
+
sudo nano /opt/retropie/configs/all/autostart.sh
34
+
```
29
35
30
36
Add the following line to the top of that file, being sure to adjust it for your personal settings, paths and options. This will make the local roms folder use your remote server roms folder instead.
31
37
32
-
sudo mount -t cifs -o username=something,password=something,nounix,noserverino //REMOTEHOST/path/to/roms /home/pi/RetroPie/roms
38
+
```bash
39
+
sudo mount -t cifs -o username=something,password=something,nounix,noserverino //REMOTEHOST/path/to/roms /home/pi/RetroPie/roms
40
+
```
33
41
34
42
> **Good to know**: If you'd like to host the entire RetroPie folder remotely you can do so by removing the `/roms` directories from the mount command above. Make sure to have a copy of the RetroPie installation on your remote server or EmulationStation won't be able to start RetroPie!
35
43
36
44
Restart your Raspberry Pi with `sudo reboot`.
37
45
38
46
Alternatively, if you have a shared folder that allows guest access, you can use the following line in your `autostart.sh`:
39
47
40
-
sudo mount -t cifs -o guest,uid=pi,nounix,noserverino //hostname/retropie /home/pi/RetroPie
48
+
```bash
49
+
sudo mount -t cifs -o guest,uid=pi,nounix,noserverino //hostname/retropie /home/pi/RetroPie
50
+
```
41
51
42
52
This should also allow you to write save files to your NAS.
43
53
44
54
### Option 2: Add to fstab
45
55
46
56
Using your favorite editor, open up fstab:
47
57
48
-
sudo nano /etc/fstab
58
+
```bash
59
+
sudo nano /etc/fstab
60
+
```
49
61
50
62
Add the line to mount your network share. Mine looks like this:
Restart and check the folder to make sure it didn't have any issues mounting at boot
59
75
60
-
sudo reboot
61
-
sudo ls RetroPie/roms/snes
76
+
```bash
77
+
sudo reboot
78
+
sudo ls RetroPie/roms/snes
79
+
```
62
80
63
81
With any luck (and if you have a ton of SNES ROMs like myself), it will be fairly apparent that it was able to mount the share at boot.
64
82
@@ -68,23 +86,28 @@ This will give you read/write access, so you could keep your saves there as well
68
86
First [create an account on your Time Capsule](https://discussions.apple.com/message/6801520#message6801520) with the same credentials as your Pi (default: pi/raspberry).
69
87
70
88
Install `cifs-utils` if it's not already installed
71
-
```
89
+
90
+
```bash
72
91
sudo apt update && sudo apt install cifs-utils
73
92
```
93
+
74
94
Edit your `autostart.sh` file
75
-
```
95
+
96
+
```bash
76
97
sudo nano /opt/retropie/configs/all/autostart.sh
77
98
```
78
-
And instead of
79
-
```
99
+
100
+
And instead of
101
+
102
+
```bash
80
103
sudo mount -t cifs -o username=something,password=something //hostname/retropie /home/pi/RetroPie
81
104
```
82
-
you enter
83
-
```
84
-
sudo mount -t cifs //hostname/retropie -o username=USERNAME,password=PASSWORD,sec=ntlm,file_mode=0777,dir_mode=0777 /home/pi/RetroPie
85
-
```
86
105
106
+
you enter
87
107
108
+
```bash
109
+
sudo mount -t cifs //hostname/retropie -o username=USERNAME,password=PASSWORD,sec=ntlm,file_mode=0777,dir_mode=0777 /home/pi/RetroPie
110
+
```
88
111
89
112
## Troubleshooting
90
113
@@ -104,15 +127,20 @@ I started a discussion on the forums for this article. I haven't written any gui
104
127
105
128
If you are getting permission denied errors when you try to scrape or save states, try editing your autostart.sh and replacing:
106
129
107
-
sudo mount -t cifs -o username=something,password=something //REMOTEHOST/path/to/roms /home/pi/RetroPie/roms
130
+
```bash
131
+
sudo mount -t cifs -o username=something,password=something //REMOTEHOST/path/to/roms /home/pi/RetroPie/roms
132
+
```
108
133
109
134
with
110
135
111
-
sudo mount -t cifs -o sec=ntlmv2,username=something,rw,file_mode=0777,dir_mode=0777,password=something,nounix,noserverino //REMOTEHOST/path/to/roms /home/pi/RetroPie/roms
136
+
```bash
137
+
sudo mount -t cifs -o sec=ntlmv2,username=something,rw,file_mode=0777,dir_mode=0777,password=something,nounix,noserverino //REMOTEHOST/path/to/roms /home/pi/RetroPie/roms
138
+
```
112
139
113
140
This will give you write access and should solve your problem.
114
141
115
142
> **Good to know**: Most problems with samba shares running on Windows are due to the fact that Windows 10 now no longer supports SMB1 by default. Ensure that you have a user setup on Windows with the credentials given, and that you have granted user access by right-clicking the shared folder and selecting the user from the 'Give Access To...' selection menu.
116
143
117
144
## Thank You
145
+
118
146
Thank you, everyone at the Raspberry Pi foundation, everyone involved in the development of EmulationStation and RetroPie, authors of several guides that I can't recall the names of, @sselph, @BuZz and probably a few other people.
0 commit comments