You are not logged in.

#1 2016-07-28 19:31:09

maggie
Member
Registered: 2011-02-12
Posts: 255

How to umount a systemd managed partition in fstab?

I have a mount in my fstab that is systemd manged. How can I umount it? Systemd mounts it after I umount it smile

/dev/sda3 /media/nas ext4 defaults,relatime,noauto,x-systemd.automount 0 2
# umount /media/nas

It is unmounted but after some time, it becomes mount again.

Offline

#2 2016-07-28 19:32:42

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 9,909
Website

Re: How to umount a systemd managed partition in fstab?

Something must be hitting /media/nas or else it would stay unmounted...


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2016-07-28 19:32:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,397
Website

Re: How to umount a systemd managed partition in fstab?

# systemctl stop media-nas.automount media-nas.mount

Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB