Hi
I prefer to have my games on USBKEYS - I have for now installed 2 USBKEYS on my Mister, and I know that sometimes those 2 USBkeys wont always be mounted as /media/usb0 and /media/usb1 (if you have 2 usbkeys)
Sometimes the do switch around, so to be sure always to "lock" em at the mountpoint you want, you can do this simple "trick".
- Power on Mister
- Connect Mister via SSH (like putty)
- Type the command: ls -lia /dev/disk/by-uuid/
This will show you what devices are attached your Mister: For my Mister output this:
169 lrwxrwxrwx 1 root root 15 Feb 10 11:55 0221-F4EA -> ../../mmcblk0p1
269 lrwxrwxrwx 1 root root 10 Feb 10 11:55 10B6-C207 -> ../../sda1
261 lrwxrwxrwx 1 root root 11 Feb 10 11:55 897d406f-b1e7-4fcf-8817-8d7ad204e477 -> ../../loop0
257 lrwxrwxrwx 1 root root 10 Feb 10 11:55 98E6-48E0 -> ../../sdb1
200 lrwxrwxrwx 1 root root 11 Feb 10 11:55 f6fc4f39-51d7-45ed-a4af-dc7ea13c3d6f -> ../../loop8
I can see there are 3 devices (actually 5 but just ignore the 2 loop) attached to the Mister: 1 SD card (mmcblk0p1) and 2 USBKEYS (sda1 & sdb1)
We are only interessted in sda1 and sdb1
If we take the first one (sda1): 10B6-C207 -> ../../sda1 - It shows a unique id which is: 10B6-C207
and for sdb1: 98E6-48E0
We need those 2 ids for our fstab (linux automount)
Make a backup of the current fstab by write this: cp /etc/fstab /etc/fstab_backup_2023-02-10
check to see if the file is there with this command: ls -lia /etc/fstab_backup_2023-02-10Edit the /etc/fstab file by type this: nano /etc/fstab
Go down to the buttom of the file, and type this (Remember YOUR own Unique ID's and dont type in mine):
UUID=10B6-C207 /media/usb0 auto nosuid,nodev,nofail 0 0
UUID=98E6-48E0 /media/usb1 auto nosuid,nodev,nofail 0 0
Save and Close Nano with Ctrl + x and press Y for Yes and press enter.
Reboot your Mister and now you should have your USBKEYs (or even HDD) assigned at the correct mountpoints EVERY TIME you start Mister!!
/TuffyDK