> For the complete documentation index, see [llms.txt](https://spacecore.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacecore.gitbook.io/wiki/en/hetzner/how-to-install-os-with-raid.md).

# Installing the operating system

Hetzner tools allow you to install the OS on a dedicated server in different ways, resulting in different results. Let's look at these methods in this article.

## Using Robot (RAID1)

The easiest and quickest way is to reinstall the operating system in the «Linux» section of the cloud bar [Robot](https://robot.your-server.de/).

We need to go to this section and get acquainted with the information. After that, we select the appropriate **OS** from the available images. Next, we check the box agreeing that all our data on the drives of the dedicated server will be cleared.

<figure><img src="/files/XW6EgJgoed0MYlSAbm0a" alt=""><figcaption></figcaption></figure>

After using the «‎**Activate Linux installation**» button, we get something like this message:

<figure><img src="/files/hKzhqS0uqUmoOdr3QyuU" alt=""><figcaption></figcaption></figure>

Do not forget to copy the password generated for us, which will be assigned to the **root** user upon completion of the installation of the operating system.

Next, to start the process, restart our server using the reboot command if there is an active **SSH** connection or use the «**‎Execute an automatic hardware reset**» button in the «**‎Reset**» section of the Robot cloud control panel.

We wait a few minutes and try to connect to the server.

<figure><img src="/files/vufeks25cxm7mqdnXMyB" alt=""><figcaption></figcaption></figure>

We see the OS we have selected installed on the cleaned drives. But at the same time, by default, we got the system on [**RAID1**](https://ru.wikipedia.org/wiki/RAID#RAID_1).

<figure><img src="/files/pYT7nUhDKA9JS48HbzRo" alt=""><figcaption></figcaption></figure>

## Usage installimage (RAID 1/0/10 etc)

The install image utility is a special tool for semi-automatic **installation** of the operating system, during which basic settings such as **RAID** type, network configuration, partitioning of the system, etc. are available.

First, we need to switch our dedicated server to **System Rescue** mode. You can find how to do this in the[ corresponding](https://wiki.spacecore.pro/hetzner-robot/how-to-execut-resque) instructions.

{% hint style="warning" %}
Be sure to save the password to access the created **Rescue** session, because after the installation is completed, the password will be assigned to the user of our system using this method.
{% endhint %}

After activating the Rescue utility, we connect to our server.

<figure><img src="/files/4QYEb7bc6iBDq4wd1jeJ" alt=""><figcaption></figcaption></figure>

Great. Now enter this command:

```
installimage
```

We expect almost instant software preparation.

<figure><img src="/files/cTJBHvtXfaVw8zKjfNAR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/OIoBR5TXqTV9iQFyJ7n0" alt=""><figcaption></figcaption></figure>

In the list that opens, you need to select the Linux distribution or a custom installation image that you are interested in installing. Let's take **Ubuntu** as an example.

{% hint style="info" %}
Control in this window is performed using the arrows on the keyboard, or by double-clicking the mouse (**LMB**).
{% endhint %}

Next, select the required version of this distribution from the suggested options. Again, for example, let's choose the last available image — **Ubuntu 22.04**.

<figure><img src="/files/htFcFdaHZhKyVoBPEqbG" alt=""><figcaption></figcaption></figure>

We familiarize ourselves with the information and press **Enter.**

<figure><img src="/files/YukyzQpBBsumZgZ6jdEP" alt=""><figcaption></figcaption></figure>

A window opens in front of us with the configuration of the system being installed.

<figure><img src="/files/RUVXAqnVDvFl6JcfxHNJ" alt=""><figcaption></figcaption></figure>

First of all, we should pay attention to the SW RAID and **SWRAIDLEVEL** parameters.

{% hint style="info" %}

* **SWRAID** — activating or disabling Software Raid (leaving the value 1 for the active state).
* **SWRAIDLEVEL** — determines the level of the Raid to be installed. The default value is 1, in this case RAID1 will be set. If you want to set another value available according to the parameters of your equipment, then specify the number according to the Raid type. For example, for RAID 0, this parameter should look like this (+example in the screenshot):

**`SWRAIDLEVEL 0`**
{% endhint %}

After completing the installation of all necessary parameters, press the **F10** button on the keyboard and save the changed config.

<figure><img src="/files/NI6nysS3hLZz2I6Jj3py" alt=""><figcaption></figcaption></figure>

Next, we confirm the information that all existing data will be deleted from our drives.

<figure><img src="/files/DnVy5ACxeeMD1DJ8O4PS" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dnyHP0u4Vab31xfvtjG2" alt=""><figcaption></figcaption></figure>

After that, the process of installing the operating system according to the specified parameters begins. We are waiting for completion.

<figure><img src="/files/GqiXAfxojDj2shgIbTpq" alt=""><figcaption></figcaption></figure>

Upon completion of the installation, we see a similar message:

<figure><img src="/files/4EhuI3sLK6gSpgDuEb5z" alt=""><figcaption></figcaption></figure>

Restarting the server using the `reboot` command or the cloud control panel [Robot](https://robot.your-server.de/).

After a few minutes have passed, we connect and observe the reinstalled OS of our choice. Since we specified **RAID0** in the config for the example, our drives are now working on its basis:

<figure><img src="/files/oSRCh6YPyoM5hXqizFwD" alt=""><figcaption></figcaption></figure>

## Results

Now you have learned how to install the OS on your dedicated server in **Germany** or **Finland** in two ways, each of which has its pros and cons.

The server is ready to work!
