How To Reset the Operating System on a Tonido Plug 2 To Factory Defaults
This guide will show you how to restore the operating system (rootfs) on the Tonido Plug 2’s internal flash (NAND) to its original factory settings. To do so, you will delete the existing operating system and replace it with a fresh install. The process is very similar to setting up a USB drive to boot the plug.
This not the same as flashing the plug with a new image and it will not change any U-boot settings.
Why is this useful?
-
If you’ve installed or updated software on the plug’s internal NAND and it is causing problems.
-
If you’ve deleted, corrupted or otherwise messed up parts of the operating system.
-
If your plug is full and nothing seems to fix it.
-
You just want that new plug smell again.
If you do not have a USB stick with the Tonido OS on it, STOP now and make one.
Basic Reset
1. Check to ensure the plug is booting from a USB stick. You MUST boot from a USB stick to perform this restoration.
Use the following command:
The output should be similar to this:
You can see that this plug is booted from a 4GB USB stick. If you see 512MB under “Size” then you are still booting off the internal flash.
3. Attach to the internal flash (NAND) drive.
4. Mount the internal flash drive
5. Navigate to the mounted internal flash drive.
Once the rootfs is removed, the Tonido Plug will no longer boot from its internal drive until the remaining steps have been completed.
6. Remove the operating system (rootfs) and all files on the internal flash.
7. Get a fresh copy of the Tonido operating system image.
8. Make sure the checksum is correct.
9. Untar the image.
10. Delete the compressed rootfs image to save space.
11. Unmount the internal flash.
12. Shutdown.
13. Power down the Tonido Plug, remove the USB drive, power up again.
14. Wait 5 minutes for the plug to finish booting. When the red LED turns completely blue, connect to the Tonido Plug from a browser.
15. You can re-associate the plug your account by clicking on the “recover” link and following the prompts.
Source: http://www.tonido.com/forum/viewtopic.php?f=32&t=4200
Fixing a Corrupt NAND Partition
Please, only start this process AFTER you have tried to rebuild the rootfs on the NAND using Basic Reset instructions above - AND failed during either the remove step (read only error) or the wget step (write error)
That being said, the process of formatting and rebuilding a moderately corrupt NAND rootfs device is fairly simple.
1. Boot from a USB or SATA drive and SSH into the Tonido Plug.
2. Run:
3. Get some info about the NAND. Note if these info commands do not work or do not produce the outputs shown below, STOP - you have other NAND issues that cannot be addressed here.
You should see four NAND mtd devices and We will ONLY work on mtd3 - the rootfs device.
4. Make sure mtd3 is detached:
Be careful here. Make sure you only target mtd3.
5. Format device mtd3 and rebuild the volume on it.
6. Mount the newly formatted NAND volume.
7. Proceed to step 7 of the Basic Reset.