Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I cannot access ubuntu system on my pc, the error message: "the system is running in low graphics mode" and I tried some commands I searched from internet.

I found out a problems seems there is no available disk space. I used "df" and "du" commands to check, the results are as follow:

du -j --max-depth=1
23G  ./home
3.3G ./usr 


df -Th 
filesystem   Type   size    used   available   use%    mounted on 
/dev/sda5    ext4   68G     68G    0           100%    /

how would I clean up the system for more disk space?

share|improve this question

You most probably know that you can remove a file that still in use by some application and for this application it remains available. It because file descriptor in /proc/ filesystem is held open.

So if there are such open descriptors to files already removed, space occupied by them considered as used by df (and df is right), but they can not be taken into account by du due to there are no longer filenames associated with them.

You can find all unlinked but held open files with:

# lsof | grep '(deleted)'
share|improve this answer
This just saved me. Had no idea why my disk was full, but du said it was empty. An open file handle for a 8GB file – Cheyne May 14 '14 at 20:28
How can i delete the links? – Vikas Hardia Aug 22 '14 at 5:46
Sometimes you need to execute this as root to see deleted files held open by processes of other users. – Envek 2 days ago

How can i delete the links? – Vikas Hardia Aug 22 '14 at 5:46

You must find the the process which holds the file handle. Use the command of Dmitry Alexandrov, there you see the process and pid. In our case and "old" varnish log file was the space killer.

# lsof | grep '(deleted)'
varnishlo 13978       varnishlog    3w      REG              252,1 318448027646    5926973 /var/log/varnish/varnish.log.1 (deleted)
apache2   16801         www-data    2w      REG              252,1        64550   13110120 /var/log/apache2/error.log.1 (deleted)
# service varnishlog stop
[or if there is no service script]
# kill -11 13978 (the second number of the lsof command is the pid)
[or may be] 
# kill -9 13978

Don't forget to start the service or process again if it is a demon or some other service on your computer. If you can, just reboot the computer ;)

share|improve this answer
Thanku so much for your reply :) – Vikas Hardia Sep 23 '15 at 5:53

Ok, lets check the man pages:

df - report file system disk space usage


du - estimate file space usage

Those two tools were meant for different propose. While df is to show the file system usage, du is to report the file space usage. du works from files while df works at filesystem level, reporting what the kernel says it has available. Continue reading the du manpage support this:

Summarize disk usage of each FILE, recursively for directories.

it says du works with files.

df displays the amount of disk space available on the file system containing each file name argument. If no file name is given, the space available on all currently mounted file systems is shown.

here says that df do not care about the files but the filesystem itself.

share|improve this answer

Simply said:

You ran du without root permissions. So it is not able to check the available space in /proc, /mnt, etc, folders.

df showed the total used & free space respectively.

So when you check the Linux root file system, take the du report as final.

share|improve this answer

Summarize free disk space

It displays the amount of disk space available .


Summarize disk usage.

It displays the amount of disk space used.

share|improve this answer
yes, but in the result of "df -Th", it showed 68G used. today morning when i try to access ubuntu system, it still gives "the system is running in low-graphics mode" message, but when i check the memory usage, the "df" and "du" commands shows a reasonable result. But what;s the problem with the "low-graphics mode"? – user2068965 Apr 12 '13 at 9:41
Take a look at This. – Mitch Apr 12 '13 at 11:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.