Quantcast
Viewing all articles
Browse latest Browse all 3474

Expanding root partition, editing partitions will change UUID?

Hi,

I installed Bookworm on a SATA SSD with the following partitions:
  • (EFI system)
  • /
  • /home
  • /data
I made the root partition 32GB thinking it would be enough as I have a separate home partition. This machine is used as a desktop and occasional server.

Root is now 95% full, I don't know where the space has all gone but /usr is 16GB. I'm assuming I could probably trim some log and cache files but I will probably hit this problem again sooner or later. As there is lots of space on /data I want to non-destructively resize the root partition.

My plan is to boot to another install on another drive then use fdisk to delete all partitions, resize root to be larger, create new /home and /data partitions, run resize2fs on root. Assuming this works I can restore home and data.

My question is how to get home mounted in a way that allows me to boot into the newly resized root and login?

If before I boot the new system I format the new home and data, restore home, edit /etc/fstab to modify the entry for home; but where can I get the new UUID from or will it not change?

Thanks in advance

Statistics: Posted by kegon — 2024-04-18 21:32 — Replies 3 — Views 83



Viewing all articles
Browse latest Browse all 3474

Trending Articles