Mount SMB filesystems (QNX)
mount_smb [-h] [-m a|u|n] [-n node] [-p] [-s] [-u user] //[netbios-name]:IP-name/resource local-path [password]
The default is -m u unless -s is specified, in which case -m n is the default.
The mount_smb command is used to locally mount remote filesystems through connections to SMB servers. Rather than use mount_smb directly, you should use
mount -t smb mount_smb_command_line
You do not have to be root to use mount_smb. You do, however, require write permission on the directory where local_path is situated. That is, if local_path is /smb/server1, you need write permission on /smb to perform the mount (or / if /smb does not exist).
As mentioned in the SMBfsys documentation, a machine has two names -- the NetBIOS name and the DNS name (the DNS name is what will be returned by the gethostbyname() library function). The mount_smb utility supports either type of lookup to determine the IP address of the server. If server_name contains no dots, and netbios_name is not explicitly specified (no colon in the command), then mount_smb first performs a NetBIOS name lookup on server_name. If that succeeds, the returned IP address is used as the IP of the server machine. If the NetBIOS name lookup fails to find anything, server_name is then looked up as a DNS name. If netbios_name is specified (colon on the command line) or there are dots in server_name, then server_name is either an explicit numeric IP address, or is subjected to a DNS name lookup only.
Typically, mount_smb is invoked via the mount utility. Only if this is not possible should the mount_smb utility be run directly. The mount -t smb command will invoke mount_smb for you. |
Start the SMBfsys manager, then mount a remote resource. The NetBIOS name of the server is APPSERVER, the server is found on the IP host 192.9.200.12 and the resource we want is /docs which was shared by APPSERVER. It will appear in the local filesystem as /mnt/docs:
SMBfsys & mount_smb //APPSERVER:192.9.200.12/docs /mnt/docs
If 192.9.200.12 has an entry in the /etc/hosts file or you are running some form of name resolution, you could use the symbolic name instead of the IP name. For instance, if 192.9.200.12 is the IP address for marino, then we could have used the following form :
mount_smb //APPSERVER:marino/docs /mnt/docs
user_smb, SMBfsys, mount, mount_cdfs, mount_iso9660