Filesystem can't be auto mounted in /etc/fstab if mount point is symlink when system is booting.

Solution Verified - Updated -

Issue

  • Filesystem can't be auto mounted in /etc/fstab if the mount point is symlink when the system is booting.
# ln -s   /test1   /test2
# vim /etc/fstab
/dev/mapper/test-test  /test2  ext4 defaults 0 0
  • Error is as below when the system is booting.
[FAILED] Failed to mount /test2
See 'systemctl status test2.mount' for details

Welcome to emergGive root password for maintenance
(or type Control-D to continue):
# systemctl status  test2.mount
test2.mount - /test2
Loaded: loaded(/etc/fstab;bad;vendor preset:disabled)
  Active: failed (Result:resources)
  Where: /test2
     Docs: man: fstab(5)
               man: systemd-fstab-generator(8)
Dec 23 11:22:44  localhost systemd[1]: test2.mount: Mount on symlink /test2 not allowed
Dec 23 11:22:44  localhost systemd[1]: test2.mount failed to run 'mount' task: Too many levels of symbolic links
Dec 23 11:22:44  localhost systemd[1]: Failed to mount /test2
Dec 23 11:22:44  localhost systemd[1]: Unit test2.mount entered failed state
Dec 23 11:22:44  localhost systemd[1]: Mounting /test2

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content