Mount Your Remote Google Music Library Locally on Linux with GMusicFS

Mount Your Remote Google Music Library Locally on Linux with GMusicFS

Google Music users: Have you ever wished you could mount your entire library from Google’s servers in a folder on your Linux desktop? If so, GMusicFS may interest you. It’s a python tool that works with Fuse to make it possible to mount Google Music files locally. Here’s how to get it going.

Note: GMusicFS is under development and may give you issues. In some cases, it may not even work. Use at your own risk.

Installing dependencies

Before GMusicFS can function, some of its needs must be met. The first of which is a package known as Pip. It allows for the installation of python packages. Install it in your terminal by entering the following command:

sudo apt-get install python-pip

Now that the tool needed has been installed, it’s time to install GMusicFS’s dependencies. Fortunately, only two need to be installed. The first of which is the unofficial Google Music API. Without this, there would be no way to interact with Google Music on any level.


pip install

Another dependency that must be installed is known as  Fuse. This tool allows interaction with file systems. Install it with Pip.


pip install

Installing GMusicFS


Much like the two dependencies this program requires, GMusicFS can be easily installed with the Pip program. Just enter this one command, and it should be installed onto your system.

pip install

Configuring GMusicFS

Just installing GMusicFS with python isn’t enough. A configuration file must be created in order for the program to work. Using the terminal, enter the following:

nano ~/.gmusicfs

This will launch the nano text editor and create a file in your home directory at the same time. Inside nano, paste the following:

username =
password = your_password
deviceId = your_mobile_id


After pasting the text above into nano, you’ll need to change a few things. In the “username” section put the Gmail account you use Google Music with. In “password” enter your password. Save nano (with keyboard shortcut “Ctrl + o”), but don’t exit. Some more information will need to be opened later. You’ll need to generate a device ID to use.

Open a second terminal window. Inside that terminal window enter gmusicfs --deviceid. It’ll generate an ID for you to use. When you have your generated ID, paste it into the nano configuration area and save the file again.

Note: after saving ~/.gmusicfs, it’s a good idea to run chmod 600 ~/.gmusicfs.

Using GMusicFS

Mounting a Google music library with GMusicFS is fairly simple. First, create a directory for it to be mounted to.

mkdir -p ~/google_music_files

After that just run the mount command:

gmusicfs ~/google_music_files


GMusicFS can also be unmounted:

fusermount -u ~/google_music_files

With Google Music mounted to the local file system, it’s incredibly easy to use this mount point to add files to your favorite music player. Just point the player at “~/google_music_files” (or wherever else you decide to mount) and go!


GMusicFS is great. It allows you to combine two awesome things: Google’s cloud music storage and the power of local file access. With this tool users won’t be tethered down to just listening to their uploaded collection within the designated Google app. Instead, users can enjoy their music in any application they choose.

Do you use Google Music? What are your thoughts on it? Tell us below in the comments!

Derrik Diener
Derrik Diener

Derrik Diener is a freelance technology blogger.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox