First, move your /snap directory to its new home on "drive2" or wherever you want to put it. If you need it, here is the command for that (replace with your details)
sudo mv /snap /media/drive2/snap
You will have to type your sudo password, like usual.
Then, be sure you're in the directory you want to have the link in, in this case, I'll assume you are in / since that is the default snap location.
If you need to change to the directory here is the command:
cd /
This assumes you want the link to exist in / (root folder) but change it to your specific needs.
sudo ln -s /media/drive2/snap /snap
Details:
- cd / = is change directory to where you want the link to exist
- sudo = admin mode
- ln = link command
- -s = flag to make it symbolic (an alias link)
- /media/drive2/snap = actual location
- /snap = alias that should point there
Be sure to replace /media/drive2 with your specific location
You should end up with a /snap "folder" that is really an alias (symbolic) link to /media/drive2/snap or wherever you put it.
To test and see if the link worked, type in this command:
ls -la
you should see a list of files, and your link will look like this if done right:
snap -> /media/drive2/snap