Ask Your Question

Running out of space on my / partition

asked 2018-03-24 13:34:41 -0500

winq gravatar image

updated 2018-03-24 15:16:38 -0500

florian gravatar image

I was trying to install wireshark on fedora 27. I opened terminal and wrote sudo su And then I entered root password. Then I wrote dnf search wireshark I then chose to install wireshark-gtk.x86_64 So I wrote dnf install wireshark-gtk.x86_64 After a few downloads the installation stopped with the error message being At least 120MB more space needed on the / filesystem. I'm new to using fedora and I would really appreciate your help in finishing the wireshark installation. Thanks in advance.

edit retag flag offensive close merge delete

5 Answers

Sort by ยป oldest newest most voted

answered 2018-03-24 15:09:58 -0500

Aeyoun gravatar image

updated 2018-03-24 16:20:03 -0500

Your root disk partition (/) is full. You have to either resize the partition to be larger, attach another storage disk to the storage pool (in supported file systems), or delete some data.

Do you have a separate /home partition? If not, then you could try deleting some files from your home folder.

The following command should help you identify the 20 largest files and directories on your system. (It can take some minutes on a slow disk.) This might help identify what is filling up your disk.

du -d4 / | sort -rn | head -n20
edit flag offensive delete link more

answered 2018-03-24 17:34:55 -0500

sideburns gravatar image

If you want to get a cleaner response from du, try this: du -4 --exclude=/proc/* because the /proc part of your filesystem isn't a directory at all, but a place to store information about processes and other aspects of your system, as you'll see in Wikipedia. Creating a separate /home partition will help if, and only if you have some unpartitioned space on your disk, because then, the space that you're using for your personal files will become available for other use.

edit flag offensive delete link more

answered 2018-03-29 16:17:53 -0500

genodeftest gravatar image

You may be running into a bug in PackageKit. In case /var/cache/PackageKit is taking a lot of space on your disk and you do not want to cache all the packages, edit /etc/PackageKit/PackageKit.conf and uncomment the last line, KeepCache=false, then reboot.

Under /var/cache/PackageKit, you may also want to delete all folders from previous releases of Fedora if there are any.

edit flag offensive delete link more


Except that from the du output he posted, all of /var must be less than 2GB.

ssieb gravatar imagessieb ( 2018-03-29 23:12:48 -0500 )edit

answered 2018-04-05 10:34:09 -0500

winq gravatar image

Hi Samuel. To resolve all those problems at once, I decided to reinstall Fedora 27. This time, though, I need help creating a second, separate /home partition during installation because I'm sure Anybody can help me with that?

edit flag offensive delete link more


When you do the disk setup for the installation, just make sure you create a partition at the mountpoint /home. It appears that you have a somewhat small hard drive, so you will need to decide how much space you want to allocate. It depends on what you are going to do. e.g. if you are going to create VMs then you will need to put more space in / to account for that.

ssieb gravatar imagessieb ( 2018-04-05 18:22:17 -0500 )edit

answered 2018-03-24 16:36:07 -0500

winq gravatar image

updated 2018-03-25 18:54:06 -0500

ssieb gravatar image

Hello So I ran that command du -d4 / | sort -rn | head -n20 Here is the response I got

du: cannot read directory '/proc/9720/task/9720/net': Invalid argument
du: cannot read directory '/proc/9720/net': Invalid argument
du: cannot access '/proc/9803/task/9803/fd/3': No such file or directory
du: cannot access '/proc/9803/task/9803/fdinfo/3': No such file or directory
du: cannot access '/proc/9803/fd/4': No such file or directory
du: cannot access '/proc/9803/fdinfo/4': No such file or directory
265505940       /
215634740       /home
215634720       /home/lecrust
105945708       /home/lecrust/VirtualBox VMs
85876092        /home/lecrust/Desktop
83066008        /home/lecrust/Desktop/Clans Man
53516464        /home/lecrust/VirtualBox VMs/clans Man
52429240        /home/lecrust/VirtualBox VMs/Clans Man Vintage
41975716        /root
41943648        /root/VirtualBox VMs
41943644        /root/VirtualBox VMs/Clans Man
9767024 /home/lecrust/Videos
8457708 /home/lecrust/Downloads
5628204 /usr
5065656 /home/lecrust/Music
4304604 /home/lecrust/Videos/oath series
3971160 /home/lecrust/Downloads/Office Suite '16
2794808 /home/lecrust/Videos/GOOD BEHAVIOUR Nr
2654204 /home/lecrust/Videos/GOOD BEHAVIOR Nt
2319332 /usr/share

You should know I deleted the VirtualBox files after running that command you provided because I had unistalled the VirtualBox via root terminal a few days ago so I wouldn't need it anytime soon. I also manually looked for junk files from /home and deleted them. I would estimate them to have been about 10GiB. Thereafter I ran this command dnf install wireshark-gtk.x86_64 but I still got the same response At least 121MB more space needed on the / filesystem.

You also asked if I had a separate /home partition? No, I don't. How can I create one? If I do, will it solve the problem? Thanks

edit flag offensive delete link more


Empty your Trash bin. :)

Aeyoun gravatar imageAeyoun ( 2018-03-24 18:40:18 -0500 )edit

In addition, I would manually check /var, especially /var/cache. You can easily accumulate gigs of data there that isn't of much interest. You may want to run the command from above on /var/cache and post the output here in case you don't know yet what's behind the directories.

florian gravatar imageflorian ( 2018-03-24 20:06:46 -0500 )edit

It's too late to create a separate /home partition now, but it is a very good idea to have one. Make sure you do that the next time you install a Linux system.

ssieb gravatar imagessieb ( 2018-03-25 18:55:53 -0500 )edit

How did you delete those files and did you empty the trash after? What is the output of df -h /?

ssieb gravatar imagessieb ( 2018-03-29 23:13:48 -0500 )edit

Question Tools


Asked: 2018-03-24 13:34:41 -0500

Seen: 1,298 times

Last updated: Mar 29 '18