> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/shi-yong-zfs.md).

# 掛載其他系統的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

```
