Symlink to public folders

Dear Community,
I tried to create symlink to the frappe sites public folder files, with a folder in a new hard disk,as my home folder is running out of space,using below command

sudo ln -s /media/user/ERP/public/files /home/user/frappe-bench/sites/site.name/public/files

link is created,but server is showing file is missing.

“link is created,but server is showing file is missing”

What checks have you done - create and confirm files exist where expected?

frappe@ubuntu:~/frappe-bench$ mkdir oldir
frappe@ubuntu:~/frappe-bench$ mkdir newdir
frappe@ubuntu:~/frappe-bench$ ln -s /home/frappe/frappe-bench/newdir/ /home/frappe/frappe-bench/oldir/

confirm the link is there
frappe@ubuntu:~/frappe-bench$ ls -al oldir/
total 8
drwxrwxr-x 2 frappe frappe 4096 Nov 27 18:43 .
drwxr-xr-x 10 frappe frappe 4096 Nov 27 18:42 …
lrwxrwxrwx 1 frappe frappe 33 Nov 27 18:43 newdir → /home/frappe/frappe-bench/newdir/

create a test file in the original directory
frappe@ubuntu:~/frappe-bench$ touch oldir/oldfile
frappe@ubuntu:~/frappe-bench$ ls -al oldir/
total 8
drwxrwxr-x 2 frappe frappe 4096 Nov 27 18:45 .
drwxr-xr-x 10 frappe frappe 4096 Nov 27 18:42 …
lrwxrwxrwx 1 frappe frappe 33 Nov 27 18:43 newdir → /home/frappe/frappe-bench/newdir/
-rw-rw-r-- 1 frappe frappe 0 Nov 27 18:45 oldfile

frappe@ubuntu:~/frappe-bench$ ls -al newdir/
total 8
drwxrwxr-x 2 frappe frappe 4096 Nov 27 18:42 .
drwxr-xr-x 10 frappe frappe 4096 Nov 27 18:42 …

create a test file in the new directory
frappe@ubuntu:~/frappe-bench$ touch newdir/newfile
frappe@ubuntu:~/frappe-bench$ ls -al newdir/
total 8
drwxrwxr-x 2 frappe frappe 4096 Nov 27 18:46 .
drwxr-xr-x 10 frappe frappe 4096 Nov 27 18:42 …
-rw-rw-r-- 1 frappe frappe 0 Nov 27 18:46 newfile

newfile is present and accessible from oldir
frappe@ubuntu:~/frappe-bench$ ls -al oldir/newdir/
total 8
drwxrwxr-x 2 frappe frappe 4096 Nov 27 18:46 .
drwxr-xr-x 10 frappe frappe 4096 Nov 27 18:42 …
-rw-rw-r-- 1 frappe frappe 0 Nov 27 18:46 newfile

@clarkej

Thanks for the apt reply will test it out and let you know sir