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?
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.
This is my one gripe with Debian's installer.
I don't mind it setting defaults like 27G for / and 10G or whatever for /tmp.
But I don't like that you can't stop it from allocating the entire volume.
If it left a few hundred GB unallocated, then it would be trivial to expand whichever one you realize you need to expand later on.
As it is, if you want to give more room to one partition or another later on, you have to shrink /home first.
If /home is ext4, that's inconvenient.
If it's XFS, though, it's a nightmare.
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.
I'm totally going to try that now! I wonder if I could use this to avoid Windows on the terrible computers at my school. Does it boot just like installation media or something?
That is why I'm actually doing it, we have a couple of old workstation with Win7 we almost never use at my workplace. I use my portable debian on these machines to practice bash scripting, python and recently docker.
I few thing to consider:
use the fastest usb drive you can get, you will be held back by its access/write speed
Install the boot loader on the usb drive.
you can install 'xrdp' to access remitly using thw windows remote desktop.
You will probably find a docker image of things you are interested in, I recently switch from codium (apt) to codercom/code-server docker image, this way I can access vscode from a browser on any worstation on my workplace.
Routing can be a bit challenging if your organisation/school use its private intranet, but I set my debain instance (with my phone attached to it in usb tithering mode) to use tinyproxy to connect to the internet from (preferably portable) firefox from any workstation at my workplace.
27G is OK. But LVM gives you ability to resize the volume at any time if you need. So don't worry about this. Check df -h, if you have less than 10G used and you are not going to install a lot of very heavy packages (e. g. games with large resources; I mean only deb-packaged ones, not Steam etc. that go into /home), it is highly likely that you will never get in trouble because of / size.
It's fine. "Only 27GB" is hardly too small for the system, even a bloated system wouldn't take that much space.
But if you must have a larger partition I think a reinstall would be easier, resize the partition is possible but because of the encryption not a straight forward thing. I wouldn't bother really.
If LVM isn't somehow mitigating the issue I will do a reinstall.
I have run out of space on / before and it is a huge pain in the ass. I do not need much room for /home on this system so I would prefer to be cautious and avoid problems down the road.
Hopefully I will be able to figure out how to specify this.... maybe a different installer image.
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).