[editing rc.local on ro drive at boot]
As other people pointed out, the problem is that / is mounted read-only
when your system boots. There is a way to re-mount it read-write,
which is, of course, what the init scripts do as your computer boots.
There actually /is/ a command to do this, namely:
# mount -n -o remount,rw /
-n tells it not to try to update /etc/mtab, which it won't be able to
since it's on a ro filesystem.
Another slick trick to boot when your system is thouroughly hosed
is to pass init=/bin/sh to the kernel when you boot. If you
use LILO you would type something lsimilar to
LILO: linux init=/bin/sh
which would dump you straight into a root shell instead of running
all the init scripts. Then, you remount / as above, edit,
mount -o remount,ro /, run sync a few times and reboot (hard or soft).
Matt
--
/* Matt Sayler -- [EMAIL PROTECTED] -- atwork?astronomy:cs
http://www.cs.utexas.edu/users/mpsayler -- (512)471-7450
Have you ever imagined a world with no hypothetical situations? */
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]