Which of the following is a valid location in the automount configuration, when a Windows share needs to be made available to the system?



A. \\server\sharename
B. ://server/sharename
C. server:/sharename
D. :server/sharename
E. \\\\server\\sharename

題解

根據autofs提供的手冊:

kernel    -ro,soft,intr       ftp.kernel.org:/pub/linux
boot      -fstype=ext2        :/dev/hda1
windoze   -fstype=smbfs       ://windoze/c
removable -fstype=ext2        :/dev/hdd
cd        -fstype=iso9660,ro  :/dev/hdc
floppy    -fstype=auto        :/dev/fd0
server    -rw,hard,intr       / -ro myserver.me.org:/ \
                              /usr myserver.me.org:/usr \
                              /home myserver.me.org:/home

Windows的檔案分享來源(windoze)應使用「://server/sharename」這樣的格式來定位。