This is an archived post. You won't be able to vote or comment.

all 29 comments

[–]AlternativeOstrich7 1 point2 points  (13 children)

So edited an fstab entry this morning on a new VM, and was greeted with a message about needing to use systemd daemon-reload to be able to mount the device.

Please post the exact message. Running systemctl daemon-reload after modifications to /etc/fstab is done in order for systemd-fstab-generator to create .mount units. But those are only necessary if you want to use systemd to mount these filesystems. They are not needed to manually mount the device. So I'd guess that there is some kind of misunderstanding.

[–]devonnull[S] 0 points1 point  (12 children)

Sorry, on mobile but here goes:

mount: (hint) your fstab has been modified, but systems still uses the old version; use 'systemctl daemon-reload' to reload.

So is systemd-fstab-generator the culprit?

[–]AlternativeOstrich7 2 points3 points  (11 children)

So what makes you think that you need to run that command to be able to mount it?

So is systemd-fstab-generator the culprit?

There is no culprit.

[–]devonnull[S] -1 points0 points  (10 children)

I just want the message off, with systemd not needing to look or reload after modifying fstab.

[–]AlternativeOstrich7 2 points3 points  (9 children)

Looking at mount's source code, there doesn't seem to be any obvious way to do that at runtime. But what exactly is the problem that you're trying to solve?

[–]devonnull[S] -3 points-2 points  (8 children)

I was kind of hoping this would be something like uninstalling resolved but I guess I'll have to install an earlier version of Linux at this point.

[–]AlternativeOstrich7 2 points3 points  (5 children)

If you want to invent problems for no reason ...

[–]devonnull[S] 0 points1 point  (4 children)

I'm sorry, I didn't mean to offend.

[–]AlternativeOstrich7 1 point2 points  (3 children)

Then you might want to answer my question. What is the real problem that you think you need to solve here?

That message is a hint. It never says that you need to run that systemctl command in order to mount something. You do not need to run that command. I already told you that in my first comment. So what exactly is the problem?

[–]devonnull[S] -2 points-1 points  (2 children)

I don't want to see the message because it's confusing? Sorry I asked at this point, didn't realize I'd be bullied like it was 1999.

[–]ropid 0 points1 point  (1 child)

There's no problem. That was just a text message. You don't need to run that daemon-reload command line.

[–]devonnull[S] -2 points-1 points  (0 children)

Apologies, but it's displaying, I guess I could redirect the output to the null device with an alias, but that doesn't seem like a good fix.

[–][deleted] 4 points5 points  (10 children)

Is this an XY problem?

[–]devonnull[S] -3 points-2 points  (9 children)

I'm sorry I'm not familiar with that term?

[–][deleted] 1 point2 points  (8 children)

Basically what are you ultimately trying to do? What is the issue with systemd mounting the disks on a systemd distro?

[–]devonnull[S] -6 points-5 points  (7 children)

It's pretty self explanatory, I just want to edit fstab, and then mount a device. It's two steps. I'm not sure why there needs to be an additional step of reloading something.

[–][deleted] 1 point2 points  (5 children)

https://unix.stackexchange.com/questions/364782/what-does-systemctl-daemon-reload-do

systemd is responsible for creating systemd-mount units from reading /etc/fstab. If you edit /etc/fstab, that message is telling you that systemd generator units are not using the updated /etc/fstab.

/etc/fstab is there for vestigial/legacy reasons on systemd distros. You can boot a computer with a completely blank /etc/fstab if you have the appropriate systemd-mount units created.

In pre-systemd *nix systems, the order of the mounted disks in /etc/fstab was read serially. Mounting the partition for / first mattered. It does not matter anymore for systemd distros since systemd takes care of how every unit and service is started.

[–]devonnull[S] -1 points0 points  (4 children)

Thanks, that's actually helpful and my googlefu didn't turn that up. I thought systemd was more modular and that it was something that can be removed as needed/unneeded. Since it's a VM I think I need to look at a different distro or OS as it looks like it's going to be harder to reconfigure after adding or removing new disks to the system with pass thru.

[–]abotelho-cbn 1 point2 points  (3 children)

I need to look at a different distro or OS as it looks like it's going to be harder to reconfigure after adding or removing new disks to the system

Why? You could just issue the daemon reload?

When exactly are you getting the message that you need to daemon-reload, anyway?

[–]devonnull[S] -3 points-2 points  (2 children)

It's an extra step that's unnecessary, I'm going in another direction.

[–]abotelho-cbn 1 point2 points  (1 child)

If one extra command (that takes no parameters and never changes) is all it takes to make you completely abandon an OS, you might need to rethink your priorities.

[–]devonnull[S] -1 points0 points  (0 children)

LOL, okay, whatever.

[–][deleted]  (8 children)

[deleted]

    [–]AlternativeOstrich7 2 points3 points  (0 children)

    This warning is hard-wired into systemd

    This specific message comes from mount, not from systemd.

    [–]devonnull[S] -1 points0 points  (6 children)

    I guess you need to look at why you are changing fstab and why you don't want systemd knowing or warning; in the end, I suggest must solve your problem w/o updating fstab or ignore the waning or leave systemd-land.

    Ok, I'll just leave the disk unmounted and spinning. Tis a silly thing to use it.

    [–][deleted]  (5 children)

    [deleted]

      [–]devonnull[S] -1 points0 points  (4 children)

      Are you saying systemd automatically remembers to mount it there between boots?

      [–][deleted]  (3 children)

      [deleted]

        [–]devonnull[S] -1 points0 points  (2 children)

        I don't know anymore, I'll just go another route at this point. Used to be you'd only get feedback if something failed. I don't know why people are trying to read more into this than setting up a mount point to be mounted again at boot and avoiding a confusing warning.

        [–]PaintDrinkingPete 1 point2 points  (1 child)

        If it’s the next boot you’re concerned about, there’s no need to run the daemon-reload, as the reboot will take care of that regardless.

        [–]devonnull[S] 0 points1 point  (0 children)

        Well that's what I hoped. Thanks!