|
楼主 |
发表于 2010-6-20 11:49:35
|
显示全部楼层
chroot信息:
[root@TFW-EVL06-LT /]# export tgtsys=/sys2
[root@TFW-EVL06-LT /]# mount -v --bind /dev $tgtsys/dev
/dev on /sys2/dev type none (rw,bind)
[root@TFW-EVL06-LT /]# mount -vt devpts devpts $tgtsys/dev/pts
devpts on /sys2/dev/pts type devpts (rw)
[root@TFW-EVL06-LT /]# mount -vt tmpfs shm $tgtsys/dev/shm
shm on /sys2/dev/shm type tmpfs (rw)
[root@TFW-EVL06-LT /]# mount -vt proc proc $tgtsys/proc
/proc on /sys2/proc type proc (rw)
[root@TFW-EVL06-LT /]# mount -vt sysfs sysfs $tgtsys/sys
sysfs on /sys2/sys type sysfs (rw)
[root@TFW-EVL06-LT /]# chroot $tgtsys
[root@TFW-EVL06-LT /]# ls
bin dev home lost+found mnt proc sbin sys usr
boot etc lib media opt root srv tmp var
[root@TFW-EVL06-LT /]# mount
/dev/hda7 on / type ext3 (defaults)
none on /dev/pts type devpts (gid=5,mode=620)
none on /dev/shm type tmpfs (defaults)
none on /proc type proc (defaults)
none on /sys type sysfs (defaults)
[root@TFW-EVL06-LT /]# du -sh .
du: 无法访问 “./proc/4451/task/4451/fd/4”: 没有那个文件或目录
du: 无法访问 “./proc/4451/task/4451/fdinfo/4”: 没有那个文件或目录
du: 无法访问 “./proc/4451/fd/4”: 没有那个文件或目录
du: 无法访问 “./proc/4451/fdinfo/4”: 没有那个文件或目录
3.0G .
[root@TFW-EVL06-LT /]#
主系统信息:
[root@TFW-EVL06-LT /]# mount
/dev/sda8 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sda13 on /ext/prog type ext3 (rw)
/dev/sda14 on /ext/home type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda7 on /sys2 type ext3 (rw)
/dev on /sys2/dev type none (rw,bind)
devpts on /sys2/dev/pts type devpts (rw)
shm on /sys2/dev/shm type tmpfs (rw)
/proc on /sys2/proc type proc (rw)
sysfs on /sys2/sys type sysfs (rw)
[root@TFW-EVL06-LT /]# |
|