Accessing media and gvfs mounts from the command line in Ubuntu Linux

Most modern Ubuntu installations use the Gnome Virtual File System (gvfs) to automatically mount network shares, FTP locations, etc. These appear as icons on the users desktop, but not as actual mount points.

Take one of my icons for example:

(image ‘music-on-diskstation’ missing)

If you run mount from a terminal, you’ll notice that it doesn’t appear:

xxx@xxx:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,user_xattr,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/xxx/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=xxx)

As it turns out, gvfs mounts are mounted by the gvfs-duse-daemon into the /home/xxx/.gvfs folder. Let’s take a look:

xxx@xxx:~/.gvfs$ ls -l
total 2
drwx------ 1 xxx xxx    0 2011-03-05 23:18 music on diskstation

So there it is.

Other locations, like a USB flash drive, are likely actually mounted under /media:

xxx@xxx:~$ mount
/dev/sdb1 on /media/1721-0115 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)

Questions, comments, and feedback are welcome and appreciated.


, , , ,