Creating the mountfs script

Create a new file /etc/init.d/mountfs containing the following:



#!/bin/sh
# Begin /etc/init.d/mountfs

. /etc/init.d/functions

echo -n "Remounting root file system in read-write mode..."
/bin/mount -n -o remount,rw /
evaluate_retval

echo > /etc/mtab
/bin/mount -f -o remount,rw /

echo -n "Mounting other file systems..."
/bin/mount -a
evaluate_retval

# End /etc/init.d/mountfs