You are not logged in.

#1 2020-12-25 21:57:37

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Resize partitions

About a decade ago I installed arch on my desktop machine. I made the following partitions:

    1: 537MB fat32 esp /boot
    2: 537MB linux swap
    3: 32,7GB ext4 /
    4: 966GB ext4 /home

The disk is fully covered by the partitions. Now the / is close to full, so even the sysupdate is problematic. I thought of shrinking /home, move it to the disks end, then grow the /. But before I do it, I'd like to know, if there's anything to worry about.

Offline

#2 2020-12-25 21:59:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Resize partitions

I'd worry about trusting a 10-year-old HDD more than anything else...

Offline

#3 2020-12-26 01:30:30

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Re: Resize partitions

The disk isn't that old. And by the moment ther is no way to change it.

Offline

#4 2020-12-26 02:25:07

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

Re: Resize partitions

You installed to the disk about a decade ago, but the disk is less than 10 years old?  Is this the computer on the Tardis?  Or was it not really a decade ago (which is suggested by the ESP which believe was first supported in linux 8 years ago and fairly rare for some time after that).

In any case, that root partition should be plenty large for most uses.  What's taking up all the space?  Have you taken any steps to clean up unneeded / old data?

Last edited by Trilby (2020-12-26 02:26:13)


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

Offline

#5 2020-12-26 11:10:28

janvr
Member
Registered: 2014-12-23
Posts: 14

Re: Resize partitions

I would copy the /home to another drive, delete the partition, expand the / partition, make a new partition for /home, copy /home from the backup drive.

Offline

#6 2020-12-26 11:46:46

BrooklynOC
Member
Registered: 2020-10-14
Posts: 9

Re: Resize partitions

if you want to resize the partition of your linux system you will need to flash a usb with a software called GParted and its straight forward from there but just another recommendation get a ssd and save yourself from waiting painfully long boot times

Last edited by BrooklynOC (2020-12-26 11:48:54)

Offline

#7 2020-12-29 11:16:37

GSMiller
Member
Registered: 2020-11-23
Posts: 75

Re: Resize partitions

Trilby wrote:

You installed to the disk about a decade ago, but the disk is less than 10 years old?  Is this the computer on the Tardis?  Or was it not really a decade ago (which is suggested by the ESP which believe was first supported in linux 8 years ago and fairly rare for some time after that).

tombenko does not say that the disk is less than 10 years old. Please be polite.

tombenko, you can move partitions and rsize it with parted. But it is better to make a backup first.
I recommend unifying root and home.


A dog is a man's best friend.

Offline

#8 2020-12-29 11:43:13

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Resize partitions

If you haven't done it yet, you can use paccache to delete old package versions from your pacman cache. That can give you a bit more time.
https://wiki.archlinux.org/index.php/Pa … kage_cache


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#9 2020-12-29 14:00:09

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

Re: Resize partitions

graysky wrote:

I'd worry about trusting a 10-year-old HDD

tombenko wrote:

The disk isn't that old.

Trilbyfan wrote:

tombenko does not say that the disk is less than 10 years old. Please be polite.

QED.


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

Offline

#10 2020-12-29 21:19:02

EndUserOnly
Member
Registered: 2017-05-31
Posts: 86

Re: Resize partitions

It good that you asked. My root disk filled-up as well. I thought that 20 GB would be enough, but when ARCH implemented the core system it started filling up. Now, sda1 was root, sda2 was swap, sda5 -extended is home, the only choice I made was the size. The install did the partitioning. My plan was to have swap at the end, and root and /home side by side, then when root filled-up I would take from /home. I have no idea when I violated this theory and ended-up with /swap between the two. Swap was 3 GB. I immediately moved that to root, so now I have 3 GB to spare, which in theory should last awhile. However, when I peeled back /home to give even more space to root---- despite the free space being located between sda1, and sda5 - the system recognized it as sda6. Which looks like it is beside sda1, but the system see's it at the end. I cannot allocate it to root. Having said that, all the pro's will probably tell me why my logic is screwed-up, and you can listen in and get the info you need.

Free space that looks like it is in one place, is dependent on where the system thinks it is. Probably has something to do with logical extensions. But since I am uneducated, I have no way of knowing.

The good news is since I have 24GB of memory, I don't need swap - plus it slows you down. My system just got faster.

You might have done it already - but the post is not "SOLVED"...so, my 2 cents.

Last edited by EndUserOnly (2020-12-29 21:23:34)

Offline

#11 2021-01-06 11:14:06

GSMiller
Member
Registered: 2020-11-23
Posts: 75

Re: Resize partitions

Trilby wrote:
graysky wrote:

I'd worry about trusting a 10-year-old HDD

tombenko wrote:

The disk isn't that old.

Trilbyfan wrote:

tombenko does not say that the disk is less than 10 years old. Please be polite.

QED.

I searched arch wiki, it is a format for virtualbox:
https://wiki.archlinux.org/index.php?se … arch&go=Go
Why is virtualbox important?


A dog is a man's best friend.

Offline

#12 2021-01-06 13:29:25

StJimmy
Member
From: Rheinland
Registered: 2020-02-26
Posts: 72

Re: Resize partitions

GSMiller wrote:

I searched arch wiki, it is a format for virtualbox:
https://wiki.archlinux.org/index.php?se … arch&go=Go
Why is virtualbox important?

Q.E.D. is an initialism for the Latin "Quod erat demonstrandum", i.e. "what was to be shown", and is used to denote (definite/complete) proof or argument. It's more often translated as "Thus it has been demonstrated".


Nanos gigantum humeris insidentes.

Offline

#13 2021-01-14 07:10:39

GSMiller
Member
Registered: 2020-11-23
Posts: 75

Re: Resize partitions

But why do Trilby use latin, it's not a code language?


A dog is a man's best friend.

Offline

#14 2021-01-14 10:29:29

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

Re: Resize partitions

tombenko wrote:

Now the / is close to full, so even the sysupdate is problematic.

On such a small disk, I'd at least take a look at what's taking all the space (eg. application logs? database?) first to see if something can be done about slimming things:

# du -hx / | sort -k1,1rh | head -n40

Unless this is a server, the balance seems off for such a large system space needed to support such a small user space.


--
saint_abroad

Offline

Board footer

Powered by FluxBB