this post was submitted on 29 Jan 2024
47 points (94.3% liked)

Linux

48072 readers
1 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 6 years ago
MODERATORS
47
submitted 2 years ago* (last edited 2 years 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 18 comments
sorted by: hot top controversial new old
[–] Evil_incarnate@lemm.ee 18 points 2 years 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.

[–] ChristianWS@lemmy.eco.br 3 points 2 years 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.

[–] GravitySpoiled@lemmy.ml 2 points 2 years ago

Thx for eli5 the advantage of btrfs

[–] CMDR_Horn@lemmy.ml 16 points 2 years 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 2 years ago

Awesome! 😎

[–] epyon22@programming.dev 9 points 2 years 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 6 points 2 years 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 3 points 2 years 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

[–] Hiro8811@lemmy.world 2 points 2 years ago (1 children)

We'll dunno much but wouldn't the UUID of the drive partition change?

[–] CMDR_Horn@lemmy.ml 4 points 2 years ago

I don't believe it does, if It does though I can report back

[–] spittingimage@lemmy.world 1 points 2 years ago

I did something similar. I loaded an older version of Mint off a live CD to use GPartEd to resize them. It worked like a charm, no problems.

[–] Discover5164@lemm.ee 1 points 2 years ago (1 children)

what file system are you using?

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

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

[–] h3ndrik@feddit.de 1 points 2 years ago* (last edited 2 years 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 2 years ago

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