How Do I Remount Root Filesystem Read Only Linux?

How Do I Remount Root Filesystem Read Only Linux?
Contents

How do I remount the roots filesystem in Linux?

Remount root RW without reboot

  1. fsck -f /dev/xvda.
  2. mount -o rw,remount /
  3. mount -n -o remount,rw /

7 июл. 2014 г.

How do I mount a read only file system in Linux?

Open up a second terminal, run lsblk -f and match the UUID code that appears next to the partition you’d like to edit in the lsblk output with the one in “/etc/fstab.” When you’ve found the line in the Fstab file, add in the read-only option to the file-system “ro” to the mount line.

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.