User-defined System Disk

Why is it necessary to create partitions for disks?

There are mainly two reasons. Firstly, to enhance performance, by dividing the hard drive into multiple partitions, we can optimize disk access, reduce fragmentation, and improve read and write efficiency. Secondly, for data security and backup purposes, storing important data in independent partitions makes it more convenient for data backup and recovery. In the event of a system failure or the need for a system reinstall, only the partition containing the operating system and programs needs to be formatted, while the user data partition remains unaffected.

What is the system disk in TOS?

When creating storage pools and volumes in the TOS system, the system automatically partitions and formats the disks used to create storage pools. Each disk is divided into four physical partitions: the boot partition, swap partition, system partition, and data partition.
The boot partition is the first partition on the TNAS disk and stores the system's boot loader. When the BIOS or uBoot is set to boot from the disk, the bootloader on this partition provides the boot for the system. In the TOS system, the file system of the boot partition is default to ext4, with a partition size of 300MB.
The swap partition is a special hard disk space in the Linux operating system, also known as virtual memory. When the system is running out of memory, a portion of less frequently used memory data is stored in the swap partition to free up memory space, ensuring the stable operation of the system. In the TOS system, the file system of the swap partition is default to ext4, and the size is set to 2GB by default.
The system partition is used to store the operating system, including the kernel, configuration files, user directories, programs, and databases, among other components. In the TOS system, the default file system for the system partition is ext4. Before TOS 5, the default size of the system partition was 2GB, and starting from TOS 5, the system partition size was adjusted to 8GB.
The data partition is used to store user data. Any disk space other than the boot partition, swap partition, and system partition will be allocated to the data partition, and its size depends on the total disk space.

What is a user-defined system disk?

The user-defined system disk allows users to specify the disk used for system boot based on their own requirements within the TOS system. In versions prior to TOS 6, the system was installed on all disks, and configuration information and database changes were synchronized to each disk. If multiple disks were present in the TNAS, each disk was treated as a system disk, with its Swap partition and system partition forming a RAID 1 array. This ensured that system configurations and database change data were backed up on every system disk, providing flexibility for hard drive replacement. However, in these versions, every write operation had to wait for all disks in the RAID 1 array to complete, which could potentially impact performance.
TOS 6 introduces a new feature that allows users to custom-select the disk for installing the system during the installation process. Disks that are not selected will not contain the bootloader, operating system, or RAID 1 array, limiting the maximum number of system disks to 2 and thereby enhancing system efficiency. When users create a storage pool, the system automatically creates a full set of four partitions on all participating disks.

What are the benefits of a user-defined system disk?

User-defined system disks bring many benefits. Firstly, by reducing the unnecessary number of system disks, system performance can be significantly improved, especially in TNAS environments with numerous disks, where the effect is more pronounced. Secondly, users can choose to install the system on SSDs with high random read and write capabilities, greatly improving the loading speed of the system and programs, further optimizing system performance. These advantages provide users with a more flexible and efficient disk management solution.

How to Customize the System Disk?

To customize the system disk, you need to follow the instructions on the installation page during the initial installation of the TOS system. Choose the disk for installing the system and check the corresponding options to complete the customization.
Please note the following points:
1. Customizing the system disk is only possible during the initial system installation. Once the system installation is complete, you won't be able to change, add, or remove system disks.
2. When there are multiple system disks, the failure of one system disk will not affect the normal operation of the system, ensuring the reliability of data and the stability of the system.