Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Working with Systemd Mount Units

Systemd automatically manages mounts for entries that are listed in systemd, and allows you to manually create mount units. In this hands-on lab, you will be tasked with creating systemd mount and automount units.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Oct 08, 2025
Duration
30m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use.
Table of Contents
  1. Challenge

    Create a unit file for the data mount based on the information provided in the instructions and ensure that it is started and enabled.
    1. Create a unit file in /etc/systemd/system named mnt-data.mount with the following contents:
    [Unit]
    Description=Data mount
    
    [Mount]
    What=/dev/disk/by-uuid/filesystem_UUID
    Where=/mnt/data
    Type=xfs
    Options=defaults
    
    [Install]
    WantedBy=multi-user.target
    
    1. Update the systemd manager configuration to include a new unit file:

    systemctl daemon-reload

    1. Start and enable the mnt-data.mount unit:

    systemctl enable mnt-data.mount --now

  2. Challenge

    Create a unit file for the backup mount based on the information provided in the instructions.
    1. Create a unit file in /etc/systemd/system named mnt-backup.mount with the following contents:
    [Unit]
    Description=Backup mount
    
    [Mount]
    What=/dev/disk/by-uuid/filesystem_UUID
    Where=/mnt/backup
    Type=ext4
    Options=ro
    
    [Install]
    WantedBy=multi-user.target
    
    1. Create a mountpoint for mnt-backup.mount at /mnt/backup:

    mkdir /mnt/backup

    1. Update the systemd manager configuration to include a new unit file:

    systemctl daemon-reload

  3. Challenge

    Create an automount unit file for mnt-backup.mount based on the information provided in the instructions and ensure that it is started and enabled.
    1. Create a unit file in /etc/systemd/system named mnt-backup.automount with the following contents:
    [Unit]
    Description=Automount backup directory
    
    [Automount]
    Where=/mnt/backup
    TimeoutIdleSec=600
    
    [Install]
    WantedBy=multi-user.target
    
    1. Update the systemd manager configuration to include new unit file:

    systemctl daemon-reload

    1. Start and enable the mnt-backup.automount unit:

    systemctl enable mnt-backup.automount --now

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight