Troubleshoot Linux VM boot issues due to fstab errors Stay organized with collections Save and categorize content based on your preferences.
Fstab (file system table) is a configuration file that is used to define howdisk partition, file system, and file share mounts in your Linux VM persistacross system reboots.
This document outlines multiple conditions where an incorrect fstabconfiguration may result in a boot problem and offers troubleshootingadvice to fix the issue.
A few of the common issues with fstab misconfiguration are listed below:
- Syntax error in
fstabconfiguration file - An incorrect UUID
- An entry exists for an unattached/unavailable device
- Deprecated mount options like
nobarrierfor the xfs file systemtype inSUSE orRHEL images.
Before you begin
- If you want to log serial port output in Cloud Logging, familiarize yourself withCloud Logging.
- If you haven't already, set upauthentication. Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloud
Install the Google Cloud CLI. After installation,initialize the Google Cloud CLI by running the following command:
gcloudinit
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
Note: If you installed the gcloud CLI previously, make sure you have the latest version by runninggcloud components update.- Set a default region and zone.
REST
To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI. After installation,initialize the Google Cloud CLI by running the following command:
gcloudinit
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
Note: If you installed the gcloud CLI previously, make sure you have the latest version by runninggcloud components update.For more information, seeAuthenticate for using REST in the Google Cloud authentication documentation.
Identify fstab issues
For boot issues, Google highly recommendeds that you check the boot logsin the Serial Console of the Linux VM. The VM goes into emergency modewith an error message hinting that the issue is with fstab.
[K[[1;31m TIME [0m] Timed out waiting for device dev-incorrect.device. [[1;33mDEPEND[0m] Dependency failed for /distribution. [[1;33mDEPEND[0m] Dependency failed for Local File Systems. ... Welcome to emergency mode! After logging in, type "journalctl -xb" to viewsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode. Give root password for maintenance (or type Control-D to continue)
As per the error message, there is dependency failure for the/distributionfile system. The dependency failure for a file system mount point will differbased on the file system names used.
Resolution
Use the following options to solve thefstab error in Linux VMs hostedin Google Cloud. You can resolve the issue faster using the serial consolethan using the manual method.
To use the following methods to resolve the fstab issue, you mustenable serial port access for your VM.
Option 1: Use the serial console to log into the VM in emergency mode
Log into the serial console of the VM from Google Cloud console.

In the current emergency mode, enter the root password to access your VM.
Use your favorite text editor to open the
fstabfile. Make thenecessary changes and save the changes to thefstabfile. In thefollowing example, thevieditor is used.vi /etc/fstab

In the previous example, the device for
/distributionis detached fromthe VM. Comment the line that references the file system or remove thefstab entry for/distributionmount point.Use
man fstabfor moredetails about the fstab configuration and syntax.Save the file and exit the editor. If you are using the
vieditor, useESC+:wq!to save and exit the editor.Resume the boot process by enteringreboot at the prompt.
After successfully fixing the issue, the VM boot process should completeand the login prompt appears in the serial console.
Verify you can log in to the VM again using SSH.
Option 2 - Using Single User mode in Serial Console
This option can be used if the root password is not set.
Prerequisite: TheGRUB_TIMEOUT parameter in the grub configuration filemust be set to a non-zero value. Usually this file is at/etc/default/grub, but on some earlier distributions, it might be locatedin a non-standard directory.
Go to the VM instances page in the Google Cloud console.Go to VM instances
Log into the serial console of the Virtual Machine from theGoogle Cloud console.

ClickRESET for virtual machine from Google Cloud Console.

In the serial console window, interrupt the boot process by clicking thearrow key to pause in the grub screen or menu.
In the list of kernels in the grub boot loader screen, choose the kerneland press
eon the keyboard.
Add the
rd.breakparameter at the end of the kernel line and pressctrl+x. This helps in booting the VM into single user mode.
Note: The
rd.breakparameter works for RHEL, CENTOS, Oracle Linux,SUSE Operating Systems. This parameter isn't a persistent entryso no changes are required after boot. For Ubuntu 18.04, 20.04and 22.04 LTS, you can addsystemd.unit=rescue.targetto boot intorescue mode which is similar to single user mode.Mount the root file system in read write mode.
Analyze, make necessary change and save
fstabfile. Useman fstabfor moredetails about configuration and syntax. Use your favorite text editor toopen thefstabfile. In the below example, the vi editor is used.vi /etc/fstab

In this example, the device for
/distributionis detached from the VM,so comment the line or remove the fstab entry for the/distributionmount point.Save the file and exit from the editor. If you are using the vi editor, then use
ESC+:wq!to save and exit from fstab.Resume the boot process by entering
rebootat the prompt.After successfully fixing the issue, the VM boot process should complete andyou should see the login prompt in the serial console.
Verify you can log in to the VM using SSH.
Option 3 - Rescue the VM
This option can be used if the root password is not set or if you can't usesingle user mode.
For more information, seeRescue an inaccessible VM.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.