# Share NFS

建立共享目錄

<div align="left"><img src="/files/-Lp5j2i7mNhFJKCwiAYK" alt=""></div>

額外選項:subtree\_check,secure,no\_root\_squash

<div align="left"><img src="/files/-Lp5uybn25Xnt9fSO8R_" alt=""></div>

## NFS挂载的方法

```
sudo mkdir /NFS
mount -t nfs IP:/NFS /NFS
```

## umount  NFS 出現 device is busy。

解决方法：

1. 首先查找誰在占用：得到pid，kill -9 pid。

```
 sudo fuser /NFS
/NFS:                  317c
sudo kill -9 317
```

然后umount ,如不行 umount –f /NFS 强行卸載。

```
 sudo umount /NFS
```

```
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
#
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
/export/schoolweb_home 120.115.2.0/24(fsid=1,rw,subtree_check,secure,no_root_squash)
/export/schoolweb_sites_enable 120.115.2.0/24(fsid=2,rw,subtree_check,secure,no_root_squash)
/export/schoolweb_sql 120.115.2.0/24(fsid=3,rw,subtree_check,secure,no_root_squash)
/export/schoolweb_www 120.115.2.0/24(fsid=4,rw,subtree_check,secure,no_root_squash)
# NFSv4 - pseudo filesystem root
/export 120.115.2.0/24(ro,fsid=0,root_squash,no_subtree_check,hide)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled/share-nfs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
