I have recently installed Manjaro on my Raspberry Pi 4.
I have mounted two external HDD and have included them in /etc/fstab.
In the same time, i have also added a command to switch my system from “read-only” to “read-write”.
Each time I switch (from RO->RW or RW->RO), I get the following message:
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
I made sure my system was writeable and run the command, however, it starts again every time I reboot my device.
Then add the command to your command? Every time you modify the fstab you need to reload the daemons so that systemd regenerate the mounts. In fact: Systemd generates and manages the mounts, which are written in fstab.
Thanks everyone for your answers.
I am using my raspberry as a local server and have ben advised to lock the SD to prevent sector damage over time.
I have followed this tutorial.
The system is mounted as ro, but I have set up aliases to switch from “ro” to “rw” whenever I need to install/update apps.
And yes, I have run the ‘systemctl daemon-reload’ command in rw mode.
It works on the current session, but the message comes back after I restart.
So if I reload the daemons in rw, shouldn’t the system take into account my fstab modifications?
As for my external drives, what should they be managed by?