Ubuntu – Why is the root partition on the disk full

disk-usagedual-boothome-directorypartitioningwindows

I installed Ubuntu 12.04 by doing a fresh install where there was previously Ubuntu 11.10. My computer warns me now that my disk is nearly full. After having run apt-get purge, run apt-get autoremove and emptied the Trash can, I still have this problem as shown by this screenshot of Gparted:
gparted screenshot

The disk /dev/sda7 is indeed full. I ran the Disk Usage Analyzer (Baobab) and I am still not sure of what is happening:
baobab screenshot

One of my hypothesis is that when installing Ubuntu 12.04, I didn't configure my disks well and the disk /dev/sda6 is not mounted well as /home.
Is this the reason indeed? What should I do to verify this and then to get the things fixed?


Here are a few additional details to answer the questions I received (thank you everybody):

  • My home directory is not encrypted.
  • The Backup utility (Déjà Dup) is not set for automatic backups. (I do it myself and manually.)
  • After I mount /dev/sda6, the command df -h gives

    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda7       244G  221G   12G  96% /
    udev            3,9G  4,0K  3,9G   1% /dev
    tmpfs           1,6G  904K  1,6G   1% /run
    none            5,0M     0  5,0M   0% /run/lock
    none            3,9G  164K  3,9G   1% /run/shm
    /dev/sda6       653G  189G  433G  31% /media/8ec2fa69-039b-4c52-ab1b-034d785132a1
    
  • Thanks to izx's post, I realized /dev/sda6 was not even mounted before. It contains all the documents I used to have when I was running Ubuntu 11.10.

Best Answer

One of my hypothesis is that when installing Ubuntu 12.04, I didn't configure my disks well and the disk /dev/sda6 is not mounted well as /home. Is this the reason indeed?

Yes!

What should I do to verify this

gparted clearly shows that /dev/sda6, although it contains some data, is NOT mounted as /home (or as anything).

and then to get the things fixed?

Outline: You would temporarily mount /dev/sda6, clean it up (or just format it, if the existing data doesn't matter), copy everything in your /home to it, unmount it and then set up /etc/fstab to mount it as /home from then on. Then reboot...

Official Guide on moving your home directory

Please follow this official guide which explains the process in more detail, and ask us any questions or concerns you may have in the comments.


As @jrg indicates in the comments though, if your /home is encrypted things get a little more complicated. Please ask a new question mentioning that in the title if you are in this situation.

Related Question