当前位置:网站首页>NFS mount
NFS mount
2022-06-30 06:45:00 【Running on the road】
1、 install NFS service
sudo apt-get install nfs-kernel-server
2、 Modify the configuration and add a shared directory
sudo vim /etc/exports
add to /home/ubuntu/catkin_ws Catalog
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/ubuntu/catkin_ws
3、 Set permissions and modify file users for the mounted directory
sudo chmod -R 777 /home/ubuntu/catkin_ws
sudo chown -R 777 /home/ubuntu/catkin_ws
“-R” The scope of the command includes the folder and all its subfolders
4、 start-up nfs service
start-up
sudo /etc/init.d/nfs-kernel-server start
restart
sudo /etc/init.d/nfs-kernel-server restart
5、 mount
sudo[ Space ]mount[ Space ]-t[ empty
grid ]nfs [ Space ][ Server side IP Address ][ The colon ][ The path of the server to mount the file ][ Space ][ Mount to client
The path of ]
sudo mount -t nfs 192.168.43.214:/home/ubuntu/catkin_ws /mnt
The following sentence can be used when mounting on the server is unsuccessful
sudo mount -t nfs -o nolock,nfsvers=3,vers=3 192.168.43.214:/home/ubuntu/catkin_ws /mnt
6、 View the mount
df -h
[email protected]:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 383M 7.5M 375M 2% /run
/dev/mmcblk0p2 15G 6.3G 7.4G 46% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 78M 175M 31% /boot/firmware
tmpfs 383M 16K 383M 1% /run/user/120
tmpfs 383M 0 383M 0% /run/user/1000
192.168.43.214:/home/ubuntu/catkin_ws 15G 6.3G 7.4G 46% /mnt
7、 install NFS client
sudo apt-get install nfs-common
8、 problem 1:nfs Access denied “mount.nfs: access denied by server while mounting 192.168.0.100:/home/wheeltec/catkin_ws”
resolvent :
There are many web pages , With permission to modify . Modify the shared directory and the mounted directory 777 Authority . There are instructions that will restart but are different . link 1、 link 2
When I encountered this problem, I modified the permissions and configuration files above , After the reboot, the mount succeeds
sudo service nfs-kernel-server restart
边栏推荐
- Traitement d'images 7 - amélioration d'images
- ftplib+ tqdm 上传下载进度条
- 0基础转行软件测试,如何实现月薪9.5k+
- 1.4 - fixed and floating point numbers
- Introduction to programming ape (11) -- structure
- Switch must be better than if Else fast
- Arrangement of in-depth learning materials
- Unable to read file for extraction: gdx64. dll
- RT thread migration to s5p4418 (III): static memory pool management
- 1.5 - 逻辑运算
猜你喜欢

RT thread Kernel Implementation (V): timer

0基础转行软件测试,如何实现月薪9.5k+

SOC_AHB_SD_IF

神经网络入门

记录一次腾讯测试开发工程师自动化接口测试实践经验

1.5 - 逻辑运算

1.3 - Code System

Definition and use of ROS topic messages

Huawei full-scale Daniel shared the 598 page full-color Manual of network protocols for the first time

Why does ETL often become ELT or even let?
随机推荐
力扣------替换空格
Fastapi learning Day2
Definition and use of ROS topic messages
Basic use of markdown
Porting RT thread to s5p4418 (V): thread communication
Switch must be better than if Else fast
Initial love with mqtt
Numpy中的四个小技巧
C language: exercise 3
MySQL中的InnoDB引擎
【Mask-RCNN】基于Mask-RCNN的目标检测和识别
1.7 - CPU的性能指标
Problems and solutions of creating topic messages in ROS
阿里云买的40G高效云盘挂载只有20G
Four ways to create multithreads
List in set (2)
A small template (an abstract class, a complete process is written in a method, the uncertain part is written in the abstract method, and then the subclass inherits the abstract class, and the subclas
Ls1028 manual
C language final experiment report (student achievement management system) source code
RT thread Kernel Implementation (IV): multi priority