Disk partitioning

Default partitioning scheme

By default, the Calculate Linux partitions the disk as follows:

/dev/nvme0n1p1 swap
/dev/nvme0n1p2 10-20Gb Linux (/)
/dev/nvme0n1p3 10-20Gb Linux
/dev/nvme0n1p4 BIOS boot
/dev/nvme0n1p5 Linux (/var/calculate)
/var/calculate/home /home

Or as on the screenshot below:

Calculate default partitions

You can edit your partition preferences: choose a partition table type, use or not swap, a partition dedicated to updates, the /var/calculate partition, or else LVM. See the second screenshot:

Partition options

The pros

  1. Security Even if you run out of space on your /home, you will have some on the system partition. The system will not be damaged thus. User data placed on a separate partition will never be affected when the system is reinstalled. This is also more secure should you delete files accidentally.
  2. Fast system reinstallation If you need to reinstall the system from the start, just download the ISO image of any Calculate Linux flavour and run cl-install with no options. You do not have to stop while upgrading. The installer will select the partition update automatically, then copy all main settings and user accounts to the new system.
  3. Reliability You can always boot into the previous system if the new one fails.

Storage partition (/var/calculate)

You may have noticed that we do not suggest using a separate /home partition. In fact, /home is mounted on the data storage partition, /var/calculate, as it makes no sense to sort files in this case. Update archives and personal documents or video are the same for your system. Further partitioning would only result in inefficient use of disk space, as it is impossible to predict exactly how much space would be allocated to each partition.

No /boot partition either

There is no need for a separate /boot partition on modern computers. Obsolete manuals usually recommend using it to avoid writing to the boot section. /boot must therefore be mounted as read-only. In reality, handling a separate / boot might be rather tricky: imagine that two installed kernels have the same name, or that the separate partition has no space left at some moment. This is why auto-partitioning in Calculate Linux does not support a separate /boot. However, you can create /boot or/and any other partition before installing Calculate, and then select the 'use existing partitions' installation scheme.

Swap

By default, the swap size is set equal to the RAM size. This is generally suggested to support the hibernation mode, when the data contained in the computer's RAM is saved on the hard disk before shutdown. You can increase the suggested swap size - or use no swap at all if you do not use hibernation, and if you have enough (RAM)[apparatnye_trebovaniia) on your PC to complete your tasks.

BIOS boot

If you use GPT with Grub, you should better provide a BIOS boot partition. The installer will create it automatically if GPT is used.

Installing on one partition

If you want to test the system in a virtual machine, just check that you have [enough RAM] (apparatnye_trebovaniia) and choose installation on one partition. Uncheck all in the Installation_Type section (see the screenshot above).

Mounting additional partitions

If you need more disk space, you can add partitions. You can also reduce the occupied disk space. To do so, you should transfer some data to the data partition, mounted similarly to / home. Edit /etc/fstab to mount your partitions.