Skip to content

Restore RengeOS (Recovery Mode)

  • Essentially, the ros-reborn tool allows users to reset their system to its original state (as when it was first installed) without having to reinstall using a Live ISO with a USB drive as is the usual method.

  • So we will use ros-reborn (TUI) to automate the RengeOS restore process to its original state using the unsquashfs method and some other related techniques during the process.

  • After booting up your device, at the bottom of the GRUB menu you will see an option called Recovery Mode. Select it and boot into it before proceeding with ros-reborn.

1

  • After booting into Recovery Mode from the GRUB menu option, we will log in as root using the password you set for root during the previous RengeOS installation.

2

  • Next, we will proceed with the factory reset process using ros-reborn.
Terminal window
ros-reborn
  • You will immediately see this TUI appear and that is the ros-reborn tool.

3

  • Now we have two options: UEFI and Legacy BIOS.

  • Make sure you know what your boot mode is. If not, check your BIOS. Also, ensure you don’t have Hybrid Mode enabled.

  • Here I will choose UEFI because my machine is currently using that boot mode.

4

  • After selecting the boot mode, the next step is to choose the partitions in the following order:
  • EFI partition (Legacy BIOS is similar) -> Root partition -> Recovery Partition

  • First, we need to select the EFI (boot) partition and the root partition.
  • Here, the EFI (boot) partition will be sda1 and the root partition will be sda3.
56
  • After selecting the two partitions like above, you will be asked if you want to choose a partition for Recovery Mode.
  • Here I have Recovery Mode enabled and I will select the sda2 partition as the Recovery Mode partition.
78
  • After we’ve defined the partitions, we’ll review them to ensure everything is correct.

9

  • Now we need to select the time region, here, I’ve chosen Asia/Ho_Chi_Minh because I live there
1011
  • After selecting your region, the next step is to choose your system locale.
  • If you’re unsure what to choose, just select English (US) as it’s the default standard on most other distributions, and I chose it too.

12

  • Now it will ask you for your computer’s hostname, so enter the name you want.

13

After completing that, the next step is to provide the user’s username.

14

  • After that, we will move on to configuring passwords for root and user accounts.
  • And now we’ll begin with setting up the root password.
1516
  • Once we’ve set up the root password, we’ll move on to setting up passwords for the user accounts.
1718
  • The next step is to select the kernel that will be installed and used as the default.
  • linux-renge-bore is the latest kernel based on the Xanmod Kernel and BORE Schedule, with O3 optimization and other features that make laptops/desktops/gaming significantly smoother, reducing lag and stutter during heavy background tasks. However, it is not optimized for long-term workloads or servers.

  • linux-renge-lts is also the latest kernel (in terms of official Linux kernel versions for LTS) based on the Xanmod Kernel, built with O3 optimization. It excels in smoothness, low latency, and better laptops/desktop/gaming performance than the regular kernel, but maintains long-term stability and is less optimized than linux-renge-bore.

19

  • After selecting your desired kernel, you will see something like this (for the linux-renge-bore option).
  • If we selected linux-renge-lts, only the xfs filesystem option will be displayed because it doesn’t support bcachefs filesystem.
  • Anyway, that’s your decision, but I still recommend choosing bcachefs filesystem if possible because RengeOS currently has strong support for it.
2021
  • After successfully completing filesystem selection configuration process, the next step is to choose whether or not to enable Zram.

22

Check before the installation process begins

Section titled “Check before the installation process begins”
  • Now we need to review and confirm whether it has met expectations.
  • If you’re okay with it, you can select Yes. Otherwise, select No, and you can start the process again.
2324
  • The process will then continue according to the previously configured settings.

16

Wait for the installation process to complete

Section titled “Wait for the installation process to complete”
  • Now you can make yourself a hot cup of coffee and wait until everything is finished, and you will reach the completion menu.
2524
  • Congratulations! You have successfully restored RengeOS to factory settings with ros-reborn without needing a USB or Live ISO, Yay!! 🎉 🎉