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

Поделиться
HTML-код
  • Опубликовано: 30 окт 2024

Комментарии • 22

  • @cvx10
    @cvx10 8 месяцев назад +2

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

  • @Jasmine-cn4wc
    @Jasmine-cn4wc 9 месяцев назад +1

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

  • @neelojp8460
    @neelojp8460 9 месяцев назад +1

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

  • @thegoofymagician4206
    @thegoofymagician4206 9 месяцев назад +2

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

    • @theurbanpenguin
      @theurbanpenguin  9 месяцев назад

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

  • @brianmurray8943
    @brianmurray8943 9 месяцев назад +2

    Brain candy. Love the video. Thanks!

  • @kendawg_mcawesome
    @kendawg_mcawesome 4 месяца назад

    Nice simple explanation.

  • @richardgarrow9260
    @richardgarrow9260 8 месяцев назад

    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  8 месяцев назад

      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

  • @johnnguyen7761
    @johnnguyen7761 9 месяцев назад

    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  9 месяцев назад +1

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

    • @othernicksweretaken
      @othernicksweretaken 7 месяцев назад

      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!

  • @HenrikLassen1
    @HenrikLassen1 9 месяцев назад

    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  9 месяцев назад

      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.

  • @boolve
    @boolve 9 месяцев назад

    Nice

  • @guilherme5094
    @guilherme5094 9 месяцев назад

    👍Thanks!

  • @radoeka
    @radoeka 9 месяцев назад

    What's the advantage of this compared to autofs?

    • @theurbanpenguin
      @theurbanpenguin  9 месяцев назад

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