docs(zfs): Export zpool when done working on it (#3)
This commit is contained in:
parent
1a138068d1
commit
4dab010efd
10
README.md
10
README.md
@ -409,7 +409,7 @@ zfs create zpool/data/var/lib/docker
|
|||||||
In case you want to mount your zpool on an external operating system such as an Arch Linux live CD ISO image do it like so:
|
In case you want to mount your zpool on an external operating system such as an Arch Linux live CD ISO image do it like so:
|
||||||
|
|
||||||
```
|
```
|
||||||
zpool import zpool -d '/dev/disk/by-partuuid' -R '/mnt' -f -N
|
zpool import 'zpool' -d '/dev/disk/by-partuuid' -R '/mnt' -f -N
|
||||||
zfs load-key -L 'prompt' 'zpool'
|
zfs load-key -L 'prompt' 'zpool'
|
||||||
zfs mount 'zpool/root/archlinux'
|
zfs mount 'zpool/root/archlinux'
|
||||||
zfs mount -a
|
zfs mount -a
|
||||||
@ -417,6 +417,14 @@ mount '/dev/sda1' '/mnt/efi'
|
|||||||
arch-chroot '/mnt' '/bin/bash'
|
arch-chroot '/mnt' '/bin/bash'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
When done cleanly remove your work:
|
||||||
|
|
||||||
|
```
|
||||||
|
umount '/mnt/efi'
|
||||||
|
zfs umount -a
|
||||||
|
zpool export 'zpool'
|
||||||
|
```
|
||||||
|
|
||||||
Explanation:
|
Explanation:
|
||||||
|
|
||||||
- We always want to mount pools `by-partuuid` for consistency so we specifically only look for pools at `/dev/disk/by-partuuid`.
|
- We always want to mount pools `by-partuuid` for consistency so we specifically only look for pools at `/dev/disk/by-partuuid`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user