Saturday, April 4, 2009

Quick Filesystem Remount in Read Write

As you may already have experienced, you end up with e read-only filesystem during the Linux boot. The boot sequence prompts you to input the root password to continue if some filesystem could not be mounted and that results in a read-only root partition where you have a bash prompt where there is nothing you can do but look at files and wonder what could be wrong.

Well, of course, you need to adjust the filesystem mount scheme from /etc/fstab but that's readonly and what you should do is to to mount the root filesystem in read-write mode. Simple command does the trick:

bash# mount -o remount,rw /

E voila !. You have a read-write filesystem now where you can change the files as you need.

Happy fixing!