我将ZFSBootMenu用于多个zroot。
zpRoot/LINUX/Artix/System mountpoint /
zpRoot/LINUX/eos/SysClone1 mountpoint /
zpRoot/LINUX/eos/System mountpoint /在引导到zpRoot/LINUX/eos/SysClone1时,我希望从其他数据集(如zpRoot/LINUX/eos/System )中读取文件。常见的方法是修改挂载点,然后挂载,但我通常忘记将挂载点还原到/。
我试过zfs mount -o mountpoint=/mnt/1 zpRoot/LINUX/eos/System和zfs mount -o altroot=/mnt/1 zpRoot/LINUX/eos/System,但两者都不起作用。
如果不将挂载点提交到磁盘,如何更改内存中的挂载点?
发布于 2023-04-13 17:01:09
我在FreeBSD上运行了很多ZFS,但很少在Linux上运行。看起来,如果不设置mountpoint=legacy,我的Ubuntu系统就无法做到这一点:
# zfs list -o name,canmount,mounted,mountpoint pool/test
NAME CANMOUNT MOUNTED MOUNTPOINT
pool/test on no /home/research/test
# mount -t zfs pool/test /mnt
filesystem 'pool/test' cannot be mounted using 'mount'.
Use 'zfs set mountpoint=legacy' or 'zfs mount pool/test'.
See zfs(8) for more information.在FreeBSD上,使用mount -t zfs <dataset> <temp mountpoint>很容易做到:
# zfs list -o name,canmount,mounted,mountpoint jimsdesk/home/test
NAME CANMOUNT MOUNTED MOUNTPOINT
jimsdesk/home/test on no /home/test
# mount -t zfs jimsdesk/home/test /mnt
# zfs mount | grep home
jimsdesk/home /home
jimsdesk/home/test /mnthttps://unix.stackexchange.com/questions/742396
复制相似问题