I can't ping the router, I can't access the web interface, I can't telnet or ssh to it.

But it still works in the switch mode, I mean my network packages passes through it from me to the internet and back.

It came in this mode after I issued the command:
flashfs save && flashfs commit && flashfs enable && reboot

My router has a HDD atached to it. But I can't connect to it with a HDD or not connected.

So, how can I get my router back? Right now it doesn't seem to respond to my pings or ssh attempts...