Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

mineral55
Posts: 37
Joined: Mon Dec 13, 2021 11:52 pm
Has thanked: 6 times
Been thanked: 5 times

Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

Unread post by mineral55 »

For the less tech savvy among us that haven't thought about using a symbolic link in order to reach their gameboy roms automatically instead of having to go up a directory to access the GAMEBOY folder each time when using the Super Gameboy core, here is a short guide for you:

1. If you keep your Super Gameboy sfc files in your SGB folder transfer them to the GAMEBOY folder within /media/fat/games/GAMEBOY/ and empty its contents and delete it (if you do this now you may skip step 5).

2. Plug in a keyboard into your MiSTer

3. Press the F9 key

4. Enter root as your username and 1 as the password

5. Delete the SGB folder if you haven't already

Code: Select all

rmdir /media/fat/games/SGB/
it will complain if you have files in there in which case (making certain there's nothing in SGB that you care to save):

Code: Select all

rm /media/fat/games/SGB/*
rmdir /media/fat/games/SGB/
6. Enter the command

Code: Select all

ln -s /media/fat/games/GAMEBOY/ /media/fat/games/SGB
then enter:

Code: Select all

exit
and reset your MiSTer

7. Voila! Your SGB folder is now a soft link to the GAMEBOY folder and you can access your romlist directly from the SGB core without going through extra key presses now!

I think you can do this remotely with curl but I don't know how :( Can someone post how to in this thread?
rafael
Posts: 12
Joined: Sun May 24, 2020 10:11 pm
Has thanked: 22 times
Been thanked: 5 times

Re: Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

Unread post by rafael »

I think this should do the trick (please replace the variable with the IP of your MiSTer on your local network)

Code: Select all

ssh root@$MISTER_IP_ADDRESS ln -s /media/fat/games/GAMEBOY/ /media/fat/games/SGB
rhester72
Posts: 672
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 7 times
Been thanked: 86 times

Re: Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

Unread post by rhester72 »

I'm still not sure how on earth you're symlinking on a filesystem that doesn't support soft links.
rafael
Posts: 12
Joined: Sun May 24, 2020 10:11 pm
Has thanked: 22 times
Been thanked: 5 times

Re: Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

Unread post by rafael »

rhester72 wrote: Sun Aug 14, 2022 3:00 pm I'm still not sure how on earth you're symlinking on a filesystem that doesn't support soft links.
Check this post out for more information
viewtopic.php?t=322
mineral55
Posts: 37
Joined: Mon Dec 13, 2021 11:52 pm
Has thanked: 6 times
Been thanked: 5 times

Re: Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

Unread post by mineral55 »

rafael wrote: Sun Aug 14, 2022 3:40 pm
rhester72 wrote: Sun Aug 14, 2022 3:00 pm I'm still not sure how on earth you're symlinking on a filesystem that doesn't support soft links.
Check this post out for more information
viewtopic.php?t=322
I can't seem to find much there other than symlinks work in MiSTer and I may have issues transferring to another device (links turn into text files?) so it's not a good idea to have a lot of them? Will this potentially break anything does anyone know?
User avatar
pgimeno
Posts: 582
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 212 times
Been thanked: 180 times

Re: Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

Unread post by pgimeno »

If a symbolic link becomes a text file, you can always redo it. The only problem is knowing that it was a symlink to begin with.

My files are in another partition of the SD card, using ext4fs, and the "main" exFAT partition only has the Linux system, menu.rbf, the main MiSTer and MiSTer.ini, and the rest are symlinks to the other partition. Working like that for over a year now without problems, apart from case sensitivity issues in some cores due to ext4 being case sensitive, which were easy to fix, and a couple minor annoyances.

So I'd say it's pretty safe.
JayRockets
Posts: 27
Joined: Thu Aug 04, 2022 11:16 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Using a symbolic link to make accessing rom set easier from the Super Gameboy Core

Unread post by JayRockets »

rafael wrote: Sun Aug 14, 2022 6:08 am I think this should do the trick (please replace the variable with the IP of your MiSTer on your local network)

Code: Select all

ssh root@$MISTER_IP_ADDRESS ln -s /media/fat/games/GAMEBOY/ /media/fat/games/SGB
where do I enter this? it isn't working in command prompt

edit: nevermind. I must have uninstalled OpenSSHClient. it worked.
Post Reply