¶ mount
cd /location/of/new/root |
按照我的理解,mount -rbind a b
相当于把a目录挂载到b目录,这样访问b目录就相当于访问a目录了。
如果运行某命令出现syslog is not available
的报错,可以试试:
mount --rbind /run run/ |
来源:
https://wiki.archlinux.org/title/Chroot#Using_chroot
https://blog.csdn.net/sinat_37322535/article/details/117022038
¶ umount
cd /location/of/new/root |
run/
同理。
来源:https://unix.stackexchange.com/questions/120827/recursive-umount-after-rbind-mount