Chrome OS Files app showing Linux mount

How to mount Linux container files in the Chrome OS Files app for Project Crostini

We already know that Google is working on a simple, behind-the-scenes method to show files from a Linux container on Chrome OS. Until that’s ready though, how can you see or move files between Chrome OS and Linux if you’ve enabled Project Crostini? It’s pretty easy and is just a manual implementation of what Google plans to bring to the Files app on a Chromebook.

I ran through the steps in about five minutes and it works perfectly. Not only can I see the files in the Linux container on my Pixelbook in the Chrome OS Files app, but I can move files between Linux and Chrome OS: I dragged the file — a Python script I used with Twilio to build a voicemail server on a Raspberry Pi for the IoT Podcast — from my Chrome OS Downloads folder to my Linux Downloads folder:

Files moved from Chrome OS to Linux

The “manual implementation” link above contains the steps to mount Linux files to the Chrome OS Files app but I’m replicating them here if you need them:

  1. Set a password for your user account inside Linux by running sudo passwd $USER. Do not use your Google password.
  2. Install openssh-server: sudo apt-get install openssh-server
  3. Run the command hostname -I to get the IP address for your Linux VM.
  4. Install the Secure Shell app and open it.
  5. Type in your username and the Linux IP address.
  6. Click SFTP Mount and respond to the prompts to confirm the connection and enter your password.
  7. Your Linux machine will appear in the sidebar of the Files app.

This is really no different from how I used to SFTP mount a Raspberry Pi to my Pixelbook for remotely programming in Python on the Pi. Now that Project Crostini officially brings Linux app support to Chrome OS on the Pixelbook, at least in beta form, I don’t need to do that any more. I’ve since installed the Linux versions of Eclipse, Android Studio and Sublime Text, to name a few, on the Pixelbook.

Keep in mind that the SFTP mount is not persistent when using Secure Shell: You’ll need to open both Terminal and Secure Shell to remount the Linux files after each reboot, although Secure Shell will save your username and IP address to save some time.

About the author

Kevin C. Tofel has covered technology since 2004. He's used ChromeOS since Google debuted the CR-48 in 2010, reviewing dozens of Chromebooks since then. He worked for Google's Chrome Enterprise team from 2016 to 2017, supporting the launch of Android app support. In his free time, he uses Chromebooks to learn software engineering at Launch School. In 2019, Kevin joined the CS Curriculum Committee at his local community college.

Liked this content? Subscribe for the free, weekly newsletter

5 thoughts on “How to mount Linux container files in the Chrome OS Files app for Project Crostini

    1. Thanks, Joe! That IP is for the Linux KVM / container, not my ISP, router or devices, so it’s all good. ?

  1. I get stuck at “Click SFTP Mount and respond to the prompts to confirm the connection and enter your password.”
    there seems no such button

    1. Linux file integration is now native in the Chrome OS Files app, so you don’t need this method any longer.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top