This is an old revision of the document!


HOWTO Cleanboot

Problem

When you install fun_plug in your DNS-323 or CH3SNAS box, it runs most of the programs from the mounted hard disks, so it prevents them from being unmounted cleanly.

You have this problem if your dmesg shows the following line:

 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

Solution

Cleanboot will modify the reboot & shutdown process to overcome this issue, allowing you to cleanly reboot or shutdown your box.

How to install cleanboot in fonz fun_plug 0.3 and 0.4

telnet or ssh into your box, and issue the following commands:

 # wget http://pof.eslack.org/dns323/cleanboot-2.0.tgz
 # funpkg.sh cleanboot-2.0.tgz
 # ${FUNPLUGDIR}/start/cleanboot.sh start

How to install cleanboot in fonz fun_plug 0.5-experimental

telnet or ssh into your box, and issue the following commands:

    # wget http://pof.eslack.org/dns323/cleanboot-2.0-ffp05.tgz
    # funpkg -i cleanboot-2.0-ffp05.tgz
    # /ffp/start/cleanboot.sh start

EXPERIMENTAL: Here are the instructions updated to install cleanboot 2.0.4 on ffp0.5:

    # wget -O cleanboot-2.0.4-ffp05.tgz http://forum.dsmg600.info/attachment.php?item=269
    # funpkg -i cleanboot-2.0.4-ffp05.tgz
    # chmod a+x /ffp/start/cleanboot.sh
    # /ffp/start/cleanboot.sh start

How to upgrade cleanboot from 1.x to 2.x

telnet or ssh into your box, and issue the following commands:

 # wget http://pof.eslack.org/dns323/cleanboot-2.0.tgz
 # rm ${FUNPLUGDIR}/share/cleanboot/*
 # funpkg.sh cleanboot-2.0.tgz
 # ${FUNPLUGDIR}/start/cleanboot.sh start

How to shutdown your box after cleanboot has been installed

telnet or ssh into your box and issue the command 'shutdown' or 'halt'.

NOTE: at the moment this is the only way to cleanly shutdown, if you do it either via the web panel or by pressing the button, the hard drives will not be cleanly unmounted.

How to reboot your box after cleanboot has been installed

There are several ways to reboot, all of them will umount the hard drives properly:

  1. telnet or ssh into your box and issue the command 'reboot'.
  2. issue a 'system restart' through the web administration panel

How do I repair my filesystem if I already have the 'unchecked fs' warning

There are two different methods to perform manual filesystem checks, choose the one you prefer:

Related forum post


Navigation

Personal Tools