Nfs
From Wsms
Note: This page should be titled nfs (all lowercase). It is Nfs due to technical limitations of Mediawiki.
nfs is a convenient and flexible file sharing system for Linux and other unix systems.
Contents |
[edit]
installation
Use yum (on fedora) or apt-get (on debian and derivatives).
[edit]
server
On Linuxmint 3.0 the package to install is nfs-kernel-server. apt-get will also install the necessary dependencies.
[edit]
client
On Linuxmint 3.0 the package to install is nfs-common. apt-get will also install the necessary dependencies.
[edit]
set up
[edit]
server
You need to set up /etc/exports. It might look like this:
/media/sda4 192.168.11.5(ro,sync)
[edit]
client
Mount the exported directory with a command like this:
root@harrison:/mnt# mount -t nfs 192.168.11.4:/media/sda4 garfield
Once it works, df -h will show something like this:
ggeller@harrison:~$ df -h
Filesystem Size Used Avail Use% Mounted on
...
192.168.11.4:/media/sda4
265G 25G 227G 10% /mnt/garfield
[edit]
tip
If you get an error like:
mount: 192.168.2.14:/media/sdd4: can't read superblock
Try using the -o nolock option:
root@Knoppix:/mnt# mount -t nfs -o nolock 192.168.2.14:/media/sdd4 mckinley/
[edit]
see also
man nfs
Linux_commands
