2 ms·
If your filesystem is on top of lvm you can force it to be truly read-only. There are other flags required if /etc is on a read-only fs. lvchange -pr vg00/w
by LinuxBender 6y ago
If your filesystem is on top of lvm you can force it to be truly read-only. There are other flags required if /etc is on a read-only fs.
lvchange -pr vg00/www
mount -o remount,ro /var/www
- pabs3 6y agoHmm, I think it would be better to remount ro and only then do the lvchange.
- LinuxBender 6y agoYes, even better mount it ro from fstab.