Create a symbolic link

I want to create a symbolic link of my external disk.

I use the ln -s but nothing happens.

ln -s /run/media/robafovio/TOSHIBA EXT/ /home/MyThings

Then I use cat /etc/fstab to check if I’m doing the right thing and I don’t understand the fstab at all.

UUID=878b5c9e-48da-4a83-9520-d0402014d9ae / ext4 defaults,noatime 0 1

Can you help me, please? Thank you.

/etc/fstab is your mount options, these are what are mounted automatically at boot, what you have shown is the root filesystem “/” and the UUID of the physical hard drive/ssd that goes with it.

fstab is different than a symbolic link, a symbolic link is more like a shortcut if using the -s option.

Are you trying to make a folder in /home/ called MyThings that goes to the external drive? then what you should have is
ln -s /run/media/robafovio/TOSHIBA EXT/ /home/robafovio/MyThings

The one thing i am unsure of is if you remove the drive how the symbolic link works when you later plug the drive back in. As in, if it will just keep working in the future.

Thanks for your reply. But I only see these files: “EXT” and “TOSHIBA”. I don’t the folder and sub-folders. Thank you.

This path has a space in it. You need to escape or quote those, e.g.

ln -s /run/media/robafovio/TOSHIBA\ EXT /home/MyThings
# or
ln -s "/run/media/robafovio/TOSHIBA EXT" /home/MyThings

what do you see when you run the command below? for me my external doesn’t show a name like yours it’s a long string of numbers and letters, but if it does say TOSHIBA EXT then Jonathon is correct due to the space you need to do what he said.

ls -la /run/media/robafovio

Thank you. Simple detail that make all difference.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.