Skip to content

Linux mount errors after reboot: Complete Fix Guide

Linux mount errors after reboot can prevent a server from accessing important disks, backup storage, or application files. The problem may be caused by an incorrect /etc/fstab entry, a missing disk, a changed filesystem UUID, or filesystem errors. Checking the system logs and verifying the mount configuration can help identify the cause before making changes to a production server.

When a mount fails, applications that depend on that storage may also stop working. For example, a website may be unable to access uploaded files, or a backup job may fail because its destination directory is unavailable.

The safest approach is to identify the failed mount first, check the underlying device, and correct the configuration only after confirming what went wrong.

1. Check Which Mount Failed

Start by checking the failed systemd units:

systemctl --failed

Look for a failed mount unit, such as mnt-backup.mount. You can inspect its status with:

systemctl status mnt-backup.mount

Replace the unit name with the one shown on your server.

To review mount-related messages from the current boot, run:

journalctl -b -p warning

For more targeted output, search the current boot log for mount failures:

journalctl -b | grep -iE 'mount|fstab|UUID|dependency failed'

These commands can reveal whether the failure involves a missing device, a configuration error, or a filesystem problem.

2. Inspect the /etc/fstab Configuration

Linux commonly uses /etc/fstab to define filesystems that should be mounted during startup.

Display the file:

cat /etc/fstab

A typical entry looks like this:

UUID=11111111-2222-3333-4444-555555555555 /mnt/backup ext4 defaults,nofail 0 2

The fields specify the device identifier, mount point, filesystem type, mount options, and filesystem-check settings.

Check for these common mistakes:

  • A UUID that no longer matches the actual disk.
  • A mount point that does not exist.
  • An incorrect filesystem type, such as specifying ext4 for an XFS filesystem.
  • Missing or misplaced fields.
  • An unavailable network filesystem configured as a required boot dependency.

Before editing the file, create a backup:

cp -a /etc/fstab /etc/fstab.backup

Edit the configuration with a text editor, for example:

nano /etc/fstab

Change only the entry you have verified is incorrect.

3. Verify the Disk and Filesystem UUID

A disk may be present while the UUID recorded in /etc/fstab is incorrect.

List block devices and their filesystems:

lsblk -f

To display filesystem UUIDs, run:

blkid

Compare the UUID in /etc/fstab with the UUID reported for the intended device.

For example, if the configuration refers to an old UUID but the actual disk has a different one, update the entry only after confirming that both refer to the same intended filesystem.

Do not copy a UUID from another disk or generate a new filesystem UUID as a quick fix. That can cause Linux to mount the wrong device or fail to locate the required filesystem.

If the expected disk is missing from both commands, investigate the virtual disk configuration, storage attachment, or provider-side disk status before changing the mount entry.

4. Confirm That the Mount Point Exists

The directory used as a mount point must exist.

Check the path:

ls -ld /mnt/backup

If the directory is missing, create it after confirming that the path is correct:

mkdir -p /mnt/backup

Then retry the mount:

mount /mnt/backup

If the command returns an error, read the message carefully rather than repeatedly running the same command. It may indicate a wrong device, unsupported filesystem, invalid option, or filesystem issue.

Important: Mounting a filesystem over a directory hides the directory’s existing contents until the filesystem is unmounted. Verify that the mount point is intended and that no important files are being stored underneath it.

5. Test /etc/fstab Before Rebooting Again

After correcting the configuration, test the entries:

findmnt --verify --verbose

This checks the mount configuration for detectable problems. It does not guarantee that every disk or network resource will be available during the next boot.

You can also ask Linux to mount filesystems listed in /etc/fstab that are not currently mounted:

mount -a

Run this after reviewing the file and confirming the target devices. If a mount fails, inspect the error and system logs before proceeding.

Check the current mounts afterward:

findmnt

If the configuration is valid and the required storage is available, test the specific mount again before considering another reboot.

6. Investigate Filesystem Errors Carefully

If the disk exists and the configuration looks correct, the filesystem itself may have errors.

First identify the device and filesystem type:

lsblk -f

Check the system log for filesystem-related messages:

journalctl -b | grep -iE 'filesystem|ext4|xfs|I/O error|corrupt'

Do not run filesystem repair commands on a mounted, active filesystem. Repair procedures differ between filesystems: for example, e2fsck is used for ext2/ext3/ext4, while XFS has its own tools and recovery procedures.

Before repairing a filesystem:

  1. Confirm the correct device.
  2. Ensure important data is backed up, if possible.
  3. Arrange a maintenance window or use a suitable rescue environment.
  4. Follow the repair procedure for the actual filesystem type.

Avoid running fsck blindly against a production disk. A wrong device or inappropriate repair method can make data recovery more difficult.

7. Handle Disks That Are Not Always Available at Boot

Some VPS environments, external storage systems, and backup volumes may not be available immediately when Linux starts.

If the disk is optional and the system should boot even when it is absent, the nofail mount option may be appropriate.

For example:

UUID=11111111-2222-3333-4444-555555555555 /mnt/backup ext4 defaults,nofail 0 2

Use nofail only when the filesystem is genuinely optional. It can allow startup to continue without the mount, but applications may then write files into the underlying directory instead of the intended disk.

For network mounts, investigate network availability, DNS, credentials, and the appropriate systemd mount dependencies. Do not apply local-disk options indiscriminately to NFS or other network filesystems.

8. Check Whether the Mount Is Required by an Application

A mount may succeed, yet a website, database, or backup service may still fail because it started before the storage became available.

Check the application’s service status:

systemctl status SERVICE_NAME

Replace SERVICE_NAME with the actual service, such as nginx or a backup service.

Review its logs:

journalctl -u SERVICE_NAME -b

If the application requires a specific mount, its systemd service may need an appropriate dependency on that mount. Configure this carefully, because the correct dependency depends on the service and mount point.

After changing a systemd unit file, reload the configuration:

systemctl daemon-reload

Then test the service and confirm that the expected storage is mounted before allowing normal workloads to resume.

9. Confirm the Fix

Once the cause has been addressed, run these checks:

systemctl --failed
findmnt /mnt/backup
df -h

Replace /mnt/backup with the actual mount point.

Verify that the intended device is mounted, the expected capacity is available, and any dependent applications can access their files. A successful mount command alone does not prove that the application is operating correctly.

Do not reboot a production server just to test the change unless you have a recovery plan and have confirmed that the required storage and services can safely start again.

Linux mount errors after a reboot usually require checking the failed mount unit, reviewing /etc/fstab, confirming filesystem UUIDs, and verifying that the target disk is available. Filesystem repair or service dependency changes may be necessary in more complicated cases.

On a production VPS, make configuration backups before editing system files and avoid running repair commands against mounted disks. Identifying the exact failure from system logs is safer than making several changes at once.

For workloads that depend on reliable disk access, review your storage requirements and the available ServerNext VPS hosting options before planning changes to your server setup.