Alias to folder on external hard drive disappears from sidebar when the hard drive is ejected
Try creating an alias on the desktop or a folder, and then either copying that or creating an alias to it in Finder's sidebar (that is, an alias to an alias).