You are not logged in.

#1 2020-10-18 14:30:40

pelegs
Member
Registered: 2020-10-18
Posts: 3

[SOLVED] Change partition table after installation

Back when I installed Arch, I was stupid enough to allocate only 30GB to / thinking would be enough. Well, now I have only 5.5GB left on /, and it's getting smaller by the day.

However, I do have ~408GB free on /home, and I would be ok with allocating say 50GB to / from /home. This is the output of $ fdisk -l (irrelevant details redacted):

Device            Start       End   Sectors   Size Type
/dev/nvme0n1p1     2048   1050623   1048576   512M EFI System
/dev/nvme0n1p2  1050624  62914559  61863936  29.5G Linux filesystem
/dev/nvme0n1p3 62914560  79691775  16777216     8G Linux swap
/dev/nvme0n1p4 79691776 976773119 897081344 427.8G Linux filesystem

Is there a way to allocate those 50GB to / from /home without having to copy files from one place to the other (except making a backup of my system, of course)?

Last edited by pelegs (2020-10-19 17:28:08)

Offline

#2 2020-10-18 14:35:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 10,867

Re: [SOLVED] Change partition table after installation

Shrink and move the home and swap partition appropriately, resize root.

This is quite trivial to do visually with something like  a GParted live disk. But yes it is an invasive operation that you should have made a backup for beforehand.

Last edited by V1del (2020-10-18 14:36:39)

Offline

#3 2020-10-18 14:38:35

frostschutz
Member
Registered: 2013-11-15
Posts: 990

Re: [SOLVED] Change partition table after installation

pelegs wrote:

Back when I installed Arch, I was stupid enough to allocate only 30GB to / thinking would be enough.

Usually it's plenty.

pelegs wrote:

Well, now I have only 5.5GB left on /, and it's getting smaller by the day.

After cleaning caches and logs?

Offline

#4 2020-10-18 16:31:05

Maniaxx
Member
From: .de
Registered: 2014-05-14
Posts: 317

Re: [SOLVED] Change partition table after installation

You could also overmount or symlink folders to a different drive/folder.


sys2064

Offline

#5 2020-10-19 17:27:12

pelegs
Member
Registered: 2020-10-18
Posts: 3

Re: [SOLVED] Change partition table after installation

V1del wrote:

Shrink and move the home and swap partition appropriately, resize root.
This is quite trivial to do visually with something like  a GParted live disk.

This was indeed trivial. Thanks, it worked perfectly!

V1del wrote:

But yes it is an invasive operation that you should have made a backup for beforehand.

Of course, I backed-up my entire system before playing with the partitions.

Offline

Board footer

Powered by FluxBB