[7.470][BUG][NOTABUG] Factory reset fails from command line

If I run factory reset from command line as a last resort when only console access is available, I am presented with two options. 
1. Start
2. Reset
If i run /etc/init.d/factoryreset start, I get the error message in screenshot. The reset command works as expected and the machine is reset to factory defaults
Parents
  • If I run factory reset from command line as a last resort when only console access is available, I am presented with two options. 
    1. Start
    2. Reset
    If i run /etc/init.d/factoryreset start, I get the error message in screenshot. The reset command works as expected and the machine is reset to factory defaults


    Sir,
    i tryed this long time back http://www.astaro.org/astaro-beta-versions/asg-v7-500-beta/26494-7-460-question-answered-how-factory-reset-command-line.html

    Thx
  • Factory reset via CLI is accomplished by entering 'init 4' at a root shell. Yes, it is a special runlevel.

    If you want to reboot in the end instead of halting the system (very useful if you have a cluster or no physical access to the machine), you may edit file '/etc/init.d/rc4.d/S10freset' and change the last line from '/etc/init.d/halt' to '/etc/init.d/reboot'.

    After factory reset, you will have initial settings that you entered during installation (Soft-ASG) or out-of-the-box values (Appliance).

    Please note that factory reset does only kill the configuration and some files like certificates etc but does NOT restore the initial software version! So if something got damaged because you played the 'I am root' game and lost, a factory reset may not necessarily help. You have to do a fresh install in this case.
Reply
  • Factory reset via CLI is accomplished by entering 'init 4' at a root shell. Yes, it is a special runlevel.

    If you want to reboot in the end instead of halting the system (very useful if you have a cluster or no physical access to the machine), you may edit file '/etc/init.d/rc4.d/S10freset' and change the last line from '/etc/init.d/halt' to '/etc/init.d/reboot'.

    After factory reset, you will have initial settings that you entered during installation (Soft-ASG) or out-of-the-box values (Appliance).

    Please note that factory reset does only kill the configuration and some files like certificates etc but does NOT restore the initial software version! So if something got damaged because you played the 'I am root' game and lost, a factory reset may not necessarily help. You have to do a fresh install in this case.
Children