Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm aware of the this question and these are similar issues:

But I couldn't figure it out entirely.

What I did before the error:

I accessed the tmp folder with Nautilus (sudo rights) and changed the permissions so that possibly every process is allowed to write here (that was probably very stupid).

Error analysis:

As some posts suggest in the thread I did df -h:

/dev/sda6 size: 7.4G Used: 7.1G Avail: 0 Use%: 100% Mounted on /  

However, running rm ~/.xsession-errors and mkdir ~/.xsession-errors (as suggested) did not do anything (multiple reboots inbetween). How can I check which file is so big to flood /dev/sda6 (I have a hard time to cd there) and how may I get rid of it?

I'm not an advanced user so please bear with me if I used wrong vocabulary or cannot see an obvious solution.

share|improve this question
add comment

1 Answer

You can find what is using all your space with the disk usage command du. I like to run it with sort and look at just the largest directories and files on the disk. It can take a while to run.

$ sudo du -kxa / | sort -nr | head

This will output sizes in kibibytes and file or directory names. You can then decide if you want to delete them. If none of these are good candidates to delete, change the head command to less so you can page through the output.

150598100       /
97791212        /home
96381468        /home/jrwren
76534812        /home/jrwren/things
28889860        /Photos
25209808        /home/jrwren/things/stuff
10724580        /Videos
10535196        /home/jrwren/things/stuff
8751528 /home/jrwren/pan/nmf
8555364 /Photos/2008

So now I know that /home/jrwren/things is 76GB and I can look into that directory for files to remove. Maybe I'll look into the 25GB stuff directory first.

share|improve this answer
    
Thank you. sudo du -kxa / | sort -nr | head gives me sort: write failed: /tmp/sort[6 random letters, e.g. SFyDay]: No space left on device. So the tmp folder is full right? Is there a way to reset it? Can it cause more harm to mess with this folder or is it usually resettet anyway with system boot? –  Stockfisch Feb 8 '13 at 21:51
add comment

Your Answer

 
discard

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.