Révision de Root partition size based on disk size du sam, 09/13/2025 - 21:43
Les révisions vous permettent de suivre les différences entre plusieurs versions d’un message.
The root partition is created automatically during installation when the "Erase disk and install Trisquel" option is selected.
The size of the root partition is determined during installation by the automatic partitioning scheme. From testing with different disk sizes, the following results were observed:
* 40 GiB disk → root size: 13.36 GiB
* 75 GiB disk → root size: 21.38 GiB
* 80 GiB disk → root size: 22.53 GiB
* 100 GiB disk → root size: 22.75 GiB
The values are shown with two decimals, as finer precision may vary slightly between installations. However, as shown, the root filesystem reaches its maximum practical size when the disk is around 80 GiB. Increasing the virtual disk beyond this point provides only negligible growth in the root partition. Therefore, allocating more than ~80 GiB to the disk does not significantly increase the root filesystem.
/dev/mapper/vgtrisquel-root is the root filesystem device when the default "Use LVM with the new Trisquel installation" option is selected. It cannot be resized after installation (see https://bugs.launchpad.net/ubuntu/+bug/2023637), which can make long-term use inconvenient if the partition is too small.
====Virtual machine testing====
You can reproduce these results or test against future Trisquel releases by setting up virtual machines with configurable disk sizes.
* Adjust the disk size variable:
os_variant=trisquel11 disk_size_gib=80
* Install Trisquel in a VM:
qemu-img create -f qcow2 ${os_variant}.qcow2 ${disk_size_gib}G
virt-install --name Trisquel-${disk_size_gib}GiB \
--os-variant $os_variant --vcpus 4 --memory 32000 \
--disk path=${os_variant}.qcow2 \
--cdrom ~/Downloads/trisquel_11.0.1_amd64.iso
* Run the script to generate the VM and start the Trisquel installer
* Complete the installation in the VM, reboot, and log in.
* In the VM, to check the exact root filesystem size (displayed in the same format as the list above, e.g. 13.3632 GiB), run:
df --block-size=1 | awk '$1=="/dev/mapper/vgtrisquel-root" {printf "%.2f GiB\n", $2/1024/1024/1024}'

