Ubuntu: Mount smb / nfs - Mount commands explained
Related Videos: nfs mounting (May 2024).
On Ubuntu you can mount drives with the mount command. In this practical tip, we explain what lies behind the commands mount smb / nfs.
Ubuntu: mount smb explained
Smb is the so-called "Server Message Block" protocol that provides access to files or printers over the network. With the mount command you can integrate this access into your Ubuntu system. However, this protocol is no longer maintained today and should therefore no longer be used.
- From Ubuntu version 12.10 it was also taken from the official package sources.
- The successor is the so-called "cifs" protocol.
- With the command "sudo mount -t cifs //" IP address of the share "/" Name of the share "/ mnt -o user =" username ", domain =" domain "" you can share your share on Ubuntu integrated.
Ubuntu: mount nfs explained
With the "Network File System" you can also integrate network or Internet shares into your Ubuntu file system. For security reasons, however, you should restrict yourself to the local network. To mount an NFS share:
- Open a new terminal with [CTRL] + [ALT] + [T].
- Install the NFS system with "sudo apt-get install nfs-common".
- Go to the media directory with "cd / media" and create a new folder with "sudo mkdir" name of the share ".
- Finally, you can integrate the share with "sudo mount" IP address of the share ": /" Path of the share "/ media /" Name of the share "".
We have summarized the ten most important Ubuntu commands for you in our next article.