Not enough disk space for app installation using graphical software

i tried to install discord using graphical software but installation got canceled with a notification that i don’t have enough disk space. However i managed to install discord using terminal with no problem. Although during the install there was notification that i have very little space left in var directory.
What should i do to solve these issues?

Expand the /var partition/filesystem to allow adequate space. I would suggest at least 20 GB since you are already using almost 10 GB.
For us to see if you have enough drive space and make informed suggestions please run sudo fdisk -l and post that as preformatted text using the </> button on the toolbar.

Note that when one posts an image it cannot be searched and readers cannot quote it so images are not the preferred method of conveying info on this forum. Using preformatted text is much preferred.

edit:
When looking at that partitioning, it seems that one could remove the swap partition (sda4) and expand the /var partition (sda5) into the now open space.

Fedora does not use a swap partition by default, but instead uses virtual swap as zram.

Note that snapd also is using space in /var.

1 Like

Do not too many disk partitons,and use flatpak instead snapd

Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Apacer AS350 256
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E4D93A9C-A422-46F2-AA1C-EE169FB82F66

Device         Start       End   Sectors   Size Type
/dev/sda1       2048      4095      2048     1M BIOS boot
/dev/sda2       4096   1052671   1048576   512M Linux filesystem
/dev/sda3  363859968 437260287  73400320    35G Linux filesystem
/dev/sda4  437260288 458231807  20971520    10G Linux filesystem
/dev/sda5  458231808 475009023  16777216     8G Linux filesystem
/dev/sda6  362811392 363859967   1048576   512M EFI System
/dev/sda7  475009024 476057599   1048576   512M EFI System
/dev/sda8    1052672 362811391 361758720 172.5G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/sdb: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk model: ST320LT020-9YG14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x57568bea

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1        2048 625141759 625139712 298.1G 83 Linux


Disk /dev/zram0: 7.64 GiB, 8208252928 bytes, 2003968 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/loop0: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 55.64 MiB, 58339328 bytes, 113944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 164.82 MiB, 172830720 bytes, 337560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 91.69 MiB, 96141312 bytes, 187776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 53.24 MiB, 55824384 bytes, 109032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 114.72 MiB, 120291328 bytes, 234944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Don’t worry, you do not have too many disk partitions.

You do have /def/sda4 (/var) full and /dev/sda5 as swap which is probably not needed.

The easiest way to fix that would be to first disable disk swap by commenting out the entry in /etc/fstab for swap by adding a # character at the beginning of that line.
Following that use swapoff /dev/sda5 to disable swap on that partiton.
Then use gparted to first remove the swap partition /dev/sda5 then expand /var on /dev/sda4 into the space left open by removing the swap partition (one may need to install gparted first). This would expand /var from 10G to 18G which should allow adequate space for some time to come.

/dev/sda6 appears to be an unused efi partiton and also could be removed unless one wishes to keep it for some reason.

You also show /dev/sda1 as a bios boot partition which is not needed when doing uefi boot as it appears you are doing.

Following the use of gparted then reboot so everything is back to a stable condition.

Note however that /var is designed to be the variable size file system for things that grow over the life of your system. It contains the logs, mail, virtual machine file systems, etc. that allow flexibility in how one uses their machine. As such one normally would have several hundred free gigabyte of space for use by /var.

What do you currently have in /dev/sdb1?
It does not show as mounted in what you have posted so other options are available.

1 Like

I just recently moved from having my OS on HDD to SSD. So sdb1 is my old HDD which is currently fully free and still unused.