[solved] how to check the discspace needed for upgrade (from 19.3 to 20)?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Thanks for the Fish
Level 2
Level 2
Posts: 72
Joined: Sat Feb 02, 2013 5:45 pm

[solved] how to check the discspace needed for upgrade (from 19.3 to 20)?

Post by Thanks for the Fish »

Good evening :)

as the title says - how do I determine if the remaining discspace suffices for an upgrade (from 19.3 to 20)?
Is all well if...

Code: Select all

mintupgrade check
...doesn't complain about it?

any help is much appreciated! :D
Last edited by LockBot on Thu Jul 27, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
"Though this be madness, yet there is method in't."
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: how to check the discspace needed for upgrade (from 19.3 to 20)?

Post by all41 »

Thanks for the Fish wrote: Fri Jan 27, 2023 7:00 pm Good evening :)

as the title says - how do I determine if the remaining discspace suffices for an upgrade (from 19.3 to 20)?
Is all well if...

Code: Select all

mintupgrade check
...doesn't complain about it?

any help is much appreciated! :D
How much space do you have available?
In finality LM20 will be about the same footprint as 19.3
Are you asking because you want to do an in-place upgrade?--or freshly installing over your 19.3?
You could show the results of terminal inquiries:

Code: Select all

lsblk
and:

Code: Select all

blkid
good suggestions will come
Everything in life was difficult before it became easy.
Thanks for the Fish
Level 2
Level 2
Posts: 72
Joined: Sat Feb 02, 2013 5:45 pm

Re: how to check the discspace needed for upgrade (from 19.3 to 20)?

Post by Thanks for the Fish »

Thanks for your support! :)
all41 wrote: Fri Jan 27, 2023 8:12 pm How much space do you have available?
GParted says I have 3.43GB unused space on /
/home is a separate partition and swap is also a partition.

I believe I can save a few more GB by removing LibreOffice, Android Studio, Firefox and Virtual Box and by cleaning up other things.
Are you asking because you want to do an in-place upgrade?
Yes.
You could show the results of terminal inquiries:

Code: Select all

lsblk

Code: Select all

~ $ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0  49,6M  1 loop /snap/snapd/17883
loop1    7:1    0  10,7M  1 loop /snap/qdl/41
loop2    7:2    0  10,7M  1 loop /snap/qdl/35
loop3    7:3    0  63,2M  1 loop /snap/core20/1738
loop4    7:4    0  63,3M  1 loop /snap/core20/1778
loop5    7:5    0  49,8M  1 loop /snap/snapd/17950
sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0  18,6G  0 part /
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0   9,3G  0 part [SWAP]
└─sda6   8:6    0 903,6G  0 part /home
sr0     11:0    1  1024M  0 rom  
and:

Code: Select all

blkid

Code: Select all

/dev/sda1: UUID="b9978085-029b-4617-9ebe-78d7a9d2458f" TYPE="ext4" PARTUUID="7095d830-01"
/dev/sda5: UUID="388c9a52-dbea-4906-8999-62403a098177" TYPE="swap" PARTUUID="7095d830-05"
/dev/sda6: UUID="5a15966a-7387-42ba-8c2e-4d97010b4e0e" TYPE="ext4" PARTUUID="7095d830-06"
Many thanks! :)

/edit: on a sidenote: Is there an easy way to tell how much discspace is being cleared by removing a program including all the depenencies?
"Though this be madness, yet there is method in't."
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: how to check the discspace needed for upgrade (from 19.3 to 20)?

Post by all41 »

GParted says I have 3.43GB unused space on /
that's not a lot of overhead even with remote /home partition. Most of my Mints are 12 to 15gb of files on 30gb partitions
with mostly empty local ~/home directories.
removing a program including all the dependencies
careful here--you have to make sure those dependencies are not dependencies of
other apps. Mostly just uninstalling apps will not free up a lot of space. Try more productive routes first.
Look at the installed kernels (Update Manager toolbar View/Linux Kernels) I keep only two, the current active and one
previous working kernel for troubleshooting purposes.
A big directory is /var/cache/apt/archives which can be safely vacated by:
apt clean
If you use a local mail client back-up and flush out the old deleted and no longer needed emails--this can be huge.
Also look at the size of /var/log. This directory can grow quickly logging repeated errors.
See pjoter's pages regarding safe cleaning:
https://easylinuxtipsproject.blogspot.c ... -mint.html
Scan your system with the Disk Usage Analyzer utility. The gui results can be telling
Everything in life was difficult before it became easy.
Petermint
Level 9
Level 9
Posts: 2983
Joined: Tue Feb 16, 2016 3:12 am

Re: how to check the discspace needed for upgrade (from 19.3 to 20)?

Post by Petermint »

I expect 18 GB will not do it. Upgrades then to be download new stuff, add new stuff, then delete old stuff. New stuff for a new version can be up to 10 GB by the time it goes through all the work files and everything. A big spring clean is the minimum.

I presume you have the home partition after the system partition. If there is plenty of space, you could move the start of the home partition up using Gparted from the live boot but it will be very slow. Whatever you do, backup, backup, backup as all the options are at risk of failure.

Backup
Backup
sudo apt autoremove
sudo apt clean
sudo apt autoclean
Delete Timeshift directory

Delete LibreOffice etc. If you are deleting with Synaptic, you see the options remove and complete remove. The regular remove leaves the settings for use when you reinstall. The main settings you need to retain are in your home directory so are not affected.

You might clean out anything you are not using. For instance, if you never use Bluetooth, you could delete it.

Do you use PPAs or anything odd? Upgrade in place tends to fail with them. A clean install is usually the best option or delete the PPAs and related software before the upgrade..
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: how to check the discspace needed for upgrade (from 19.3 to 20)?

Post by all41 »

Petermint wrote: Sat Feb 04, 2023 9:53 pm I expect 18 GB will not do it. Upgrades then to be download new stuff, add new stuff, then delete old stuff. New stuff for a new version can be up to 10 GB by the time it goes through all the work files and everything. A big spring clean is the minimum.


sudo apt autoremove
sudo apt clean
sudo apt autoclean
apt clean deletes all the archived files and
negates the need for apt autoremove and apt autoclean
Everything in life was difficult before it became easy.
Locked

Return to “Beginner Questions”