Disk Auto Mount Generator

How to use

  1. Define your service description

    For example: Disk Auto Mount Service

    Make it short and clear.

  2. Get the UUID of your disk

    Run the command lsblk -f

    Look for the disk you want to mount.

    Copy the target disk UUID.

    For example: UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

  3. Define your mount path

    Preferably create a folder in root, like /data, and mount the disk in sub-folders.

    For example: /data/disk-1

  4. Define your disk type

    For example: ext4 or xfs

  5. Generate your mount file

    Click on Generate and wait for the result.

    You can download the file by clicking on Download

  6. Move the downloaded file to systemd

    For example: sudo cp /tmp/disk-mount.service /etc/systemd/system/disk-mount.service

    Then run: sudo systemctl daemon-reload

  7. Start the service

    For example: sudo systemctl start disk-mount

    Then run: sudo systemctl status disk-mount

    Check if the service is running.

  8. Enable the service

    For example: sudo systemctl enable disk-mount

    Then run: sudo systemctl status disk-mount

    Check if the service is enabled.

  9. Check the mount path

    Restart your system.

    Go to your mount path.

    For example: cd /data/disk-1