Difference between revisions of "Reset to factory"

From IPLOG
Jump to: navigation, search
(Reset from Recovery Mode)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
The IPLOG unit uses two configuration parts, '''rootfs''' and '''userfs'''.
 
The IPLOG unit uses two configuration parts, '''rootfs''' and '''userfs'''.
  
'''Rootfs''' contains a whole default configuration from the factory and it is not possible change it, this part is '''read-only'''.
+
'''Rootfs''' contains a whole default configuration from the factory and it is not possible change it, this part is a '''read-only''' version.
  
'''Userfs''' contains all user changes and user applications. To restore your device to the factory default, enter the following commands with root privileges:  
+
'''Userfs''' contains all user changes and user applications. To restore your device to the factory default settings, enter the following commands with root privileges:  
  
 
{{NotePre
 
{{NotePre
Line 19: Line 19:
 
<span style="color:red"><b>Warning :</b></span>
 
<span style="color:red"><b>Warning :</b></span>
 
Remember that it permanently erases all user files and all custom applications. We strongly recommend backing up your system before resetting to factory default.
 
Remember that it permanently erases all user files and all custom applications. We strongly recommend backing up your system before resetting to factory default.
 +
 +
== Reset from Recovery Mode ==
 +
Reseting userfs files from the recovery mode is possible only after mount the '''userfs''' files from the common firmware image and delete the files there.
 +
 +
==== 1. Recovery ====
 +
[[Recovery mode|How to Get to Recovery Mode]]
 +
 +
==== 2. Mount Userfs ====
 +
Open the SSH connection via Putty, use the default IP address and login for root user.
 +
 +
Type the following commands:
 +
{{NotePre|text=
 +
1. root@iplog-recovery:~# ubiattach -p /dev/mtd8
 +
2. root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs
 +
}}
 +
 +
Output Example:
 +
{{NotePre|text=
 +
root@iplog-recovery:~# ubiattach -p /dev/mtd8
 +
UBI device number 1, total 1020 LEBs (129515520 bytes, 123.5 MiB), available 152 LEBs (19300352 bytes, 18.4 MiB), LEB size 126976 bytes (124.0 KiB)
 +
root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs
 +
root@iplog-recovery:~#
 +
}}
 +
Write the command for deleting all userfs files.
 +
{{NotePre
 +
|text=root@buildroot:~# rm /mnt/userfs/* -r
 +
* deletes userfs files (configuration)
 +
 +
root@buildroot:~# reboot
 +
* restarts the device
 +
}}

Latest revision as of 08:42, 12 May 2020

This document explains how to restore the IPLOG unit to factory settings.


The IPLOG unit uses two configuration parts, rootfs and userfs.

Rootfs contains a whole default configuration from the factory and it is not possible change it, this part is a read-only version.

Userfs contains all user changes and user applications. To restore your device to the factory default settings, enter the following commands with root privileges:

root@buildroot:~# rm /mnt/userfs/* -r
* deletes userfs files (configuration)

root@buildroot:~# reboot
* restarts the device


Warning : Remember that it permanently erases all user files and all custom applications. We strongly recommend backing up your system before resetting to factory default.

Reset from Recovery Mode

Reseting userfs files from the recovery mode is possible only after mount the userfs files from the common firmware image and delete the files there.

1. Recovery

How to Get to Recovery Mode

2. Mount Userfs

Open the SSH connection via Putty, use the default IP address and login for root user.

Type the following commands:

1. root@iplog-recovery:~# ubiattach -p /dev/mtd8
2. root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs

Output Example:

root@iplog-recovery:~# ubiattach -p /dev/mtd8
UBI device number 1, total 1020 LEBs (129515520 bytes, 123.5 MiB), available 152 LEBs (19300352 bytes, 18.4 MiB), LEB size 126976 bytes (124.0 KiB)
root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs
root@iplog-recovery:~#

Write the command for deleting all userfs files.

root@buildroot:~# rm /mnt/userfs/* -r
* deletes userfs files (configuration)

root@buildroot:~# reboot
* restarts the device