factory reset not working

I want my Yun to be clean again. I thought pressing the WLAN Rst button for 30+ seconds would do that.
However it does not seem to have any effect.

If I understand correctly it should put my Yun back to last version I ever installed on it. But it is not clear if this is with or without the move of the OS to the SD card? (factory reset isnt 100% correct term imho)

My Yun has its OS moved to the SD card, should I press the button with or without the SD card in the Yun?
I tried both: with the SD card in the Yun, pressing the button seems to have no effect. With the SD card removed the only thing I can see is that it movs to AP mode again..

Any ideas why my factory reset would not be working, and where I can start to debug?

backup your own data!

Remove SD.

reset-to-factory-anyway
reboot

http://www.ibuyopenwrt.com/index.php/8-yun-compatible/104-reset-to-factory-settings

wget -O simplesd.sh https://www.dropbox.com/s/jl4oytptxrb6q5u/simplesd.sh?dl=0 --no-check-certificate
/bin/ash simplesd.sh

Expand the Storage

Restore your data.

The reset-to-factory-anyway did work.

Any idea why pressing the WLAN Rst button for 30+ seconds did not work?

NewLine:
Any idea why pressing the WLAN Rst button for 30+ seconds did not work?

Exactly when did you press it? Did you wait for the Yun to completely finish booting?

On many products, it's customary to hold the reset button as you power up, or immediately after powering up. But the Yun will only look for that reset button after it is completely booted. Lots of people don't wait long enough.

ShapeShifter:
Exactly when did you press it? Did you wait for the Yun to completely finish booting?

On many products, it's customary to hold the reset button as you power up, or immediately after powering up. But the Yun will only look for that reset button after it is completely booted. Lots of people don't wait long enough.

@ShapeShifter,
FWIW: This is all in my (unposted) FAQ for Arudino Yun. It falls under Question #000.
I just added the part about backing up your data.

I'll try to get that FAQ up this weekend. However, I'm considering adding this Question:
[Q] What's wrong with the reset buttons? They don't seem to work.

What do you think?

Jesse

That is a good FAQ to be in there. My first thought on a title is "Pressing the WLAN RST button for X seconds doesn't work?" or "Why doesn't pressing the WLAN RST button for X seconds do anything?"

I'm sure you'll come up with great wording.

ShapeShifter:
That is a good FAQ to be in there. My first thought on a title is "Pressing the WLAN RST button for X seconds doesn't work?" or "Why doesn't pressing the WLAN RST button for X seconds do anything?"

I'm sure you'll come up with great wording.

Ok, thanks. I'll do my best.

Jesse

I did press the button when the Yun was booted.

I did initially do it when my sd with the OS was not in the Yun, maybe that 'destroyed' something.

It looks like for the reset to work the OS needs be sane? Kind of means you can't use the reset when you need it most?

NewLine:
It looks like for the reset to work the OS needs be sane? Kind of means you can't use the reset when you need it most?

Not "kind of means" it's more like "definitely means." :angry:

Yes, it doesn't help you get out of trouble if the system won't boot properly and isn't running the script to check for the button press.

do you know what script this is? Maybe I disabled this in some way.

It is controlled by triggerhappy, which is started by /etc/rc.d/S93triggerhappy

The triggerhappy configuration file of interest is /etc/triggerhappy/triggers.d/reset.conf which has two lines:

  • /usr/bin/wifi-reset-button-pressed is called when the button is pressed
  • /usr/bin/wifi-reset-button-released is called when the button is released

The button pressed script basically reads and stores the time. The release script compares that stored button press time to the current time to see how long it was pressed, and calls the appropriate reset script:

  • pressed for > 28 seconds calls /usr/bin/reset-to-factory-anyway
  • else pressed for > 3 seconds calls /usr/bin/wifi-reset-and-reboot

ShapeShifter:
It is controlled by triggerhappy, which is started by /etc/rc.d/S93triggerhappy

The triggerhappy configuration file of interest is /etc/triggerhappy/triggers.d/reset.conf which has two lines:

  • /usr/bin/wifi-reset-button-pressed is called when the button is pressed
  • /usr/bin/wifi-reset-button-released is called when the button is released

The button pressed script basically reads and stores the time. The release script compares that stored button press time to the current time to see how long it was pressed, and calls the appropriate reset script:

  • pressed for > 28 seconds calls /usr/bin/reset-to-factory-anyway
  • else pressed for > 3 seconds calls /usr/bin/wifi-reset-and-reboot

Fantastic! bookmarked

NewLine:
I did press the button when the Yun was booted.
...

You need to wait Yun completed booted, then press.

S93triggerhappy means it is closed end of boot processing. Last one is 99.