simple fix to increase size of root
- Anmelden oder Registrieren um Kommentare zu schreiben
here:
"boot on a trisquel live USB
run "sudo lvresize -r -L -35G /dev/vgtrisquel/home" (reduce home)
run "sudo lvresize -r -L 35G /dev/vgtrisquel/root" (increase root)
shutdown, remove the live USB, boot"
https://trisquel.info/en/forum/root-and-swap-partition-sizeinstead of 35G I used 100G. Worked just fine, now I only have 19% of root used instead of 82%. And it was posted here two years ago: https://trisquel.info/en/forum/root-and-swap-partition-size
Might be a good idea to put that in a manual.
there's no way to edit or delete entries here, which is kind of odd and rather inconvenient, here's my revised post:
"boot on a trisquel live USB
run "sudo lvresize -r -L -35G /dev/vgtrisquel/home" (reduce home)
run "sudo lvresize -r -L 35G /dev/vgtrisquel/root" (increase root)
shutdown, remove the live USB, boot"
Instead of 35G I used 100G. Worked just fine, now I only have 19% of root used instead of 82%. And it was posted here two years ago: https://trisquel.info/en/forum/root-and-swap-partition-size
Might be a good idea to put that in a manual.
Can one do it this way also if the partitions are not encrypted?
Does lsblk show you partitions of the lvm type?
Thank you, Magic Banana! For the hp laptop lsblk shows four types: loop, disk, part, rom. So, no lvm there, I haven't done the fresh install of Trisquel 11 yet.
[ https://trisquel.info/en/forum/upgrading-trisquel-9-11-versus-fresh-only-trisquel-11 ]
This way of decreasing by a certain size, and then increasing another makes sense. I thought maybe something like this might help with the hp laptop. When I installed Trisquel 11 on the Dell laptop it gave the option for using lvm, chose that, so on the Dell lsblk shows lvm type.
Without LVM, you can still resize partitions from a live system. It is quite easy with a graphical tool such as GParted (which is on Trisquel's live system)... unless you want to shrink an XFS filesystem. That type of filesystem cannot be shrunk. It is doable with enough free space (creating the smaller partition in that free space, moving there the content of the XFS partition, that you then delete), but it is easier to simply choose the ext4 filesystem if you believe a reduction may be needed in the future (to enlarge another partition).