From 870bccbdf8d4978c331874060a96f9976dc3d2ee Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Thu, 26 Jul 2018 11:24:21 -0300 Subject: [PATCH] Changing the old try to mount partition as a service to systemd.mount --- Services/instructions.md | 2 ++ Services/mount-Multimedia-Out-of-fstab.service | 10 ---------- Services/run-media-bruno-Multimedia.mount | 12 ++++++++++++ 3 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 Services/instructions.md delete mode 100644 Services/mount-Multimedia-Out-of-fstab.service create mode 100644 Services/run-media-bruno-Multimedia.mount diff --git a/Services/instructions.md b/Services/instructions.md new file mode 100644 index 0000000..026e075 --- /dev/null +++ b/Services/instructions.md @@ -0,0 +1,2 @@ +To enable, copy service to `/etc/systemd/system` +then enable it with `systemctl enable run-media-bruno-Multimedia.mount` diff --git a/Services/mount-Multimedia-Out-of-fstab.service b/Services/mount-Multimedia-Out-of-fstab.service deleted file mode 100644 index 5d72a10..0000000 --- a/Services/mount-Multimedia-Out-of-fstab.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Mount Multimedia out of fstab - -[Service] -ExecStart=mount /dev/sdb5 /run/media/bruno/Multimedia - -[Install] -WantedBy=multi-user.target - -# To enable, copy this to "/etc/systemd/system" diff --git a/Services/run-media-bruno-Multimedia.mount b/Services/run-media-bruno-Multimedia.mount new file mode 100644 index 0000000..b7bf630 --- /dev/null +++ b/Services/run-media-bruno-Multimedia.mount @@ -0,0 +1,12 @@ +[Unit] +Description=Mount Multimedia out of fstab + +[Mount] +What=/dev/disk/by-label/Multimedia +Where=/run/media/bruno/Multimedia +Type=ntfs +Options=defaults + +[Install] +WantedBy=multi-user.target +