How to Disable the Ubuntu ‘Gvfs-daemon’ Service

The GNOME Virtual File System

In Ubuntu desktop environments, the gvfs-daemon (GNOME Virtual File System) is a crucial background service that handles mounting and accessing various types of filesystems in user space. Whenever you plug in a USB drive, connect to an FTP server, access an SMB (Windows) network share, or plug in your smartphone via MTP to transfer photos, the GVFS daemon is the engine that actually allows your file manager to browse those remote or removable files seamlessly as if they were local folders.

While this daemon is absolutely essential for a standard desktop user who frequently plugs in flash drives or connects to network storage, it is entirely unnecessary on a stripped-down, specialized server or a virtual machine where you only interact via the command line. If you manage all your mounts manually via /etc/fstab and never use graphical file managers to access network shares, having GVFS running in the background simply consumes RAM and adds unnecessary complexity. You can disable it if you do not rely on automatic user-space mounts.

How to Disable the Gvfs Daemon

Because GVFS is heavily integrated into the desktop environment and often launched on-demand via D-Bus when a user logs in, simply trying to stop it with systemctl is usually ineffective. The most reliable method is to prevent the executable from running.

Warning: Disabling GVFS will break your ability to access network shares, smartphones, and automatically mounted USB drives through your graphical file manager.

  1. Open your Ubuntu Terminal.
  2. To prevent the daemon from launching, you can remove its execute permissions. Run the following command:
sudo chmod -x /usr/libexec/gvfsd

(Note: On older Ubuntu versions, the path might be /usr/lib/gvfs/gvfsd).

  1. GVFS relies on several helper daemons for specific protocols (like gvfsd-smb for Windows shares or gvfsd-mtp for phones). You can disable the entire suite by removing the execute permission from all of them:
sudo chmod -x /usr/libexec/gvfsd-*
  1. Restart your computer (or log out and back in).

Your Ubuntu system will no longer launch the GNOME Virtual File System components, saving memory on systems that don’t require graphical network browsing.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.