Automount Filesystems in Linux with Systemd (Rocky Linux 9.3 Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 22

  • @cvx10
    @cvx10 11 หลายเดือนก่อน +2

    I've had issues with docker containers volumes and autofs. This solution is working great !
    Thanks!

  • @Jasmine-cn4wc
    @Jasmine-cn4wc 11 หลายเดือนก่อน +1

    Thank you for explaining in a clear and concise way. Much appreciated

  • @neelojp8460
    @neelojp8460 11 หลายเดือนก่อน +1

    like always, short & very useful video... thank you so much 👍

  • @thegoofymagician4206
    @thegoofymagician4206 11 หลายเดือนก่อน +2

    Thank you Andrew for a fantastic explanation. Much appreciated.❤

    • @theurbanpenguin
      @theurbanpenguin  11 หลายเดือนก่อน

      Thank you so much for the comment. Love that you took the time

  • @brianmurray8943
    @brianmurray8943 11 หลายเดือนก่อน +2

    Brain candy. Love the video. Thanks!

    • @theurbanpenguin
      @theurbanpenguin  11 หลายเดือนก่อน

      Thank you so much Brian

  • @kendawg_mcawesome
    @kendawg_mcawesome 6 หลายเดือนก่อน

    Nice simple explanation.

  • @richardgarrow9260
    @richardgarrow9260 11 หลายเดือนก่อน

    Andrew I have a question for you. So I have a server in the DMZ that always has issues with automount the NFS Shared home directory. So when I saw this I thought this might be a way to go. My question is with the 10min timeout what if say another user logs on 20 mins later if they did a cd / in the home directory would they be able to see the contents. If not and they need to re-run automount then I would be better off leaving the timeout off. I always enjoy your videos. I wish I lived closer as I would love to just be able to sit and chat with you and pick your brain. thanks again Andrew..

    • @theurbanpenguin
      @theurbanpenguin  11 หลายเดือนก่อน

      If you find the overhead of connecting to the share is excessive then don't do it. Often automounting is done for home directories and mounting 300 user home directories at boot may not be required. As always adjust to match your needs

  • @HenrikLassen1
    @HenrikLassen1 11 หลายเดือนก่อน

    Hi, nice work.
    I am mounting coporate CIFS shares. Automont works when forcing my-user-credentials. Question/request: How to automount with the accessor-user-credentials - NOT root-credentials. Your demo (nice point showing no-mount-before-access) seems to imply root can mount anything.

    • @theurbanpenguin
      @theurbanpenguin  11 หลายเดือนก่อน

      Root would need access on the CIFS share. You could add a credential file and refernece that in the automount file: Options=credentials=/etc/samba/my-credentials This would connect as the user in the credentials file. Connecting to CIFS share without automount would require root to pass the credential thriugh in anycase. Connecting to CIFS shares without kerberos can be messy.

  • @johnnguyen7761
    @johnnguyen7761 11 หลายเดือนก่อน

    Thanks I struggled with a while back. The point that the service needs to match the path is incredibly useful. Is there any reference for the naming conventions used? If you had a mount point that had a dash in the name as an example: /data-web/web ?

    • @theurbanpenguin
      @theurbanpenguin  11 หลายเดือนก่อน +1

      Great question: use the systemd-escape command with -p to rewrite a path
      systemd-escape -p /data-one
      returns data\x2done

    • @othernicksweretaken
      @othernicksweretaken 9 หลายเดือนก่อน

      This is nifty.
      I rather would have referred to _man systemd-mount_ as I would have thought that the naming convention was outlined therein.
      But systemctl-escape is cool.
      I have never come across this command so far.
      Thank you Andrew!

  • @radoeka
    @radoeka 11 หลายเดือนก่อน

    What's the advantage of this compared to autofs?

    • @theurbanpenguin
      @theurbanpenguin  11 หลายเดือนก่อน

      This runs as part of systemd. Autofs does not need to be installed let alone running. It uses personal choice though.

  • @guilherme5094
    @guilherme5094 11 หลายเดือนก่อน

    👍Thanks!

  • @boolve
    @boolve 11 หลายเดือนก่อน

    Nice