What does `mount -o remount` do, and common mount options?
IntermediateConceptStorage & Memory
Answer
remount changes options of a mounted filesystem without unmounting.
sudo mount -o remount,ro /data
sudo mount -o remount,rw /
Common options: ro/rw, noatime, nodev, nosuid, noexec (security hardening for /tmp, /home), nofail, _netdev, discard (online TRIM; periodic fstrim.timer is usually preferred).
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateExplain the six fields of an /etc/fstab line.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat does a bad fstab entry do, and how do you recover?Advanced