I have a mounted partition with a lot of data on it, much of it is useless, but I want to backup what is still used. I know that everything that is still in use has a symlink pointing to it, for example: /var/www -> /mnt/md1/var/www.
I'd like to get a list of symlinks pointing to something under /mnt/md1.
Everything I find from my searches are about finding the symlinks pointing to a known destination, the difference here is that I don't know their destinations, only that they are somewhere under /mnt/md1
Maybe it would be easier if I unmount it and somehow find a list of broken symlinks?