How to mount a remote folder in ubuntu
If you are someone who needs to access remote folders like FTP, Samba, SSH or any other remote folders a lot then Ubuntu and many other Linux distributions have a built-in and simple way to mount them right in the file browser. Sure there are a lot of FTP and other clients to access these remote folders, but launching them and logging in each and every time is a bit clunky and time-consuming. So, if you want to be productive then mounting those remote folders right in Ubuntu is that way to go. Here is how you can do it.
Mount Remote Folders in Ubuntu
Mounting remote folders in Ubuntu is a pretty easy and straightforward. To start off, open up the File Browser using the shortcut on the Launcher or by searching for it in the Dash. Once opened, click on the option “Connect to Server” from the left navigation pane.
The above action will open the “Connect to Server” window. Here, enter your remote folder address and click on the connect button. In my case, I’m connecting to an SFTP server. So I entered the remote address as following.
Note: if you want to connect to remote folders that use, FTP, Samba, etc. then you need to change the address format accordingly. For instance, you can use ssh://192.168.0.100 for SSH, smb://foo.example.com for Samba, etc.
As soon as you click on the Connect button, Ubuntu may show you that it can’t verify the identity of the remote server or folder. Just click on the button “LogIn Anyway” to continue.
After clicking on the LogIn Anyway button, Ubuntu will ask for the Password, if any. Enter the password and click on the button “Connect.” By default, Ubuntu selects the checkbox “Remember password until logout.” If you log into this remote folder frequently then you might want to select the radio button “Remember forever” so that you don’t have to enter the password each and every time.
As soon as you click on the Connect button, you will be logged into the remote folder. You can access all the contents of the remote folder directly from Ubuntu file browser.
Also, if you are going to use this remote folder frequently then you can create a bookmark so that you can open the remote folder with just a click. To do that, right-click on the remote drive in the left pane and then select the option “Add Bookmark” and you are good to go.
That’s all there is to do and it is that simple to mount remote folders like FTP, SFTP, SSH, WebDEV, Samba, etc. directly in Ubuntu file manager.
Do comment below sharing your thoughts and experiences about using the above method to mount remote folders in Ubuntu.
How to mount a remote directory using SSH to be available same as if it is a local directory?
7 Answers 7
First install the module:
Load it to kernel:
Setting permissions (Ubuntu versions remoteDir .
Now I ran the command to mount it (mount on home):
Now it should be mounted:
Configure ssh key-based authentication
Generate key pair on the local host.
Accept all sugestions with enter key.
Copy public key to the remote host:
Install sshfs
Mount remote directory
Don’t try to add remote fs to /etc/fstab
Or don’t try to mount shares via /etc/rc.local .
In both cases it won’t work as the network is not available when init reads /etc/fstab.
Install AutoFS
Edit /etc/auto.master
Comment out the following lines
Edit /etc/auto.sshfs
Remote user name is obligatory.
Start autofs in debug mode
Observe logs of the remote ssh server
Check content of the local directory
You should see contents of the remote directory
Start autofs in normal mode
Stop AutoFS running in debug mode with CTRL-C .
Start AutoFS in normal mode
Enjoy
(Tested on Ubuntu 14.04)
Based on my experiments, explicitly creating the fuse group and adding your user to it is NOT required to mount ssh file system.
To summarize, here are the steps copied from this page:
- Install sshfs
$ sudo apt-get install sshfs
2.Create local mount point
3.Mount remote folder /remote/path to /home/johndoe/sshfs-path/
$ sshfs [email protected]:/remote/path /home/johndoe/sshfs-path/
- And finally, to umount .
$ fusermount -u /home/johndoe/sshfs-path/
sudo apt-get install sshfs
Although it is not answering your question exactly but I just wanted to mention that you can achieve the same goal using “sftp” as well. Just inside your file manager address bar type this command:
I would like to warn that, it seems that by default only the user which set up the mount can access the remote directory.
I set up a remote directory, and create a crontab with sudo crontab -e . Later I found out the backup file didn’t write the remote directory at all. Then I found out that I could not cd into the remote disk as root ! So eventually I create the same task with crontab -e and everything works as I expected.
An easy way to run sshfs mounts at startup is also by adding it to the root (or another user’s) crontab, like this:
And if you need to add a delay, you can use:
Not the answer you’re looking for? Browse other questions tagged mount ssh sshfs or ask your own question.
Linked
Related
Hot Network Questions
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
- Blog
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.7.39017
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Samba is the standard Windows interoperability suite of programs for the Unix and Linux operating systems. Samba server uses SMB/CIFS protocol for the secure, stable and file/printer sharing.
This tutorial will help you to mount remote samba share to your Linux system.
Mounting Samba Share on Unix and Linux
Follow the step by step guide for the mounting of remote samba share on Ubuntu and Debian system. Also enables to auto mount shared drive even after system reboot.
- Step 1 – You need to install package cifs-utils on your system. Run the following command on the terminal for the installation.
- Step 2 – After that create a directory to mount the share drive.
- Step 3 – Now create a credentials file to your system. Make this as a hidden file using dot (.) for security purpose. It’s good to create it in your home directory.
Set the samba username and password to above file.
Step 4 – Use the following command to mount remote samba share on a Linux system.
But the manually mounted file system will not remain mounted after a system reboot. To mount samba share automatically after system reboot, complete next step.
Step 5 –You can make add the configuration to /etc/fstab file to auto mount remote share on system boot.
Edit the below configuration file in your favorite text editor:
Add the line at end of the file as follows. Change values as per yours.
Conclusion
In this tutorial, you have learned to mount remote samba share on Unix like system. Also enabled to mount remote share on system boot.
The main purpose of writing this article is to provide a step-by-step guide on how to mount remote Linux file system using SSHFS client over SSH.
This article is useful for those users and system administrators who want to mount remote file system on their local systems for whatever purposes. We have practically tested by installing SSHFS client on one of our Linux system and successfully mounted remote file systems.
Before we go further installation let’s understand about SSHFS and how it works.
Sshfs Mount Remote Linux Filesystem or Directory
What Is SSHFS?
SSHFS stands for (Secure SHell FileSystem) client that enable us to mount remote filesystem and interact with remote directories and files on a local machine using SSH File Transfer Protocol (SFTP).
SFTP is a secure file transfer protocol that provides file access, file transfer and file management features over Secure Shell protocol. Because SSH uses encryption while transferring files over the network from one computer to another computer and SSHFS comes with built-in FUSE (Filesystem in Userspace) kernel module that allows any non-privileged users to create their file system without modifying kernel code.
In this article, we will show you how to install and use SSHFS client on any Linux distribution to mount remote Linux filesystem or directory on a local Linux machine.
Step 1: Install SSHFS Client in Linux Systems
By default sshfs packages does not exists on all major Linux distributions, you need to enable epel repository under your Linux systems to install sshfs with the help of Yum command with their dependencies.
Step 2: Creating SSHFS Mount Directory
Once the sshfs package installed, you need to create a mount point directory where you will mount your remote file system. For example, we have created mount directory under /mnt/tecmint .
Step 3: Mounting Remote Filesystem with SSHFS
Once you have created your mount point directory, now run the following command as a root user to mount remote file system under /mnt/tecmint . In your case the mount directory would be anything.
The following command will mount remote directory called /home/tecmint under /mnt/tecmint in local system. (Don’t forget replace x.x.x.x with your IP Address and mount point).
If your Linux server is configured with SSH key based authorization, then you will need to specify the path to your public keys as shown in the following command.
Step 4: Verifying Remote Filesystem is Mounted
If you have run the above command successfully without any errors, you will see the list of remote files and directories mounted under /mnt/tecmint .
Step 5: Checking Mount Point with df -hT Command
If you run df -hT command you will see the remote file system mount point.
Sample Output
Step 6: Mounting Remote Filesystem Permanently
To mount remote filesystem permanently, you need to edit the file called /etc/fstab . To do, open the file with your favorite editor.
Go to the bottom of the file and add the following line to it and save the file and exit. The below entry mount remote server file system with default settings.
Make sure you’ve SSH Passwordless Login in place between servers to auto mount filesystem during system reboots..
If your server is configured with SSH key based authorization, then add this line:
Next, you need to update the fstab file to reflect the changes.
Step 7: Unmounting Remote Filesystem
To unmount remote filesystem, jun issue the following command it will unmount the remote file system.
That’s all for now, if you’re facing any difficulties or need any help in mounting remote file system, please contact us via comments and if you feel this article is much useful then share it with your friends.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
When it comes to accessing remote directories on Linux systems, including Ubuntu, there are many different methods available to you.. If you want to make folders accessible to remote users, and do it securely, you can use sFTP..
For Linux clients, SSHFS (SSH Filesystem) is another great too to use.. It is a sub-system that comes with SSH server and enabled by default, based on FUSE for mounting remote directories over an SSH connection..
Instead of setting up an entirely new server or process for making remote directories and folders available to users, you can use your existing SSH server to do that.. No need for additional configurations or FTP servers..
This brief tutorial shows students and new users how to install and configure SSHFS on Ubuntu 18.04 | 16.04 LTS servers..
When you’re ready, follow the steps below:
Step 1: Installing SSHFS on Ubuntu
SSHFS packages are available in Ubuntu default software repositories.. So all you need to do to install it is to run the commands below:
After installing it, continue below to learn how to mount directories…
Step 2: Mounting SSHFS Directories
Now that SSHFS is installed, you can use the mount command to access remote directories over SSH via SSHFS…
The SSHFS mount command format is shown below:
sshfs [[email protected]]host:[ remote_directory ] mountpoint [options]
To mount a remote directory locally on your Ubuntu machine, you first create a location or mount point that will be synced with the remote side…
Run the commands below to create a folder called sshfs in your home folder… This is where the remote folder will be mounted and accessed locally…
mkdir $HOME/ sshfs
You can then use the count commands to mount the remote directory locally through SSHFS…
sshfs [email protected]:/ RemoteSSHFS $HOME/ sshfs
Replace “richard” with the actual username created on your server and “192.168.10.2” with the actual IP address of your remote instance.
To unmount the directory above, you run the commands below:
cd && fusermount -u $HOME/ sshfs
To avoid typing the password each time you mount the remote directory, you can read this post to learn how to configure SSH key authentication… With it, you won’t have to time your password everytime you want to mount the remote directory…
Permanently Mount Remote Folder on Local Machine
If you want to permanently mount the remote directory you need to edit the local machine’s /etc/fstab file and add a new entry… Doing this will always keep the mount point available even if you reboot your machine…
This way when your system boots up it will automatically mount the remote directory.
To mount a remote directory over SSHFS from /etc/fstab, use fuse.sshfs as the filesystem type…
Run the commands below to open the /etc/fstab file…
sudo nano /etc/fstab
Then add the line below into the file and save…
sshfs [email protected]:/ RemoteSSHFS $HOME/ sshfs fuse.sshfs defaults 0 0
You should make sure that password-less SSH authentication is enabled on the SSH server you’re connecting to so you don’t always have to enter a password…
Windows users can mount the remote location using the commands below using programs like SSHFS-Win and WinFsp
Congratulations! You have learned how to install and enable SSHFS and mount remote directories successfully.
Sep 22, 2017
Comment
Much like manually mounting a hard drive in Linux, accessing network shares is tedious. IP addresses must be specified, logins configured, etc. Being able to log into your PC and automatically mount network shares means work gets done easier. Much like auto-starting a hard drive, automatically mounting a network share is done within the fstab file. In this guide, we’ll go over how to automatically mount NFS shares, Samba/CIFS shares, and even SSHFS shares! Here’s how to get it done.
Back Up Fstab File
Editing the fstab file is very dangerous, and any changes could seriously break your system if you mess up. Before starting this tutorial, open up a terminal and do the following:
Step 1: make a folder on your PC to store the backup. Additionally, consider uploading said backup to services like Dropbox or Google Drive for safe keeping.
Step 2: gain a root shell, with sudo -s, and then enter the /etc/ directory.
Step 3: create the backup and place it in the backup folder.
Step 4: rename the file so it has a .bak file extension.
Restore The Backup
Step 1: gain a root shell with sudo -s.
Step 2: enter the /etc/ directory and delete the broken fstab file.
Step 3: copy the backup into the /etc/ folder.
Step 4: rename the backup.
Autostarting NFS
Mounting an NFS share is annoying and tedious; especially for new users. For people unfamiliar with NFS and how it works, it might look like rocket science. That’s why it’d be nice to be able to log into a PC and have easy access to shares right away, without the fuss. To accomplish this, you’ll need to write out a line in the fstab file.
First, find the name of the share you wish to mount. For example:
Then, make a folder where the NFS should mount to on Linux.
Open the fstab file with nano.
Write out the mount line. Here’s an example of how it should look:
Note: replace “data” with what your NFS share is titled.
Save the changes to /etc/fstab by pressing CTRL + O, and reboot. At login, your NFS share will automatically be mounted.
Autostarting SAMBA
Samba is a great tool. With it, Linux admins can serve networked files to the three major PC operating systems, and even mobile. Samba is widely used because of it. Despite this, the SMB protocol is a real pain to access manually. File managers on Linux sputter and take forever to find a share, and sometimes ignore IP addresses even.
That’s why it’s great to be able to mount these types of shares at login.
To start off, install CIFS utils. This is a set of tools that make automatically mounting Samba shares work properly.
Ubuntu
Debian
Arch Linux
Fedora
OpenSUSE
Other Linuxes
CIFS is a critical component to Samba. As a result, most Linux operating systems contain CIFS tools. To get this package on your Linux distribution, search for “cifs utils”, or something similar, then install it with your package manager.
Note: you must create a mount directory before trying to mount SMB.
With the tools downloaded, set up the mount:
Write out your mount line. Here’s how it should look:
Note: replace “share” with the name of the share, and “SERVER” with the name of the server, or IP. Change “=user” to your Samba user, and “=password” to your Samba password.
With the mount line written out, press CTRL + O to save the changes, and then reboot. At the next boot, the Samba share will automatically mount.
Autostarting SSHFS
SSHFS is a very useful tool for those working on servers. With it, any file system can easily be shared and accessible via SSH. However, mounting SSHFS is tedious to type out. For this reason, many people automatically mount SSHFS at startup. Here’s how to do it.
First, install the SSHFS package.
Ubuntu
Debian
Arch Linux
Fedora
OpenSUSE
Other Linuxes
SSHFS is widely used. It is because of this, users of obscure Linux distributions should have no trouble installing it. To find it, open your package management tool, search for “sshfs” and install it.
Note: Automatically mounting SSH file systems are done thanks to the systemd init system. If your operating system does not have systemd, you are out of luck with this method
First, create a mount point for SSHFS to land in on the system:
Gain a root shell, and open the fstab file. Then, write out the mount line. Please change “user” and “host” with the username and remote IP/hostname, and username with your username.
After writing out the mount line and comment, save the edits to fstab by pressing CTRL + O. Reboot. At next log in, the SSHFS share will automatically mount!
Conclusion
Network shares are easily the best way to access files. Unfourtunatly, accessing them can be a real tedious process sometimes. This is why it’s so cool that it’s possible to automatically mount these shares on Linux. It allows users to remove the tediousness of always having to mount network shares manually.
4 Comments
Thanks, this was very helpful
my linux entry for fstab
UUID= /mnt/x ext4 acl,user_xattr,_netdev 0 0
solved my issue where drive was getting mounted before network comes on, using _netdev solved the issue
Any idea why each time I try to access the mount it says that the operation is permitted for root only? I added my default admin user to the root group but still facing the same issue.
Tried SAMBA using fstab but Linux Mint won’t mount the location stating that only root can mount drives. Should there be an extra command in fstab to mount a network location using SAMBA?
I’ve spent hours looking for good “how to” to connect my eOS with my server on boot. Then I found this page. Thank you very very much!
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
This step by step guide will explain how to enable file sharing in Ubuntu, so that you can share files and folders across your network.
- Sharing files and folders across your network from your Ubuntu PC is every bit as easy as sharing files in Windows (arguably, it’s easier). Start by right-clicking on the folder you want to share, and select Properties
Select the Local Network Share tab and then place a check in the box labelled Share this folder
In all likelihood you’ll get a message about the sharing service not being installed. Click the Install service button. If you didn’t get a message about the sharing service not being installed, you can skip down to step #7 below.
Ubuntu will now install Samba on your computer. This will allow other computers on your network to be able to communicate and share files and folders with Ubuntu. Click the Install button.
When prompted, enter your password and click the Authenticate button.
Give Ubuntu a few moments to download and install Samba.
Once you’re back at the Properties window, place a check in the box labelled Allow others to create and delete files in this folder
This time Ubuntu will ask that you grant Nautilus (your file manager) permission to change certain properties of the folder you wish to share. Click the Add the permissions automatically button.
H ow can I mount a remote directory with ssh on a Linux bases system? How do I use SSHFS to mount remote file systems over SSH on a Ubuntu or Debian/RHEL/CentOS/Arch Linux system?
SSH is a secure protocol and you can use it to mount a directory on a remote server or local laptop with the help of the SSHF service. With SSHFS you can mount remote server file system to your local development workstation/laptop powered by Linux. [donotprint]
| Tutorial details | |
|---|---|
| Difficulty level | Intermediate |
| Root privileges | Yes |
| Requirements | sshfs |
| Est. reading time | 10m |
[/donotprint]
More on SSHFS
sshfs is a filesystem based on the SSH file transfer protocol. It is used on a client system i.e. you need to install sshfs package on your local computer/laptop powered by CentOS/RHEL/Ubuntu/Debian/Arch Linux. No need to install anything on server (server1.cyberciti.biz). You only need an openssh server installed on server side. Our sample setup:
Fig.01: Our sample setup
Installing SSHFS on a Ubuntu/Debian/Mint Linux
Installing SSHFS on an Arch Linux
Type the following command:
Make sure you add user named vivek to fuse group:
## [ create fuse group if does not exist as per your distro ] ##
$ sudo groupadd fuse
$ sudo usermod -a -G fuse vivek
Installing SSHFS on a RHEL (Red Hat)/CentOS Linux
First, turn on EPEL repo and then type the following yum command to install FUSE-Filesystem to access remote filesystems via SSH on a CentOS/RHEL:
How do I mount the remote file system?
First, create a directory using mkdir command:
I’m going to mount file system using root user and you need to type root password when prompted:
To access and/or to see the remote file system, run:
Fig. 02: sshfs in action
Dealing with “Permission denied” error and recommended procedure for mounting the remote directory
If you get an error that read as cannot access server1: Permission denied, add yourself to a group called fuse:
Next, create a mount point inside your own home directory:
To mount the remote file system, enter:
Fig.03: Using sshfs without root access on local laptop/desktop
How do I unmount the remote file system?
How can I permanently mount the remote file system by updating /etc/fstab?
For persistent mounts, you must create ssh keys based login
$ ssh-keygen -t rsa
$ ssh-copy-id -i
/.ssh/id_rsa.pub [email protected]
Now, edit the /etc/fstab file, enter:
Examples
Add the following entry at the bottom of the file:
Another example with additional options:
Recommend option for on-demand mounting if you are using systemd:
Save and close the file. Where,
- [email protected] : Remote server with sshd
- fuse : File system type.
- idmap=user : Only translate UID of connecting user.
- allow_other : Allow access to other users.
- reconnect : Reconnect to server.
- _netdev : The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).
- users : Allow every user to mount and unmount the filesystem.
- IdentityFile=/path/to/.ssh/keyfile – SSH key file.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.
🐧 23 comments so far. add one ↓
- SSH: Use Remote Bash / KSH source Command Set…
Linux mount: Bind or Remount Part Of File Hierarchy…
- How to add or mount directory in LXD (Linux container)
- Linux: NFS4 mount Error reason given by server: No…
- Ubuntu: Mount Encrypted Home Directory (
/.private)…
| Previous | Table of Contents | Next |
| Configuring an Ubuntu Linux Based Web Server | Sharing Ubuntu Linux Folders with Remote Windows Systems |
You are reading a sample chapter from the Ubuntu 11.04 Essentials book.
Purchase the fully updated Ubuntu 20.04 Essentials book in eBook ($9.99) or Print ($36.99) format
Ubuntu 20.04 Essentials Print and eBook (ePub/PDF/Kindle) edition contains 36 chapters and over 310 pages
Ubuntu provides two mechanisms for sharing files and folders with other systems on a network. One approach is to use technology called Samba. Samba is based on Microsoft Windows Folder Sharing and allows Ubuntu systems to make folders accessible to Windows systems, and also to access Windows based folder shares from Ubuntu. This approach can also be used to share folders between other Linux based systems as long as they too have Samba support installed and configured. This is by far the most popular approach to sharing folders and in recent versions of Ubuntu has been given the most attention in terms of documentation and tools support. The topic of folder sharing using Samba is covered in the next chapter (Sharing Ubuntu Linux Folders with Remote Windows Systems).
Another option, which is targeted specifically at sharing folders between Linux and UNIX based systems uses technology called Network File System (NFS). NFS allows the file system on one Linux computer to be accessed over a network connection by another Linux or UNIX system. NFS was originally developed by Sun Microsystems in the 1980s and remains the standard mechanism for sharing of remote Linux/UNIX file systems to this day.
NFS is very different to the Windows SMB resource sharing technology used by Samba. In this chapter we will be looking at network based sharing of folders between Linux based systems using NFS.
Contents
- 1 Installing NFS Services on Ubuntu
- 2 Sharing Folders
- 3 Configuring the Firewall
- 4 Mounting a Remote NFS Folder
- 5 Mounting an NFS Filesystem on System Startup
- 6 Unmounting an NFS Mount Point
Installing NFS Services on Ubuntu
The services required to enable NFS folder sharing are not installed by default on Ubuntu. They can easily be installed, however, by opening a terminal window and entering the following command:
The installation process should automatically start the NFS service. To verify that the service is indeed running, execute the following command:
If the output from the above command indicates that the service is not running, it may started as follows:
Sharing Folders
Once the NFS service is installed and running, the next step is to configure any folders that are to be shared with remote systems. Any folders which are to be shared are listed in the /etc/exports file which may be edited from a terminal window as follows:
Each folder that is to be shared via NFS must have an entry in this file. The basic syntax is as follows:
For example, to allow a system with the IP address of 192.168.2.24 to access /tmp with read-only access, the following entry would be added to the /etc/exports file:
Similarly, to also make the folder accessible to a system with the hostname ubuntu2 with read/write permission, the line would read as follows:
Alternatively, to provided read/write access to all hosts, simply use the wildcard character (*):
Once the folder entries have been made in the /etc/exports file, the current settings may be checked at any time by running the exportfs command:
Configuring the Firewall
If the Ubuntu system on which the NFS server is running has a firewall activated, it is essential that the firewall on the NFS server system be configured to allow NFS traffic before any folders can be mounted over the network. For more details on firewall configuration refer to Basic Ubuntu Linux Firewall Configuration and Using Firestarter to Configure an Ubuntu Linux Firewall. By default, Ubuntu does not configure a firewall to block NFS traffic. Unless you have specifically configured a firewall since installing Ubuntu it should not, therefore, be necessary to make any changes for NFS to work.
Mounting a Remote NFS Folder
Once a folder has been exported it may then be mounted on a client system using the mount command. To mount a remote folder from the command line, open a terminal window and create folder where you would like the remote folder to be mounted:
Next enter the command to mount to the remote folder (in this example we use ubuntu as the remote hostname):
The remote folder will then be mounted on the local system. Once mounted, the /tmp/mnt folder will contain the remote folder and all its contents.
Mounting an NFS Filesystem on System Startup
It is possible to configure an Ubuntu Linux system to automatically mount a remote file system each time the system starts up. This is achieved by editing the /etc/fstab file. To do this use sudo to load the /etc/fstab file into your favorite editor. It will likely look something like the following:
To mount, for example, a folder with the path /home/demo which resides on a system called ubuntu in the local folder with the path /nfsmount add the following line to the /etc/fstab file:
Next time the system reboots the /home/demo folder on the remote ubuntu system will be mounted on the local /nfsmount mount point. All the files in the remote folder can then be accessed as if they resided on the local hard disk drive.
Unmounting an NFS Mount Point
Once a remote file system is mounted using NFS it can be unmounted using the unmount command with the local mount point as the command-line argument. For example, to unmount our example filesystem mount point requires the use of the following command:
You are reading a sample chapter from the Ubuntu 11.04 Essentials book.
Purchase the fully updated Ubuntu 20.04 Essentials book in eBook ($9.99) or Print ($36.99) format
Ubuntu 20.04 Essentials Print and eBook (ePub/PDF/Kindle) edition contains 36 chapters and over 310 pages