Is it possible on Linux to mount a partition as read-only at boot time and make sure it cannot be re-mounted as read-write until next boot / power off?
Asked
Active
Viewed 327 times
1 Answers
1
Yes, and No.
Yes: it is possible to specify the mount as ro
for almost any FS in the fstab. Naturally, this will take effect at every boot, so if you want to mount the partition R/W next boot, you'll need to modify the fstab before shutting down.
No: root is able to remount the partition as R/W at any point in time.

Roman
- 3,907
- 3
- 21
- 34
-
Sure, mounting read-only is easy. The question was more if it's possible to lock it that way... Thank you for the confirmation that it's not. – Silviu Mar 02 '16 at 06:54