How do I get the .mount files systemd generates at boot from fstab?
from Quail4789@lemmy.ml to linux@lemmy.ml on 31 Oct 17:54
https://lemmy.ml/post/21996629

Since systemd parses fstab and generate .mount files to mount the drives at boot, I figure I might be able to get them somehow without manually converting my fstab to mount files.

edit: they’re in /run/systemd/generator/*.mount

#linux

threaded - newest

wildbus8979@sh.itjust.works on 31 Oct 17:59 next collapse

man 5 systemd.mount

Quail4789@lemmy.ml on 31 Oct 18:11 collapse

you’re trying to RTFM me but you don’t even know which manual might contain this information. It’s man 8 systemd-fstab-generator. I know because I read it before I asked the question.

wildbus8979@sh.itjust.works on 31 Oct 19:13 collapse

You’re question wasn’t exactly clear, it seemed like you were asked how to create .mount files manually. Not where they are.

warmaster@lemmy.world on 31 Oct 23:52 next collapse

man up unhelpful.user

IRQBreaker@startrek.website on 01 Nov 11:32 collapse

“You are question wasn’t exactly clear…”

“You’re” is a short form for “you are”, so if you are trying to be smug you failed miserably.

eldavi@lemmy.ml on 31 Oct 18:10 next collapse

does “get them” mean file systems access to the drives?

warmaster@lemmy.world on 31 Oct 23:50 collapse

How do get the .mount files

Get = obtain / fetch

So, you are indeed correct in your assumption: in order to obtain the files, he would need to make use of the file system.

However, OP has already received the answer he was looking for. Thanks anyways for trying to help him.

Max_P@lemmy.max-p.me on 31 Oct 18:12 next collapse

They should be in /run/systemd along the rest of generated units.

Quail4789@lemmy.ml on 31 Oct 18:15 collapse

That’s the one. Thanks.

WhyAUsername_1@lemmy.world on 01 Nov 19:12 collapse

Off topic: Why would one need to access these generated files?

Quail4789@lemmy.ml on 02 Nov 19:27 collapse

I want to version control some of my drives