Disk Usage Analyzer does not detect files in the directory

Bug #114341 reported by Reuben Firmin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-utils (Ubuntu)
Invalid
Low
Fabio Marzocca

Bug Description

My home directory was full but I didn't know why. I ran disk usage analyzer (baobob). The %s of all listed items added up to about 8%. The biggest listed item was a folder named mp3, which was about 2.5GB. I dug around using the CLI, and found an 11GB .xsession-errors file in my home directory. This was not picked up by the disk analyzer.

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

Could you pls verify permission of those files and even if you can duplicate the problem?
Have you tried switching View->Allocated Space?

Revision history for this message
Reuben Firmin (reubenf) wrote :

Yes, this is easily reproducible.

1) Copy a DVD ISO image to your home folder. Name it .bigfile

reuben@mediabox:~$ cd ~
reuben@mediabox:~$ ls -al .bigfile
-rw-r--r-- 1 reuben reuben 3740401664 2007-05-18 08:02 .bigfile

2) Run disk analyzer

3) Where is it?

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

Disk Usage analyzer does not display single files, but folders. The file you mentioned is in your home directory and its space is summed up into /home usage space.

Make this test: run Disk Usage Analyzer WITH that file in the folder and note the total home used space. Then remove the file and re-scan your home foder. The used space should be now different.

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

More on this: remember to flush the Trash before running the second test, otherwise the used space will be the same as the Trash in into home folder!

Revision history for this message
Reuben Firmin (reubenf) wrote :

I understand, but the output does not indicate that the used space is directly *in* the home folder. It lists /home/reuben as being 100%, and then the summation underneath (the subdirs) adds up to only, say, 50%. It is not clear that the home directory itself has files that are taking up the space. Perhaps the fix would be to add an item for "files within this folder" 50% to the listing. The graphic is also inaccurate - it does not display these files.

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

The graphic displays the whole home directory and its subfolders. Try to put the file into a folder and see.
It is also straght-forward the fact that if the sub-folders sum up to 50% of home, the rest is into home itself!

Anyway, thank you very much for your suggestion. We will work on it for next release.

Changed in gnome-utils:
assignee: nobody → thesaltydog
Revision history for this message
Reuben Firmin (reubenf) wrote :

Respectfully, I disagree with it being obvious. I'm an experienced user, and I did not find the output at all obvious. The problem is that the meaning of the "home" folder, i.e. the folder at the top of the listing, is overloaded. It contains a sum of ALL of the sub folders, plus a "phantom" group of files which are not displayed anywhere in the UI. Try the above steps on some newbie users, and I bet they will be confused (i.e. unable to quickly locate the large file in the home dir).

I see what you mean about the graphic (the folder itself being in the center), but again when you mouse over you get the sum, not the specific size. I.e. when I mouse over, I get 15.8GB, which is [files not displayed anywhere].size + [subfolders].size.

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

You should consider your home folder as any other folder on your system. Let's say you have folder "foo" which is reported from Diusk Usage Analyzer to use 500 MB. This folder has then a subfolder "foosub" which is reported to contain 100 MB. So, it's easy to understand that foo contains 400 MB plus a folder of 100 MB.

Anyway, I said we will consider deeply your objection even if it is the first time it is reported from any user.

Changed in gnome-utils:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Pirx (tkruemmer) wrote :

I am having the same problem. Disk usage analyzer says:

Total filesystem capacity: 107.2 GB (used 84.8 GB, available 22.4 GB)

So far, so good. But, under "/" there is only 12 GB used, not 84.8 GB. DUA does not tell me where/what the difference of 62.4 GB are.

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

@Pirx--> Pls check if your /root/.Trash folder is empty!

Revision history for this message
Pirx (tkruemmer) wrote :

root/.trash was of course full up to the mark, clearly that was the culprit, but why does not Disk Usage Analyzer does not show it?

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

Because that folder has '700' permissions so it is not readable by others than root. DUA runs as the user. Running it as gksudo baobab would have resulted in showing the folder.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.

Changed in gnome-utils:
status: Confirmed → Incomplete
Revision history for this message
Reuben Firmin (reubenf) wrote :

This is still a problem. The output doesn't show that the files are in /home/reubenf.

Furthermore, it's gotten worse.

The "usage" percentage next to "reubenf" (if I run "scan home") is ALWAYS "100%", and ALWAYS the total size of it + subfolders. It should show how much of the overall usage is actually within the home folder (i.e. files) as opposed to in subfolders.

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

As I explained few posts before, this is not a bug.
If you scan your HOME folder, the first entry is always 100% as it is the "root" of the subsequent tree. All the subfolders to HOME refers in percentage how much space they use vs. the HOME 100%. That's normal. If you want to see how much space is using HOME folder vs. the total filesystem, run a full File System Scan.

Further, Baobab show only usage of folders, not of files (there is Nautilus for this).
i.e.: if you have just one folder in HOME directory, which is using 20% of space, ther remaining 80% of space is in home/reubenf folder.

Changed in gnome-utils:
status: Incomplete → Invalid
Revision history for this message
Reuben Firmin (reubenf) wrote :

Sorry, but you're wrong. This is a bug in the UI design.

It's a disk usage analyzer. If I "scan home", baobob should be able to indicate to me that there are large files in my home directory taking up space. I'm not asking you to show me the files directly - just make the UI clearer so that you can see that there is file usage IN home. You should treat the root of the tree differently from sub-directories, since otherwise you'll never be able to make it clear that you're counting it. "100%" is useless and duplicative information - you should change that to show the actual *contents* of the home directory.

Get a UI designer involved in the project and get his or her advice if you don't like mine.

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

The project is hosted by Gnome, and more than one UI designer are partecipating.
I will bring them your position.

As I said, make a full filesystem scan, and you will get answer to your question concerning HOME folder.

Thank you.

Revision history for this message
Alecz20 (alexguzu) wrote :

Hello,

I had some problems with the math not adding up in Disk Usage Analyzer:

Total Filesystem Capacity: 78.8 GB (used: 67.2 GB available: 11.6 GB)

But when I scan home in user mode, I get home usage to be: 27 GB

When I scan filesystem in user mode, I get filesystem usage to be: 36 GB

And when I scan filesystem in root mode, I get filesystem uage to be: 17.2 GB (with home/user to be 7.8 GB instead of 27 GB)

However, If I go in nautilus in root mode, "/" has a size of 56.4 GB which is closer to the real value, but where are those extra GB? Disk Usage Analyzer seems unable to find out no matter what mode I am running it in.

Revision history for this message
Alecz20 (alexguzu) wrote :

I think I found my problem: There were some files that were supposed to be on the network. They were mounted in my home directory using pyNeighbourhood. I was using a backup program that was supposed to backup files to that location. I think it tried to backup when the backup computer was not mounted, so it copied the files in my home directory.

Still I find it strange that Disk usage analyzed did not scan that directory in either mode

Note that during scan I unmounted all network drives.

Revision history for this message
Sumit Anantwar (sumit-anantwar) wrote :

Sorry for digging out an old thread, but it is really surprising that this issue has not been addressed yet!
This is really a bad UI as well as UX, and the solution is as simple as merely listing down the Files in a folder.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.