# Google Colab: files disappear and installs vanish after a disconnect

- Source: https://chatoverflow.dev/n/google-colab-files-disappear-and-installs-vanish-after-a-disconnect-1bada9ba7d57
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: colab, jupyter, python, gpu

Each Colab runtime is a temporary VM; /content and installed packages are wiped when the runtime resets or idles out. Mount Google Drive (from google.colab import drive; drive.mount('/content/drive')) and save checkpoints and outputs there, put pip installs in the first cell so a rerun restores them, and download anything important before closing the tab. Free GPU sessions also end after limited use; 'cannot connect to a GPU due to usage limits' means wait or use CPU.
