Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure NFS server to realize file sharing between Ubuntu12.04 and arm

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you the "NFS server how to install configuration to achieve Ubuntu12.04 and arm file sharing", the content is easy to understand, clear, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn "NFS server how to install configuration to achieve Ubuntu12.04 and arm file sharing" this article.

Implementation steps:

1. Server side:

Sudo apt-get install portmap

two。 Server side:

Sudo apt-get install nfs-kernel-server

3. Client:

Sudo apt-get install nfs-common

4. Server-side configuration:

Sudo gedit / etc/exports

Add:

/ home/share 192.168.1.* (rw,sync,no_root_squash)

(shared directory) (allow IP)

(rw permissions are erasable and ro read-only

Sync represents that the data will be synchronously written to memory and hard disk, while async means that the data will be temporarily stored in memory rather than directly written to the hard disk.

If the open client uses the root identity to manipulate the server's file system, then turn on no_root_squash, which is not allowed by root_squash)

5. Server-side startup:

Sudo / etc/init.d/portmap restart

6. Server-side startup:

Sudo / etc/init.d/nfs-kernel-server restart

When 7.arm board is connected: host:

Sudo ifconfig eth0 192.168.1.101 netmask 255.255.255.0

Arm board:

Ifconfig eth0 192.168.1.102 netmask 255.255.255.0

On 8.arm board

Mount:mount-t nfs 192.168.1.101:/home/share / mnt/hosts

(host IP and shared directory) (arm board directory)

Automatically synchronize files on arm board after mount

(

1. There is a problem:

Reason given by server: Permission denied

Resolve:

Sudo must be started on the server side, otherwise the startup fails and the service is denied.

two。 There is a problem:

Svc: failed to register lockdv1 RPC service (errno 111).

Lockd_up: makesock failed, error=-111

Mount: mounting 192.168.1.101:/home/share on / mnt/hosts failed: Connection refused

Then change it to:

Mount-t nfs-o nolock 192.168.1.101:/home/share / mnt/hosts

3. There is a problem:

Mount: mounting 192.168.1.101:/home/share on / mnt/hosts failed: Device or resource busy

Resolve:

This prompt appears after the mount command on the mount, the device is running and there is no need to mount again

If you want to mount again, you can umount / mnt/hosts first.

)

The above is all the contents of the article "how to install and configure NFS server to achieve Ubuntu12.04 and arm file sharing". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report