1 相对路径法
mount /dev/sr0 /misc/cd
mount 192.168.37.7:/data/nfsdir1 /misc/nfs
mount 192.168.37.17:/home/wang /home/wang
dirname:/misc
basename:cd,nfs
vim /etc/auto.master
dirname 子配置文件
/misc /etc/auto.misc
vim /etc/auto.misc
cd -fstype=iso9660,ro :/dev/sr0
nfs -fstype=nfs,rw 192.168.37.7:/data/nfsdir1
mount 192.168.37.7:/data/nfsdir1 /d1/d2/d3/nfs
dirname:/d1/d2/d3/
basename:nfs
vim /etc/auto.master
/d1/d2/d3 /etc/test
vim /etc/test
nfs -fstype=nfs,rw 192.168.37.7:/data/nfsdir1
mount 192.168.37.17:/home/wang /home/wang
dirname:/home
basename:wang
vim /etc/auto.master
/home /etc/auto.home
vim /etc/auto.home
wang -fstype=nfs,rw 192.168.37.17:/home/wang
2绝对路径法
mount 192.168.37.17:/home/wang /home/wang
vim /etc/auto.master
/- /etc/auto.test
vim /etc/auto.test
全路径(绝对路径) -fstype xxxx