PDA

View Full Version : Distinguishing local/network folders in Nautilus



Hrod Beraht
26th October 2007, 02:11 AM
Is there an easy way to distinguish between a local folder and a mounted network folder in Nautilus?

For example, if I create a folder /home/me/foo, that folder foo is obviously local.
However, if I mount a networked folder to it, say, mount -t cifs //someserver/somefolder /home/me/foo, then foo is no longer a local folder.

I know I can do a mount command in a terminal to see if it's mounted. But is there an easy way to tell in Nautilus if the remote share is actually mounted? The folder icons look the same, whether the share is mounted or not (manually or via fstab).

Or am I looking at this in the wrong way? Is there a better way to mount the remote folder?

Bob

forkbomb
26th October 2007, 03:44 AM
Well in this case don't think so much of /home/me/foo as a directory so much as a mount point. You're right, it's a local directory, but you're using it as a mount point. So it's sort of local, sort of not. :p

I guess the easiest way to see if it's mounted is to try accessing it. If it's empty, then it's not mounted. :D

When doing remote shares, what I do is add a line to the /etc/fstab and then when I get my wireless interface up I just run mount -a (attempts to mount all shares in the fstab). It's a little slower on boot because the connection isn't up yet but it's not substantial.