When a disk acts up I want it to stop taking writes while I copy the data off.
sudo mount -o remount,ro /mnt/data
sudo mount -o remount,rw /mnt/data
The remount keeps the mount point and applies the new option to the live filesystem. It fails with “mount point is busy” while a process still has a file open for writing. Find that process with lsof /mnt/data first. The kernel does the same on its own when ext4 hits an error with the errors=remount-ro option, which is why a disk can suddenly turn read-only.
Further reading: mount manual page