You are not logged in.

#1 2019-09-29 08:22:13

Anarchiste
Member
Registered: 2019-09-29
Posts: 4

Change partitionning of the system

Hello guys !

My question here is about the partitioning of my system. I made a basic installation, with 4 partitions : /boot, / , SWAP and /home :

 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0   200M  0 part /boot
├─sda2   8:2    0     9G  0 part [SWAP]
├─sda3   8:3    0    50G  0 part /
└─sda4   8:4    0 872,3G  0 part /home
sr0     11:0    1  1024M  0 rom

But, now, i want to change my partitions because my root partition is almost full (7.76 GB left of 50GB). The question is quite simple, but i didn't find anything for Arch (and we all know that Arch is very cough cough stable cough cough. So, i want o ask if there is a way to change partitioning (merge root and home, or removing space from home to put it to root) without losing all my data. Or do i have to remake my whole system ?
Thanks for the futures responses, and please, excuse my kinda bad english, i'm french ^^
Anarchiste

Offline

#2 2019-09-29 08:33:29

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Change partitionning of the system

Anarchiste wrote:

i want to change my partitions [...] but i didn't find anything for Arch

Third result for wiki search "resize partition" gives Resizing partitions.

Edit: this doesn't do what you want, which is also to move partitions. Try an external tool such as gparted.

Last edited by sabroad (2019-09-29 08:37:27)


--
saint_abroad

Offline

#3 2019-09-29 09:33:53

Anarchiste
Member
Registered: 2019-09-29
Posts: 4

Re: Change partitionning of the system

So, using gparted, i won't loose any data ?

Offline

#4 2019-09-29 09:46:44

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,682
Website

Re: Change partitionning of the system

You should back up your data before you mess with partitions. Things can (and occasionally do) go wrong.

That all being said, this is an X-Y problem, your real issue is that your root partition is becoming full. 50G is a huge amount of space for /, where is it all being used? https://wiki.archlinux.org/index.php/Sy … filesystem


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2019-09-29 10:57:50

Anarchiste
Member
Registered: 2019-09-29
Posts: 4

Re: Change partitionning of the system

Thanks so much !
Thanks to the link you send, i removed like 6Gb of useless data :

┌─<luc @ Anarchiste in ~>
└─<>──» paccache -r
==> Privilege escalation required
[sudo] Mot de passe de luc : 

==> finished: 1763 packages removed (disk space saved: 6.46 GiB)

I think it's because i install lots of programs that my root partition is almost full.

Offline

#6 2019-09-29 13:06:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,529
Website

Re: Change partitionning of the system

There's likely more to it than that.  Every package in the repo installed could take around 128GB, but that's not possible to do as many of them conflict - most notably, many of the biggest packages are different conflicting builds of huge projects (e.g., tensorflow).

I once had the goal of figuring out the maximum size of installed packages that was practically possible (without hacking PKGBUILDs).  I never arrived at a number, but it'd be only a fraction of the 128GB size.

So unless you are deliberately installing every DE, every large game, every programming language and framework, etc, then I doubt your space is being eaten by your intended use.  Overgrown logs filling with errors that your system is screaming at you is a much more likely culprit.

In any case, just check.  Use `du` or `ncdu` to figure out what's actually using up all that space.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2019-09-29 13:17:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,682
Website

Re: Change partitionning of the system

paccache's defaults are rather conservative, and the existence of the Arch Linux Archive removes a lot of the need for a local rollback cache, so you can probably afford to remove more stuff with paccache.

Are you sure that your installed packages take up all that much space? Unless you're using several complete DEs, office suites, and webbrowsers, I'd be surprised to see the total size exceed 20GB. Check with https://wiki.archlinux.org/index.php/Pa … #With_size

If your packages really do take up that much space, and you really do need them (i.e. they're not orphans), then I'd still advise looking into using bind mounts to migrate large directories into your ample home partition rather than adjusting the partition table. To me, resizing filesystems and changing the partition table should only be done as a last resort (or on a system where data loss isn't a problem), and your partition layout is already more than ideal (considering the wiki only recommends / be 23-32GB)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB