chroot命令不会用,究.竟怎么使用呢?.
我.看了chr.oot帮助尝试使用chroot的步骤如下:.
1)首先编译安.装好bushbox: 电子
$.make. O=/home/quietheart/lvkTmp/busyboxSrc/build/ defconfig 女人
$cd ../build
$make
$make CONFIG_PREFIX=../ta.r.get install 健康
复制代码
这.样生成了target,里面有以下目录:<性病>
bin l.inuxrc sbin usr 婚庆
复制代码
2)运行chroot
$cd ../target
$su
#chroot .
复制代码
运行之后,提示:
c.hroot: cannot run command `/bin/bash': No such fi.le or directory 乙肝
复制代码
显然chroot.没有运行成功。 电子
3)再次尝试运行chroot
#chro.ot . /bin/sh 女人
复制代码
运行之后,提示:
chroot: cannot run command `/bin/sh': No such file .or direc.tory.
复制代码
但是bu.sy的bin下面是有这个文件的。.
请问各位,如何做我才能够正确地运行chroot呢.?域名