How to Create a Symbolic Link to a Mounted Volume
Markus Schönhaber
ubuntu-users at list-post.mks-mail.de
Sun Feb 1 01:11:44 UTC 2009
Dom Incollingo:
> I mounted a home directory from another computer via sftp. The directory is
> mounted as:
>
> sftp://dji@linux/home/dji.
I doubt that it's mounted there. That's an URL you can, for example,
type into Nautilus' location bar to access this resource.
Type
mount
to see a list of what is mounted where.
> I tried to make a symbolic link to this directory by running the command
>
> ln -s sftp://dji@linux/home/dji anotherHome
>
> But the link that is created (anotherHome) is not usable. How can I create
> a symbolic link to a a mounted volume?
You can't create usable symlinks pointing to somewhere outside the
filesystem tree.
OTOH: if you use Gnome and did use Nautilus to access this URL, the gvfs
will by default make the root of the remote filesystem accessible trough
a directory below ~/.gvfs. You should be able to create a usable symlink
pointing there.
Out of curiosity: why do you want to do that?
Regards
mks
More information about the ubuntu-users
mailing list