Zitat von "el_viejo"another thing i found out today is that after boot the file system is not getting remounted r/o. it stays r/w and i have to access the system via ssh manually calling remountro. i followed all steps of the given howto in this thread but it seems something prevents execution of restart_anacron during boot up or something prevents the remountro command at boot time. still have to find out what it is.
I had the same problem, but as I wrote earlier in this post you can solve it by doing this:
Now it starts, but Voyage linux will not start in read-only mode because "mount is busy" and therefore operates in read-write mode - which is not what we want, because it will tear down the CF-card very rapidly.
It turned out that we need to stop the anachron service, then go into read-only mode, and then restart the anachron service.
Therefore I made a script that stops anachron at startup, go into read-only mode and restarts anachron:
You need to make this file: "etc/init.d/restart_anacron"
The content of this file is:
#!/bin/sh
### BEGIN INIT INFO
# Provides: restart anacron
# Required-Start: $remote_fs $syslog $time
# Required-Stop: $remote_fs $syslog $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Stops and Restarts anac(h)ronistic cron
### END INIT INFO
# /etc/init.d/anacron: start anacron
#
echo "Stop anacron and then sleep 2"
/etc/init.d/anacron stop
sleep 2
echo "try to remount as read only"
/usr/local/sbin/remountro
sleep 2
echo "Start anacron again"
sleep 2
/etc/init.d/anacron start
Then
update-rc.d restart_anacron defaults
Cheers
Steen