this post was submitted on 29 Jan 2024
35 points (100.0% liked)

Linux

1259 readers
82 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
35
submitted 9 months ago* (last edited 9 months ago) by CMDR_Horn@lemmy.ml to c/linux@lemmy.ml
 

last year when I went back to Arch from Manjaro, I made a critical error. I'm not sure if I was just tired when partitioning things off or what. but I made my root only 20GB instead of the 50 that I had intended. I know in a lot use cases that'll be fine, but in mine, not so much. with steam compat taking up 1-2gb and keeping one version of pacman cache, I'm constantly getting the redline warning.

Tonight I plan on booting to live and resize my luks drive and hopefully not fuck it. and if I do? oh well...Timeshift will hopefully save me.

top 15 comments
sorted by: hot top controversial new old
[–] Evil_incarnate@lemm.ee 18 points 9 months ago (2 children)

I recommend next time to use btrfs. With / and /home (at least) as separate subvolumes. Each subvolume will use the space it needs, and no more. If you have a 500Gb SSD with 300Gb in /home, and 20 in / they both have 180Gb they can use.

And when you manage to fill the 500Gb, it's easy to just add another drive to the volume.

[–] GravitySpoiled@lemmy.ml 3 points 9 months ago

Thx for eli5 the advantage of btrfs

[–] ChristianWS@lemmy.eco.br 3 points 9 months ago

Btrfs is really cool, just a warning: I had a surprise when I found out the subvolumes make a device more of a hassle to mount externally, you can't just put it on an external HDD enclosure and expect it to work as painlessly as it is with more "traditional" file systems, I had to mount each subvolume manually as GUI file managers only mounted the root.

It's not complicated, but more than I'd hoped for.

[–] CMDR_Horn@lemmy.ml 16 points 9 months ago (1 children)

UPDATE

Booted to live and used gparted. had to fiddle with un-encrypting/re-encrypting the partitions in order to move everything around correctly, but everything was successful.

nothing ended up needing to be updated in boot. systemd-boot is so basic that so long as the uuids don't change, then it don't care.

All in all a good experience.

[–] h3ndrik@feddit.de 3 points 9 months ago

Awesome! 😎

[–] epyon22@programming.dev 8 points 9 months ago (1 children)

Highly recommend using lvm in the future. You can undersize your partitions and when whichever one you need more space on it's easy to grow. Also really easy to live migrate to other drives as needed. Good luck.

[–] andrew@lemmy.stuart.fun 5 points 9 months ago

And you can even do this with luks on lvm.

For future reference, you can move the pacman cache to another drive/partition.

/etc/pacman.conf

CacheDir = /path/to/cache/

[–] ShortN0te@lemmy.ml 2 points 9 months ago

Remember to make sure that all the boot configs are updated correctly after the resize. It could happen that your boot manager does not find the partition to unlock after a resize

[–] h3ndrik@feddit.de 1 points 9 months ago* (last edited 9 months ago) (1 children)

resize2fs and lvreduce? I mean if you have used LVM... It's not easy, but doable without a reinstall. Yeah. the guides also tell people to make a backup first.

[–] CMDR_Horn@lemmy.ml 2 points 9 months ago

yeah, that's been my conclusion as well. ripping off a bandaid that may break bad.

[–] Discover5164@lemm.ee 1 points 9 months ago (1 children)

what file system are you using?

[–] CMDR_Horn@lemmy.ml 1 points 9 months ago (1 children)
[–] Hellmo_Luciferrari@lemm.ee 2 points 9 months ago (1 children)
[–] CMDR_Horn@lemmy.ml 2 points 9 months ago

That's really cool, I didn't realize this was even possible.