Ask Your Question

Lost disk space on root, low disk space root

asked 2016-08-17 07:23:46 -0500

shivamtripathi gravatar image

I recently switched from fedora 23 to fedora 24. I made root ~ 16 gigs. But now it shows low disk space in the root partition, even though it is not (I think). Some points to consider :
1. I had made a backup of my previous system using another OS (Ubuntu), for which the fedora was an external partition. While restoring, I carelessly did it to the "original" location - and it got restored in /media. I later deleted it (normally, by using "move to trash" option, while using nautilus as root). There is no sign of the file anywhere now.
2. I had two users on my system. I deleted one of them (upon seeing the low disk space) using the default "Users" application. Later, I opened "sudo nautilus" and found the deleted user's file still existing. I deleted them (again using "move to trash" option).
3. I ran fsck upon boot using "touch /fsck", but it did not help.
4. Please take a look at the Disk Usage analyzers output (I don't have enough points to upload a screenshot) :
5. Important outputs :

sudo du -h -x --max-depth=1
5.6G    ./usr
27M ./etc
182M    ./opt
4.0K    ./media
64K ./.esmtp_queue
4.0K    ./mnt
1.6G    ./var
16K ./lost+found
7.4G    ./root
4.0K    ./srv
15G .
/ df -Th
Filesystem              Type      Size  Used Avail Use% Mounted on
devtmpfs                devtmpfs  2.9G     0  2.9G   0% /dev
tmpfs                   tmpfs     2.9G   33M  2.9G   2% /dev/shm
tmpfs                   tmpfs     2.9G  1.5M  2.9G   1% /run
tmpfs                   tmpfs     2.9G     0  2.9G   0% /sys/fs/cgroup
/dev/mapper/fedora-root ext4       16G   15G  143M 100% /
tmpfs                   tmpfs     2.9G   96K  2.9G   1% /tmp
/dev/mapper/fedora-home ext4       71G   28G   41G  41% /home
/dev/sda5               ext4      477M  141M  308M  32% /boot
tmpfs                   tmpfs     583M   16K  583M   1% /run/user/42
tmpfs                   tmpfs     583M   52K  583M   1% /run/user/1001
/ lsblk
sda               8:0    0 465.8G  0 disk 
├─sda1            8:1    0   100M  0 part 
├─sda2            8:2    0  38.9G  0 part 
├─sda3            8:3    0 337.7G  0 part 
├─sda4            8:4    0   512B  0 part 
├─sda5            8:5    0   500M  0 part /boot
└─sda6            8:6    0  88.7G  0 part 
  ├─fedora-root 253:0    0    16G  0 lvm  /
  ├─fedora-swap 253:1    0   512M  0 lvm  [SWAP]
  └─fedora-home 253:2    0  72.2G  0 lvm  /home
sr0              11:0    1  1024M  0 rom   

I would greatly appreciate any help :)

edit retag flag offensive close merge delete


You can do add a new lvm volume and add it to the fedora-root LVM partition follow this instructions

aeperezt gravatar imageaeperezt ( 2016-08-17 10:26:17 -0500 )edit

Your /-partition may well be full. Your /root which is located on / is already 7.4G in size. 16G-7.4G=8.5G. 8.5G- system files = something close to 0.

Do you really need to store 7.4G in /root? Why not store it in /home? Are you using user root a lot? Why?

florian gravatar imageflorian ( 2016-08-17 10:27:49 -0500 )edit

@florian I am trying to install jhbuild and then build some applications. @aeperezt Thanks, but thankfully I won't be needing that.

shivamtripathi gravatar imageshivamtripathi ( 2016-08-17 10:55:15 -0500 )edit

@florian Total used space right now is 8.1. :) I have one more question. You mentioned about system files. What are these? Where are these stored? Why don't they show up in the commands above?

shivamtripathi gravatar imageshivamtripathi ( 2016-08-17 10:59:37 -0500 )edit

The reason why your pie diagram does not show the entire content of / is because you ran it as a regular user, which does not have access to root's home directory (/root) in order to "measure" its size. So, incomplete, incorrect numbers of / are shown.

florian gravatar imageflorian ( 2016-08-17 11:54:22 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2016-08-17 10:30:28 -0500

florian gravatar image

updated 2016-08-17 11:52:30 -0500

Ah, while using Nautilus as root. That's the point. You have a "full trash".

Open Nautilus as root again (which you normally should not do!), and empty the root's trash in following location:


Or use a simple terminal command: sudo rm -rf /root/.local/share/Trash/files/*

edit flag offensive delete link more


Thank you, that worked. I was trying to open the trash using nautilus as root, but nautilus first raised an error that cannot open trash. However, then it showed trash as empty. Terminal based command worked though. :)

shivamtripathi gravatar imageshivamtripathi ( 2016-08-17 10:50:48 -0500 )edit

Question Tools

1 follower


Asked: 2016-08-17 03:04:23 -0500

Seen: 1,311 times

Last updated: Aug 17 '16