arch-chroot : duplicate mounts after mounting a folder with --bind option

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question
























    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.







    share|improve this question






















      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.







      share|improve this question












      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.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 15 '17 at 11:16









      rem

      15817




      15817

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?