Ask Your Question
0

Problem while trying to upgrade to Fedora 23 - Low Disk Space

asked 2015-12-04 07:22:47 -0500

paladini gravatar image

updated 2015-12-06 23:09:47 -0500

mether gravatar image

Hello guys,

I'm trying to upgrade my Fedora 22 to the recently released Fedora 23 and I'm having some problems related to low disk space. I'm following this tutorial to upgrade Fedora.

That's exactly what I'm trying to execute:

sudo dnf upgrade
sudo dnf system-upgrade download --releasever=23 // I'm getting stuck here
sudo dnf system-upgrade reboot

But then I have problem related to low disk space on /dev/mapper/fedora-root and the download process cannot proceed. The installation process take a lot of time and I'm tired of trying to install it, but if you need a detailed log I can run it again and paste the exactly problem here.

It's valid to remember that I'm using dual boot (Windows 8 and Fedora 22), so I don't have all of my space allocated to Fedora. However, I have lots of free space in Fedora (at least for /home/). Following you can check some commands that I had run in order to help you help me. :)

[paladini@starstuff ~]$ df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G  1.9M  3.9G   1% /dev/shm
tmpfs                    3.9G  1.4M  3.9G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/fedora-root   50G   45G  1.7G  97% /
tmpfs                    3.9G  1.8M  3.9G   1% /tmp
/dev/sda5                477M  202M  246M  46% /boot
/dev/mapper/fedora-home  266G  123G  130G  49% /home
tmpfs                    788M   16K  788M   1% /run/user/42
tmpfs                    788M   40K  788M   1% /run/user/1000

[paladini@starstuff ~]$ sudo du -hs /var/
5.4G    /var/

[paladini@starstuff ~]$ sudo du -m /var | sort -nr | head -30
5528    /var
2077    /var/lib
1561    /var/cache
1225    /var/log
1129    /var/log/journal/7e3c179d08684bb2a313fb806c4aed44
1129    /var/log/journal
791 /var/cache/yum.old/21/yum.old
791 /var/cache/yum.old/21
791 /var/cache/yum.old
707 /var/lib/dnf
656 /var/lib/dnf/system-upgrade
633 /var/cache/PackageKit
630 /var/lib/mysql
555 /var/cache/PackageKit/metadata
513 /var/cache/yum.old/21/yum.old/updates
457 /var/lib/mysql/scadabr
440 /var/cache/PackageKit/metadata/updates
421 /var/cache/PackageKit/metadata/updates/packages
420 /var/cache/yum.old/21/yum.old/updates/packages
412 /var/lib/cassandra
392 /var/lib/cassandra/commitlog
335 /var/spool/abrt
335 /var/spool
332 /var/tmp
316 /var/tmp/abrt
313 /var/spool/abrt/ccpp-2015-12-03-12:10:46-1972
209 /var/lib/rpm
138 /var/tmp/abrt/ccpp-2015-07-02-09:14:02-13287
138 /var/cache/yum.old/21/yum.old/google-chrome/packages
138 /var/cache/yum.old/21/yum.old/google-chrome

Gparted screenshot (http://i.imgur.com/dcOgtty.png): image description

Do you need other details about my environment? What can I do to solve this problem and upgrade my system to Fedora 23?

edit retag flag offensive close merge delete

Comments

Can you run baobab to find out what consumes all the space on your / partition? Are you running any servers on this system? Do you know why / is packed?

florian gravatar imageflorian ( 2015-12-04 10:46:45 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2015-12-04 13:43:55 -0500

updated 2015-12-06 13:58:10 -0500

You can use "Disk Usage Analyzer" (Gui) to find the bigger folders in clicking and moving the mouse over coloured blocks. image description

1,7 Gib is definitely not enough for an upgrade.

You can clean some folders, examples :

  • sudo rm -fr /var/tmp/
  • sudo rm -fr /var/cache/yum.old/

Limit the size of your logs (/var/log/) :

  • sudo vi /etc/systemd/journald.conf and change the value to what you want : SystemMaxUse=500M

If you use a virtual machine (VirtualBox, Qemu...), you can move the images to your /home folder.

If you want to find all files > 500Mib, run : sudo find / -type f -size +500M

edit flag offensive delete link more

Comments

Thank you! I have almost 2.6GB free now. Do I need more free space to upgrade? If so, what else can I do in order to free more space?

paladini gravatar imagepaladini ( 2015-12-05 19:03:08 -0500 )edit

@yolo can you help me?

paladini gravatar imagepaladini ( 2015-12-06 06:55:21 -0500 )edit
1

A fresh install required at least 10Gb. For an upgrade, that depends on the number/size of packages installed. The dnf upgrade plugin you already ran, will inform you.

As @sideburns advised too, you need to find what takes so many rooms on /. You can use the Disk usage analyzer (I added a screenshot) of if you prefer the cli mode : ncdu or sudo du -h --max-depth=1 / | sort -h, find...

Have you virtual machines, big games, big apps? Not easy to tell you more, we don't have other elements.

yolo gravatar imageyolo ( 2015-12-06 13:55:21 -0500 )edit

I've found the problem! Thank you for the answer, it really helped me! :)

I've installed a lot of softwares in "/opt/" folder: KairosDB, Spark, Firefox, Chrome and specially Android SDK. The last one was sizing about 27GB!! As I don't need it anymore, I've uninstalled it and now I have more than 27GB of free space at /dev/mapper/fedora-root.

For the newcomers on Linux (like I'm), remember that /dev/mapper/fedora-root includes every folder at "/", excluding "/home/*". Thank you guys!

paladini gravatar imagepaladini ( 2015-12-07 03:33:26 -0500 )edit

Glade to read you got it ! Thanks for your feedback.

yolo gravatar imageyolo ( 2015-12-07 13:41:45 -0500 )edit
1

answered 2015-12-04 17:37:29 -0500

sideburns gravatar image

Install the program bleachbit, and run it from a terminal as root (sudo bleachbit) so that you have permission to delete files you don't own. You can use this to clean up temporary files, get rid of outdated log and backup files and otherwise clean up /. Be sure to have it clean up dnf and its database while you're at it. This may well be all that you need to do to have enough room for the upgrade. And while you're at it, you may want to ask yourself why / is so full in the first place, because you're almost out of room for your system to run.

edit flag offensive delete link more

Comments

Thank you!

paladini gravatar imagepaladini ( 2015-12-07 03:33:51 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-12-04 07:22:47 -0500

Seen: 2,637 times

Last updated: Dec 06 '15