arch-chroot : duplicate mounts after mounting a folder with --bind option
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm chrooting in an arch systeml calling :
sudo arch-chroot -u ctag:ctag .
After this call I can see mounts created by arch_chroot :
38,56d37
< /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
Why are proc and other mounted twice?
I did an another test, before chrooting I did a bind mount :
sudo mount --bind /home/remi /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/
I chrooted and here are mounts points :
37a38,76
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
There is still duplicate mounts, but some other mounts to previously mounted /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/
How can we explain that?
After exiting chroot, these mounts points are unmounted.
arch-linux chroot
add a comment |Â
up vote
0
down vote
favorite
I'm chrooting in an arch systeml calling :
sudo arch-chroot -u ctag:ctag .
After this call I can see mounts created by arch_chroot :
38,56d37
< /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
Why are proc and other mounted twice?
I did an another test, before chrooting I did a bind mount :
sudo mount --bind /home/remi /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/
I chrooted and here are mounts points :
37a38,76
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
There is still duplicate mounts, but some other mounts to previously mounted /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/
How can we explain that?
After exiting chroot, these mounts points are unmounted.
arch-linux chroot
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm chrooting in an arch systeml calling :
sudo arch-chroot -u ctag:ctag .
After this call I can see mounts created by arch_chroot :
38,56d37
< /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
Why are proc and other mounted twice?
I did an another test, before chrooting I did a bind mount :
sudo mount --bind /home/remi /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/
I chrooted and here are mounts points :
37a38,76
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
There is still duplicate mounts, but some other mounts to previously mounted /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/
How can we explain that?
After exiting chroot, these mounts points are unmounted.
arch-linux chroot
I'm chrooting in an arch systeml calling :
sudo arch-chroot -u ctag:ctag .
After this call I can see mounts created by arch_chroot :
38,56d37
< /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
< /dev/nvme0n1p4 on /home/remi/dev_tools/ti/ccs/ccs_root/etc/resolv.conf type ext4 (rw,relatime,data=ordered)
Why are proc and other mounted twice?
I did an another test, before chrooting I did a bind mount :
sudo mount --bind /home/remi /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/
I chrooted and here are mounts points :
37a38,76
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> /dev/nvme0n1p6 on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root type ext4 (rw,relatime,data=ordered)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> proc on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/proc type proc (rw,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> sys on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys type sysfs (ro,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> efivarfs on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> udev on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev type devtmpfs (rw,nosuid,relatime,size=16392576k,nr_inodes=4098144,mode=755)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> devpts on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> shm on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/dev/shm type tmpfs (rw,nosuid,nodev,relatime)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> run on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
> tmp on /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/tmp type tmpfs (rw,nosuid,nodev)
There is still duplicate mounts, but some other mounts to previously mounted /home/remi/dev_tools/ti/ccs/ccs_root/home/ctag/host_files_remi/dev_tools/ti/ccs/ccs_root/
How can we explain that?
After exiting chroot, these mounts points are unmounted.
arch-linux chroot
asked Dec 15 '17 at 11:16
rem
15817
15817
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411029%2farch-chroot-duplicate-mounts-after-mounting-a-folder-with-bind-option%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password