These instructions are for Turris 1.1 only ￼
To understand the following text, it is necessary to get acquainted with the implementation of the Turris router operating system. The router contains two storages (memories). 16MB NOR memory and 256MB NAND memory. The NAND memory contains the operating system into which the router will normally boot (including your installed packages and data). There are then 3 important components in the NOR memory:
By default, the boot loader works by booting the operating system in NAND memory. However, if the user presses the button to request a factory reset , the bootloader will load the rescue system in the NOR memory. This rescue system works by completely automatically taking the original image of the NAND system (stored in the NOR memory) and unpacking it into the NAND memory. Therefore, the user obtains the NAND memory in the same state as when first started.
This procedure can be used in case of damage to the rescue system in the NOR memory or the system loader. It is also possible to use this method to update all software components of the Turris router to the latest version. This also includes those components which are not normally updated (eg for safety reasons), such as the rescue system mentioned.
dd if = / home / turris / sdcard.img of = / dev / sdb
These instructions are for Turris 1.x only ￼ ￼ ￼ ￼ ￼ ￼ ￼ ￼
While the Turris Omnia router had Btrfs file system support right from the start, older Turris 1.x routers did not have Btrfs support. There are many benefits to using Btrfs, especially snapshot backup ease and Schnapps snapshot work.
Starting with Turris OS 3.8, Btrfs can also be used on Turris 1.x routers, but without support for returning to the previous snapshot by holding the Reset button known from Turris Omnia. Snapshots can be used via the command line, but we also plan a web interface for it.
Migrating to Btrfs
When you have everything ready, we can do it:
opkg update opkg install turris-btrfs btrfs_migrate
The script btrfs_migratemakes sure you really want to lose all the data on the microSD card. It then formats it, copies the current system to it, and sets up booting from the microSD card in u-Boot.
If the following appears after the opkg update, it means that the updater is running and it is time to wait:
root @ turris: ~ # opkg update
Collected errors: * opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable.
After rebooting, Turris will start from the microSD card and Btrfs. If you want, you can verify that you now have a Btrfs now on the router with the following command:
mount | grep btrfs
The output should be approximately this:
/ dev / mmcblk0p2 on / ** btrfs **
Once the Turris 1.1 device has Schnapps installed, it can be used to install the Factory default of the latest Turris OS version.
cd ~ wget https://repo.turris.cz/hbs/medkit/turris1x-medkit-latest.tar.gz schnapps import -f turris1x-medkit-*.tar.gz schnapps rollback factory reboot
List of articles, references and wiki pages consulted to develop this wiki page.