reduce disk space ubuntu 8.04

Asked by Joe Camicia

A box keeps popping up that tells me I am out of disk space on Ubuntu 8.04. It tells me to get rid of files. I have less than 10 two pages docs. There are other files but I have no idea if they are important "bin" ? whatz that? Do I need it? How do I increase disk space?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
delance
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo apt-get clean

is a good way to clean space, you can also remove old kernels. You can remove openoffice and install abiword if you only use writer.

You can also install and run bleachbit as root, to clean out temporary stuff (watch you options or it will remove stuff you want to keep, also avoid options which say they will take a long time, also have as many apps closed as you can).

Revision history for this message
delance (olivier-delance) said :
#2

You can also use:
   Applications->Accessories->Disk Usage Analyser
to see which folder use most disk.

Revision history for this message
Joe Camicia (jac54) said :
#3

Sorry, I'm a computer moron. Once I see what folder is taking up the most space' how do I delete whatz on it? And how do I know if any of that indecipherable goo is important?

Also sorry-- "sudo apt get clean" ? Huh? I'm at at about the 3rd grade level.

Thanks,

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Press CTRL+ALT+T
paste the command
press ENTER

That will clean the old debs out from updates. If you run:

uname -a; dpkg -l | grep linux-image-2

as ONE command (you can copy and paste to/from terminal)

What is output??

Revision history for this message
delance (olivier-delance) said :
#5

Firstly, tell us which folders use the most space (after having run actionparsnip command).
Can you run also:
   sudo du -sk *

Revision history for this message
Joe Camicia (jac54) said :
#6

When I run that disk analyzer, the file / folder (whater you call it) "usr" has the vast majority of the space-- like 87%. I'm guessing USR stands for user. I've only saved about a dozen small documents on the desktop and in documents. So if I could figure out--

1. whatz on USR?
2. Do I need any of it?
3. How do I fling what is in USR into the trash?

I really appreciate any advice you could offer a novice. Thanks,

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

yes /usr holds most of the main binarys for your apps, they reside in /usr/bin for example

You can reduce space used as I have said above

Revision history for this message
delance (olivier-delance) said :
#8

Can you run :
   sudo du -sk /* | sort -n
then
   sudo du -sk /usr/* | sort -n
and post both results.
I'm surprised /usr uses so much disk.
Usual suspects are /var and /home.

Revision history for this message
Joe Camicia (jac54) said :
#9

OK, were gettin closer...

and I appreciate this and promise never to bother any of you again

WHERE do I type/paste in "sudo apt get clean" ? On the browswer?

There is no space to type it on the disk analyzer. Uh, where?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

in a terminal. You can launch one with

CTRL+ALT+T

Revision history for this message
Joe Camicia (jac54) said :
#11

Terminal?

Revision history for this message
Best delance (olivier-delance) said :
#12

Move mouse on Desktop, and type CTRL+ALT+T.
A window called "terminal" will open.
In this one copy/paste following commands (in terminal replace CTRL+V by MAJ+CTRL+V):
    sudo du -sm /* | sort -n
    sudo du -sm /usr/* | sort -n
    sudo du -sm /var/* | sort -n
    sudo du -sm /home/* | sort -n
Then copy/paste result in this thread.

Revision history for this message
Joe Camicia (jac54) said :
#13

I much appreciate everyone's help. Unfortunately none of the suggestions have worked or more likely I'm not implementing them correctly. I'm going to try and find a computer genius here in Sacramento and show him/her this thread. Best wishes to you all for the holidays.