# 神奇的光盘挂载目录
# Rocky
[root@rocky8 ~]# rpm -q autofs
package autofs is not installed
[root@rocky8 ~]# yum install -y autofs
[root@rocky8 ~]# rpm -q autofs
autofs-5.1.4-82.el8.x86_64
[root@rocky8 ~]# systemctl start autofs
[root@rocky8 ~]# systemctl status autofs
● autofs.service - Automounts filesystems on demand
Loaded: loaded (/usr/lib/systemd/system/autofs.service; disabled; vendor preset: disab>
Active: active (running) since Mon 2022-07-11 19:26:49 CST; 7s ago
[root@rocky8 ~]# systemctl enable --now autofs
Created symlink /etc/systemd/system/multi-user.target.wants/autofs.service → /usr/lib/systemd/system/autofs.service.
[root@rocky8 ~]# cd /misc
[root@rocky8 misc]# ls
[root@rocky8 misc]# cd cd #好神奇,是不?🤣🤣🤣🤣🤣🤣👏👏👏👏
[root@rocky8 cd]# ls
AppStream BaseOS EFI images isolinux LICENSE media.repo TRANS.TBL
# Ubuntu
[root@ubuntu2004 ~]# apt install -y autofs
/misc /etc/auto.misc
[root@ubuntu2004 ~]# systemctl status autofs.service
● autofs.service - Automounts filesystems on demand
Loaded: loaded (/lib/systemd/system/autofs.service; enabled; vendor preset: >
Active: active (running) since Mon 2022-07-11 19:31:48 CST; 9s ago
[root@ubuntu2004 ~]# cd /misc
[root@ubuntu2004 misc]# ls
[root@ubuntu2004 misc]# cd cd
[root@ubuntu2004 cd]# ls
boot casper dists EFI install isolinux md5sum.txt pool preseed ubuntu