Temp files not cleaned - causes hang after power loss
Posted: Fri 13 Feb 2009, 05:29
Puppy 4.1.0-->4.1.2
Full install
Puppy will hang after power loss at "Waiting for modules to complete loading". Keyboard unresponsive.
Booting from the live CD and deleting some temp files fixes the problem.
To cope with this in the future (as this is repeatable every time I have a powerloss) I added the following to my /etc/rc.sysini script just after the line:
Full install
Puppy will hang after power loss at "Waiting for modules to complete loading". Keyboard unresponsive.
Booting from the live CD and deleting some temp files fixes the problem.
To cope with this in the future (as this is repeatable every time I have a powerloss) I added the following to my /etc/rc.sysini script just after the line:
Code: Select all
ln -s /proc/mounts /etc/mtab
Code: Select all
#If we were not shutdown cleanly, try and recover
if [ -f /tmp/RUNNING ];then
echo -n "(Cleaning up after unclean shutdown)" >/dev/console
rm -f /var/log/X*
rm -rf /tmp/*
rm -f /var/lock/LCK*
rm -f /var/run/*.pid
rm -rf /root/tmp 2> /dev/null
rm -rf /root/.thumbnails/* 2> /dev/null
fi
#create a file in tmp that should be deleted on a clean shutdown
echo 'this file is deleted during a clean shutdown' > /tmp/RUNNING