18.5. 마운트 지점이 중복되지 않도록 방지
마운트 지점을 바인딩할 수 없음으로 표시하여 다른 마운트 지점에서 복제할 수 없습니다.
프로세스
마운트 지점의 유형을 바인딩할 수 없는 마운트로 변경하려면 다음을 사용합니다.
# mount --bind mount-point mount-point # mount --make-unbindable mount-point또는 선택한 마운트 지점과 그 아래의 모든 마운트 지점의 마운트 유형을 변경하려면
--make-unbindable대신--make-runbindable옵션을 사용합니다.이후 이 마운트를 복제하려고 하면 다음 오류와 함께 실패합니다.
# mount --bind mount-point duplicate-dir mount: wrong fs type, bad option, bad superblock on mount-point, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
예 18.4. /media가 중복되지 않도록 방지
/media디렉터리가 공유되지 않도록 하려면 다음을 사용합니다.# mount --bind /media /media # mount --make-unbindable /media