21
submitted 1 month ago* (last edited 1 month ago) by Quail4789@lemmy.ml to c/linux@lemmy.ml

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

top 11 comments
sorted by: hot top controversial new old
[-] Max_P@lemmy.max-p.me 7 points 1 month ago

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

[-] Quail4789@lemmy.ml 1 points 1 month ago

That's the one. Thanks.

[-] WhyAUsername_1@lemmy.world 2 points 1 month ago

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

[-] Quail4789@lemmy.ml 1 points 1 month ago

I want to version control some of my drives

[-] eldavi@lemmy.ml 1 points 1 month ago

does "get them" mean file systems access to the drives?

[-] warmaster@lemmy.world 2 points 1 month ago

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.

[-] wildbus8979@sh.itjust.works -5 points 1 month ago
[-] Quail4789@lemmy.ml 22 points 1 month ago* (last edited 1 month ago)

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.

this post was submitted on 31 Oct 2024
21 points (95.7% liked)

Linux

48740 readers
1187 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS