How to mount a external disk by systemd

作者: shaneZhang 分类: 互联网技术 发布时间: 2022-02-07 13:50

sudo vim /etc/systemd/system/backup.mount

[Unit]
Description=Backup Hard Driver mount
After=network.target wpa_supplicant.service

[Mount]
What=/dev/disk/by-label/backup
Where=/backup
Type=ext4
Options=defaults

[Install]
WantedBy=multi-user.target

sudo systemctl daemon-reload

sudo systemctl start backup.mount

本页面支持繁体中文友好显示:How to mount a external disk by systemd

如果觉得我的文章对您有用,请随意打赏。如果有其他问题请联系博主QQ(909491009)或者下方留言!

发表回复

您的电子邮箱地址不会被公开。