Working with Symbolic Links.

The very first implementation of my Odroid Server ran off an 8 GB SD card. While its not a problem to find a minimized Linux distro (Ubuntu Mate comes in full and minimize) it was still a very small amount of space available after installation. Just running my Plex Server was a pain, as thumbnails and other items would quickly fill the remaining space I had. I was becoming stressful, and I was about to abandon my server until I could buy a bigger card. 

 

data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoGBxETEhMSERERFhEWERMYGRkYERkWHBYWGRYZGSAaGxgaHywiGyAoHRkYIzQkKSwuMTExGyI6PDcvSCswMS4BCwsLDw4PHRERGS4iHx8uLi4wMC4wLi4wMDAwMDAuLjAwMDAuMC4wMDAwMDAuMDAwMDAwLjAwMDA7MDAwOzAwLv/AABEIAK0BIwMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAAABAECBQMGB//EAEYQAAIBAgMDBQoNBAEEAwAAAAECAwARBBIhBRMxIkFRYbIGFCMyMzRxc4GSFlJTVGOCkZOho9HT4hVCQ9KiJHKxwWKz8f/EABgBAQEBAQEAAAAAAAAAAAAAAAABAgME/8QAIBEBAQACAgIDAQEAAAAAAAAAAAECERIxAyETMkEiUf/aAAwDAQACEQMRAD8A+zUUUniMaFYIoZ5DrkW1wOlidFHHUnWxtfhQN0Uhu528aRY+qNQxH13Fj7gqwwsnzmf3Yf2qxc5F0eopHvWT5xN7sP7dHesnzib3Yf26c4aea7vO4+fGuXhmSJhgsRCpZm1eVkBVlAIKNHvFJ1KkqQDauI7ndqDfAYkWYWH/AFcw3q98I4UAJ/0uWBXizR3LF8x1Ar1neknzib3Yv26O9JPnE3uw/t05w08j3N9y20IJoS0yiBHlYomMlYASSzuysrxWnJ3kZztla6nXTlbeH2VOu0psVkiEEmGiiuJWMhZGZrmMx5QOWRo/9t+ew7rilIBGKnIIuCIkII6QRFqK7wxM6hlxMxU8+WLmNvk+mnOGmlRSPesnzib3Yf26O9ZPnE3uw/t05w0dopI4WT5xN7sP7dVWKdfFlD9UiAE9QeMAL6crUmcpp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j9B+b/GnsemorzPwx+g/N/jR8MfoPzf409j01FeZ+GP0H5v8AGj4Y/Qfm/wAaex6aivM/DH6D83+NVj7ss0kcQgsXNrmS9uu2UX+0U42m3qCQBc6AamkIj3wyvbwCMGW/+Vxwe3xBxW/E2YaBS1zgC4DTvvLC+QLkjv05LktzeMWFwCAK0K7yammRRRRVH//Z 

 

Well to my surprise Linux supports symbolic links. Very simply, a symbolic link allows you to create a shortcut, that is a path to a separate directory or file. A good example is my current Apache server that is installed on a 32 GB SD card. To access website folders, the path is /var/www/html. I want to store all my websites on an external drive (at this point I have like 15 GB remaining on the SD Card). So I have my web folders on an external /media/storage/ and a folder named test_site. I can create a link to test_site inside the html folder. This allows me to use the path /var/www/html/test_site/ and access that website as if the folder was stored on the SD card.

Here is how it's done in terminal

sudo ln -s /media/storage/test_site /var/www/html/test_site

Post a Comment

Previous Post Next Post