.gvfs and why does this happen?

NoOp glgxg at sbcglobal.net
Sat Aug 1 01:58:00 UTC 2009


On 07/31/2009 05:06 PM, Jay Ridgley wrote:
> Folks,
> 
> I have a situation that I do not understand. I am connected to a remote 
> system via ssh. When I try to list the directory /home/user/.gvfs the 
> results are not consistent. See below:
> 
> cdjsys at ursa:~$ ls -la .gvfs
> total 8
> drwx------  2 cdjsys cdjsys 4096 2008-06-07 07:08 .
> drwxr-xr-x 36 cdjsys cdjsys 4096 2009-07-29 10:22 ..

That shows no connection:
$ ls -la ~/.gvfs
total 12
dr-x------   2 gg2xp gg2xp     0 2009-07-31 09:40 .
drwxrwxr-x 206 gg2xp gg2xp 12288 2009-07-31 18:13 ..
No connection.

$ ls -la ~/.gvfs
total 16
dr-x------   3 gg2xp gg2xp     0 2009-07-31 09:40 .
drwxrwxr-x 206 gg2xp gg2xp 12288 2009-07-31 18:13 ..
drwx------   1 gg2xp gg2xp  4096 2009-07-31 12:35 sftp on 192.168.4.104
With connection (via Nautilus/sftp).

$ ls -la ~/gvfs
ls: cannot access /home/gg2xp/gvfs: No such file or directory
And of course with just an ssh connection to the remote. You see,
192.168.4.104 is not mounted and doesn't use .gvfs so it wouldn't show up.

http://packages.ubunut.com/jaunty/gvfs-backends
http://en.wikipedia.org/wiki/GVFS

....
> 
> Yet If I am physically logged on to the machine (not via ssh) the error 
> message is not issued. This is causing problems with a network backup 
> scheme I am attempting to implement.
> 
> What is the cause and is there a fix?
> 
> Regards,
> Jay

Maybe what you are looking for is more along the line of sshfs?

$ sshfs ubuntu at 192.168.4.104:/home/ubuntu/Examples ~/testsshfs
ubuntu at 192.168.4.104's password:
$ ls -la ~/testsshfs
total 10812
drwxr-xr-x   1 root  root     4096 2008-08-19 17:36 .
drwxrwxr-x 207 gg2xp gg2xp   12288 2009-07-31 18:47 ..
-rw-r--r--   1 root  root   184905 2008-04-10 08:50 case_Contact.pdf
-rw-r--r--   1 root  root    56530 2008-04-10 08:50
case_howard_county_library.pdf
-rw-r--r--   1 root  root   363503 2008-04-10 08:50 case_KRUU.pdf
-rw-r--r--   1 root  root    57270 2008-04-10 08:50
case_OaklandUniversity.pdf
-rw-r--r--   1 root  root    55698 2008-04-10 08:50
case_oxford_archaeology.pdf
-rw-r--r--   1 root  root   133005 2008-04-10 08:50 case_Skegness.pdf
-rw-r--r--   1 root  root   332511 2008-04-10 08:50
case_ubuntu_johnhopkins_v2.pdf
-rw-r--r--   1 root  root    46799 2008-04-10 08:50
case_ubuntu_locatrix_v1.pdf
-rw-r--r--   1 root  root   292954 2008-04-10 08:50 case_Wellcome.pdf
-rw-r--r--   1 root  root  3576296 2008-04-10 08:50 Experience ubuntu.ogg
-rw-r--r--   1 root  root   229674 2008-04-10 08:50 fables_01_01_aesop.spx
-rw-r--r--   1 root  root   840814 2008-04-10 08:50 gimp-ubuntu-splash.xcf
-rw-r--r--   1 root  root  1206099 2008-04-10 08:50 kubuntu-leaflet.png
drwxr-xr-x   1 root  root     4096 2008-08-19 17:36 logos
-rw-r--r--   1 root  root   126991 2008-04-10 08:50 oo-about-these-files.odt
-rw-r--r--   1 root  root    27835 2008-04-10 08:50 oo-about-ubuntu-ru.rtf
-rw-r--r--   1 root  root   159744 2008-04-10 08:50 oo-derivatives.doc
-rw-r--r--   1 root  root    27837 2008-04-10 08:50 oo-maxwell.odt
-rw-r--r--   1 root  root    76635 2008-04-10 08:50 oo-payment-schedule.ods
-rw-r--r--   1 root  root  1797271 2008-04-10 08:50
oo-presenting-kubuntu.odp
-rw-r--r--   1 root  root   501054 2008-04-10 08:50 oo-presenting-ubuntu.odp
-rw-r--r--   1 root  root    98816 2008-04-10 08:50 oo-trig.xls
-rw-r--r--   1 root  root   453764 2008-04-10 08:50 oo-welcome.odt
-rw-r--r--   1 root  root   358374 2008-04-10 08:50 ubuntu Sax.ogg

You see, I've mounted the remotes ~/Example folder on my local
~/testsshfs folder - very similar to the way that Nautilus uses ~/.gvfs

And unmounting:
$ fusermount -u ~/testsshfs










More information about the ubuntu-users mailing list