Skip Navigation

very small system partition with LVM on debian. Is it OK?

I recently installed debian 12 using debian-12.2.0-arm64-netinst.iso. It is the only OS installed and I used the whole 500GB disk.

I selected something like guided partitioning with separate /home/ using LVM and encryption. Now that I am using my system a bit, I realize that I don't think it ever asked me how big to make the / partition and it is very small. Only 27GB.

Will this be a problem?

Or, is the LVM going to allow the partition to be resized or otherwise take up as much of the space as it requires?

 sh
    
# lsblk
NAME                    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda                       8:0    0 476.9G  0 disk  
├─sda1                    8:1    0   512M  0 part  /boot/efi
├─sda2                    8:2    0   488M  0 part  /boot
└─sda3                    8:3    0   476G  0 part  
  └─sda3_crypt          253:0    0 475.9G  0 crypt 
    ├─mycomputer--vg-root     253:1    0  27.9G  0 lvm   /
    ├─mycomputer--vg-swap_1   253:2    0   976M  0 lvm   [SWAP]
    └─mycomputer--vg-home     253:3    0   447G  0 lvm   /home

  

I tried booting into a live usb to resize the partition using gparted but I couldn't seem to do so.

If I need to reinstall and change something I'd rather do it now than later.

17 comments
  • It's fine. I give my systems a 20G or 30G root file system.

    If you use Flatpak then make sure you do user installs. If you add the remote as a user remote then all installs are user installs.

    If you use VMs then create a storage pool for the disks in your home filesystem. I create a /home/libvirt/ for this.

    Basically just be mindful not to fill your root filesystem.

    • Would you please explain (then all installs are user install). I dont use flatpack, but the last time I used it (on Tumbleweed) I remember it downloaded its applications/runtime stuff to /var/lib/flatpak then installing them to ~/.local/share/flatpak in the home folder of every user who runs those flatpak applications.

      • You added the Flatpak repo as a "system" repo with:

         undefined
                flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
        
        
          

        As such, the downloaded applications are stored by the system in /var like you said.

        If you run installs as user installs, eg:

         undefined
                flatpak --user install com.example.appname
        
        
          

        Then the application is stored in your home directory, not in /var.

        You can also add the Flatpak repo as a "user" repo, eg:

         undefined
                flatpak --user remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
        
        
          

        Now all installs will behave as if you passed --user to the install command. All installs will go to your home directory, none will go to /var

  • LVM gives you the ability to downsize and resize without having to worry about partitions boundaries. So, if you find yourself in need for storage you can downsize the home partition and grow the root.

    That said, I have debian/i3 INSTALLED ON A 16GB USB with a couple of docker containers and vscodium and it is around 10/14gb usage.

  • Add a /var partition, boot from some live system, copy over the data, delete it in the root partition after making sure it was copied ok and add the new filesystem to fstab. /var is the only place we that will grow significantly(especially when younuse flatpaks).

17 comments