LFCS · Question #325
Which command will mount the accounting share hosted on the Windows server with the NetBIOS name joeserv.
The correct answer is D. mount -t smbfs //joeserv/accounting /mnt. To mount a Windows SMB share named 'accounting' from a server named 'joeserv' onto a Linux mount point '/mnt', the correct mount command syntax is mount -t smbfs //joeserv/accounting /mnt.
Question
Options
- Amount -t smbfs -h joeserv \accounting /mnt
- Bmount -t smbfs -h joeserv //accounting /mnt
- Cmount -t smbfs \joeserv\accounting /mnt
- Dmount -t smbfs //joeserv/accounting /mnt
How the community answered
(51 responses)- A2% (1)
- B6% (3)
- C2% (1)
- D90% (46)
Why each option
To mount a Windows SMB share named 'accounting' from a server named 'joeserv' onto a Linux mount point '/mnt', the correct `mount` command syntax is `mount -t smbfs //joeserv/accounting /mnt`.
This command uses `-h` which is not the correct parameter for specifying the host in `mount -t smbfs` for a remote share, and uses `\accounting` which is incorrect path syntax for Linux mount commands.
This command uses `-h` which is incorrect for specifying the host, and `//accounting` without the server name directly preceding it is an incomplete remote path specification.
This command uses `\joeserv\accounting` which is Windows-style path syntax and is not correctly interpreted by the Linux `mount` command for remote SMB/CIFS shares; it requires forward slashes for the remote path.
The `mount` command with `-t smbfs` (or `-t cifs`) requires the remote share path to be specified using the `//server/share` format, which is correctly used in this option.
Concept tested: Mounting SMB/CIFS shares in Linux
Source: https://www.samba.org/samba/docs/current/manpages/mount.cifs.8.html
Topics
Community Discussion
No community discussion yet for this question.