You are not logged in.

#1 2018-03-27 19:49:03

MindfulConsumer
Member
Registered: 2018-03-27
Posts: 19

[SOLVED] How to know if there's enough free disk space for upgrade?

I haven't been doing upgrades for a couple of months (don't ask) so this one is huge!

Total Installed Size:  5142.44 MiB
Net Upgrade Size:       144.35 MiB

I had it once before just running pacman -Syu completely screwed up my system because the installation process got terminated as the partition was running out of space. This totally bricked arch and took me days to recover. I want to prevent this so I need some assurance everything will go alright.

:: Starting full system upgrade...
:: Replace attica-qt5 with extra/attica? [Y/n]
:: Replace compositeproto with extra/xorgproto? [Y/n]
:: Replace damageproto with extra/xorgproto? [Y/n]
:: Replace dmxproto with extra/xorgproto? [Y/n]
:: Replace fixesproto with extra/xorgproto? [Y/n]
:: Replace fontsproto with extra/xorgproto? [Y/n]
:: Replace gtk3-print-backends with extra/gtk3? [Y/n]
:: Replace inputproto with extra/xorgproto? [Y/n]
:: Replace kbproto with extra/xorgproto? [Y/n]
:: Replace mime-types with extra/mailcap? [Y/n]
:: Replace randrproto with extra/xorgproto? [Y/n]
:: Replace recordproto with extra/xorgproto? [Y/n]
:: Replace renderproto with extra/xorgproto? [Y/n]
:: Replace scrnsaverproto with extra/xorgproto? [Y/n]
:: Replace videoproto with extra/xorgproto? [Y/n]
:: Replace xextproto with extra/xorgproto? [Y/n]
:: Replace xf86dgaproto with extra/xorgproto? [Y/n]
:: Replace xf86vidmodeproto with extra/xorgproto? [Y/n]
:: Replace xineramaproto with extra/xorgproto? [Y/n]
:: Replace xproto with extra/xorgproto? [Y/n]
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency
warning: dependency cycle detected:
warning: libffado will be installed before its jack2 dependency
warning: dependency cycle detected:
warning: phonon-qt4-gstreamer will be installed before its phonon-qt4 dependency
warning: dependency cycle detected:
warning: phonon-qt5-gstreamer will be installed before its phonon-qt5 dependency
warning: dependency cycle detected:
warning: lib32-harfbuzz will be installed before its lib32-freetype2 dependency
warning: dependency cycle detected:
warning: rubygems will be installed before its ruby dependency

As far as I can tell the dependency cycles don't need to cause problems, but the problem might be that I only have 2.3GB free space on the partition. I already moved /var/cache/pacman/pkg directory to external hard drive and applied localepurge so can't make any more space.

Last edited by MindfulConsumer (2018-12-20 13:57:12)

Offline

#2 2018-03-27 19:51:09

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

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

man pacman.conf
/checkspace

?

Offline

#3 2018-03-27 19:59:01

MindfulConsumer
Member
Registered: 2018-03-27
Posts: 19

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

I never did anything to pacman.conf and it's commented out so it does that by default.

Last edited by MindfulConsumer (2018-12-20 14:00:04)

Offline

#4 2018-03-27 20:06:16

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

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

MindfulConsumer wrote:

I never did anything to pacman.conf and it's commented out

One of those two claims is false.

In any case, how much free space do you have?  Do you ever clear your package cache?  What's taking up all the space on your device?


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

Offline

#5 2018-03-27 20:15:42

MindfulConsumer
Member
Registered: 2018-03-27
Posts: 19

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

By commented out I tried to say there is not a # in the front of it so the option is enabled, should I use different terminology?

As stated I have 2.3GB free space, I moved the package directory and I don't know I guess programs these days take a lot more space than they used to!

Last edited by MindfulConsumer (2018-12-20 13:59:47)

Offline

#6 2018-03-27 20:32:59

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

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

MindfulConsumer wrote:

by commented out I tried to say there is not a # in the front of it so the option is enabled - should I use different terminology?

So by "commented out" you actually mean "not commented out".  Gotcha. tongue

Lines starting with a '#' are ignored, they are commented out.

MindfulConsumer wrote:

I have 2.3GB free space

2.3GB is more than 144MB, so I'm not sure what the problem would be.  Your package cache may get quite full, but I doubt it could take that much space.

MindfulConsumer wrote:

I moved the package directory

What?  What does this mean?  This does not sound good.

MindfulConsumer wrote:

I guess programs these days take a lot more space than they used to.

What is this based on, you current upgrade will result in a 2.8% increase in size - hardly noteworthy.


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

Offline

#7 2018-03-27 20:48:13

MindfulConsumer
Member
Registered: 2018-03-27
Posts: 19

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

Trilby wrote:
MindfulConsumer wrote:

by commented out I tried to say there is not a # in the front of it so the option is enabled - should I use different terminology?

So by "commented out" you actually mean "not commented out".  Gotcha. tongue

Lines starting with a '#' are ignored, they are commented out.

I thought if you make a comment you have to put the # in front so if there's no # in front it's commented out tongue guess I'm in the right place tongue

2.3GB is more than 144MB

5.1GB is more than 2.3GB - if it had to install all those packages on an empty drive it would need 5.1GB that's why I'm worried.  The cache folder I symlinked it to an external harddrive to save space.

What is this based on, you current upgrade will result in a 2.8% increase in size - hardly noteworthy.

I used to be fine with a 10GB / partition, me using the computer didn't change a lot but using pretty much the same software-set I now even 32GB is nearly not enough, I hope it's still enough tongue

Last edited by MindfulConsumer (2018-12-20 13:59:15)

Offline

#8 2018-03-27 20:57:08

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

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

MindfulConsumer wrote:

5.1GB is more than 2.3GB - if it had to install all those packages on an empty drive it would need 5.1GB that's why I'm worried.

But you are not installing them on an empty drive, this is what the net change value is for.  If the cache is on a different drive, you really only need 144 MB more than you are currently using.  That's it.


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

Offline

#9 2018-03-27 21:10:21

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

And if the cache is in the same drive you only need the total download size  + net upgrade size, not the total install size  + net upgrade size. The difference between those are usually in the 2-10x range, depending on what is being updated.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2018-03-28 09:14:55

MindfulConsumer
Member
Registered: 2018-03-27
Posts: 19

Re: [SOLVED] How to know if there's enough free disk space for upgrade?

I did it! took a while and made computer unusable but this morning I rebooted and everything (except that compiz is replaced by metacity) still usable! great relief! tnx people!

Now I'm going to run the 'yaourt -Syu --aur' command.

edit; after updating everything from AUR compiz is working again.. excellent!

Last edited by MindfulConsumer (2018-12-20 12:21:18)

Offline

Board footer

Powered by FluxBB