Where are my mount points defined?
Hello,
this might be a stupid question but I can't find anything with Google on this...
I installed Arch via Archboot. My /etc/fstab is empty (only comments), there doesn't seem to be anything related in /etc/systemd/system, /run/systemd/system, or /usr/lib/systemd/system and journalctl just says
[...] systemd[1]: Mounting /home...
[...] kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[...] systemd[1]: Mounted /home.
So... where are my mount points defined?
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 5adive
8 comments
whats
look like? have a SourcePath= ?
Okay, it seems like it automatically detects and mounts the partitions based on the partition type GUID: https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/
So the anwser I was looking for is: Nowhere.
yes. you
may haveprobably ran this over already:https://www.freedesktop.org/software/systemd/man/systemd-gpt-auto-generator.html
It has no SourcePath. But it has a comment saying something about "/run/systemd/generator.late/home.mount". Is this where the mount points are set or is this also generated on start?
Mount points set during setup appear to be in /run/systemd/generator.late/ while mount points set in /etc/fstab are in /run/systemd/generator/
This got even more confusing...
In systemd. It mounts all the kernel filesystem's and also sine of the partitions (if they match some well defined UUIDs).
/etc/systemd is just a directory for me though. So is /usr/lib/systemd.
But where? There has to be some text file I can edit.
/ I know I can just make a new entry in fstab to change a mount point. But where are they defined NOW?
Define whatever you want in fstab (or .mount-units). Both take precedence over what is automatically defined.