Monday, February 16, 2004

Mount root filesystem read-only

Sometimes, it can be useful to mount the root (ie, the '/') filesystem read-only. Usually, this is to run fsck on it, to fix it up after a horrible crash. Here's how to do it:



# mount -u -o ro -f /



Of course, you do this as root (hence the '#' prompt).

No comments:

Post a Comment