Filesystem can't be auto mounted in /etc/fstab if mount point is symlink when system is booting.
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.