Remount root filesystem in read-only mode

The following command remounts the root in read-only mode:

mount -o remount ro /