# 掛載其他系統的ZFS磁碟

### ZFS無法存取，須安裝相關工具

```
sudo apt install zfs-fuse zfs-dkms zfsutils-linux
```

![](/files/-LvIYpXX2uQEVAZYRyGi)

```
zpool import zfs

cannot import 'zfs': pool was previously in use from another system.
Last accessed by pve (hostid=4f6ff543) at Wed Dec  4 14:45:14 2019
The pool can be imported, use 'zpool import -f' to import the pool.

```

```
zpool import -f zfs

This pool uses the following feature(s) not supported by this system:
	com.delphix:spacemap_v2 (Space maps representing large segments are more efficient.)
	org.zfsonlinux:project_quota (space/object accounting based on project ID.)
All unsupported features are only required for writing to the pool.
The pool can be imported using '-o readonly=on'.
cannot import 'zfs': unsupported version or feature
```

### zpool import -f -o readonly=on zfs

```
zpool list
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
zfs    120G  22.3G  97.7G         -     0%    18%  1.00x  ONLINE  -
```

```
zpool status
  pool: zfs
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	zfs         ONLINE       0     0     0
	  sda4      ONLINE       0     0     0

errors: No known data errors
```

### 顯示掛載點

```
zfs mount
zfs                             /zfs
zfs/basevol-101-disk-0          /zfs/basevol-101-disk-0
zfs/subvol-102-disk-0           /zfs/subvol-102-disk-0

```


---

# 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-4/shi-yong-zfs.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.
