20.8. systemd.automount를 사용하여 마운트 단위와 함께 온디맨드로 파일 시스템 마운트


마운트 지점을 마운트 단위로 정의할 때 systemd 장치를 사용하여 필요에 따라 파일 시스템을 마운트합니다. 각 마운트에 대해 항목 단위를 추가하고 활성화해야 합니다.

프로세스

  1. 마운트 유닛을 만듭니다. 예를 들면 다음과 같습니다.

    mount-point.mount
    [Mount]
    What=/dev/disk/by-uuid/f5755511-a714-44c1-a123-cfde0e4ac688
    Where=/mount/point
    Type=xfs
    Copy to Clipboard Toggle word wrap
  2. 확장자 .automount 를 사용하여 마운트 단위와 동일한 이름으로 단위 파일을 만듭니다.
  3. 파일을 열고 [Automount] 섹션을 만듭니다. 마운트 경로로 Where= 옵션을 설정합니다.

    [Automount]
    Where=/mount/point
    [Install]
    WantedBy=multi-user.target
    Copy to Clipboard Toggle word wrap
  4. 시스템이 새 구성을 등록하도록 새로 생성된 단위를 로드합니다.

    # systemctl daemon-reload
    Copy to Clipboard Toggle word wrap
  5. 대신 units를 활성화하고 시작합니다.

    # systemctl enable --now mount-point.automount
    Copy to Clipboard Toggle word wrap

검증

  1. mount-point.automount 가 실행 중인지 확인합니다.

    # systemctl status mount-point.automount
    Copy to Clipboard Toggle word wrap
  2. shareed 디렉토리에 원하는 콘텐츠가 있는지 확인합니다.

    # ls /mount/point
    Copy to Clipboard Toggle word wrap

자세한 내용은 systemd 관리를 참조하십시오.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat