cleanup space after upgrading to ubuntu 9.10

Asked by kumar on 2010-01-30

i have upgraded from ubuntu 9.04 to ubuntu 9.10.. its on a 10 gb partition... since the upgrade its showing free space as less than 2 gb.... does ubuntu 9.10 takes so much space(around 8 gb)? if no then how to recover this space? thanks...

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Last query:
2010-01-30
Last reply:
2010-02-01
Federico Vera (fedevera) said : #1

Hi! what you need to do is clean the package cache (all the packages used in the upgrade process), to do that, open a terminal (Applications->Accessories->Terminal) and run the following command:

sudo apt-get clean

this will ask for your password, and then clean the packages (is a very quick process)

Hope it helps!

kumar (dsk1984) said : #2

hi, thanks... it cleaned up around 500 mb but its still taking 7.5 gb which i doubt, is the usual space for ubuntu...

Federico Vera (fedevera) said : #3

mmm... you could try with:

sudo apt-get autoremove

this command, removes all the dependencies that are not connected to any particular package (not used).
Remember that the system partition also hosts the applications (every app you install goes to that partition, so if you have a lot of things installed they will show as used space in your '/' partition).
You can also see which folder is using a lot of space with Applications->Accesories->'Disk Usage Analyzer', once you open it, click in 'Analyzer->Scan filesystem' (this takes a while), in the pie chart you'll see every folder and how much space is using, this should help to understand what is using so much space, so once you do it paste the folders name so we can help you find out what it is.

kumar (dsk1984) said : #4

thanks a lot for your response.. sudo apt-get autoremove gave the outcome that '0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' but disk usage analyzer and gparted are giving conflicting results... in disk usage analyzer, the file system is using just 3.6 gb(its excluding media, as media is on other other partition)... however gparted is showing that ubuntu is using around 6 gb of space and around 3 gb is free(which is again contradictory to the free space shown by the file system, 2.5 gb)... its kind of weird...

Federico Vera (fedevera) said : #5

mmm... that's weird... but no so weired... two notes on this:

1) gParted shows space in GiB[1] whilst disk usage analyzer shows them in GB[2] (hence the numeric difference)
2) Disk usage analyzer doesn't care about partitions, it considers the filesystem as a whole, so in the left side list you can discriminate the things installed in your system partition as everything that is neither 'home' nor 'media' and the resulting used space is to be considered as the sum of every folder excluding both 'home' and 'media'. In that list you should be able to view exactly what is using so much space (usually in the '/usr' folder).

[1]http://en.wikipedia.org/wiki/Gibibyte
[2]http://en.wikipedia.org/wiki/Gigabyte

hope it helps!

GREG T. (ubuntuer) said : #6

how to clean up ubuntu http://ubuntuforums.org/showthread.php?t=140920 i use this page about once a week ....

kumar (dsk1984) said : #7

interestingly the disk usage analyzer shows that excluding media '/' uses 3.6 GB whereas when in filesystem / , when i checked it through properties its 5 GB...

Sam_ (and-sam) said : #8

#1
don't mix partition with filesystem. A filesystem doesn't care about partition size.
https://help.ubuntu.com/community/RecoverLostDiskSpace
http://en.wikipedia.org/wiki/Disk_partitioning
http://en.wikipedia.org/wiki/File_system
https://help.ubuntu.com/community/LinuxFilesystemsExplained

#2
around 5% are for system usage per default.

#3
Former kernel images usually take some space.
Synaptic has a sidemenu with tab called 'status' (local or can be removed)
the line in the main window could show e.g.
linux-headers-2.6.31-14-generic

## 'autoremove' would just remove header files.
## removing header file wont remove image file.

Synaptic search for linux-image will find e.g.
linux-image-2.6.31-14-generic

To remove, right click on the line -> remove completely, then apply.
Grub will be updated automatically, the process can be viewed in the popup window -> details.
http://www.debianadmin.com/simple-package-management-with-synaptic-package-manager-in-ubuntu.html

Search for images via CLI:
dpkg -l linux-image* | grep ii
Output example:
linux-image-2.6.31-14-generic

Removal cmd e.g.:
apt-get purge linux-image-2.6.31-14-generic
Manually update Grub:
update-grub
https://answers.launchpad.net/ubuntu/+source/update-manager/+question/93412

https://help.ubuntu.com/community/Diet%20Ubuntu

Please also use bleachbit http://bleachbit.sourceforge.net/download/linux to clean your system.

And try my little app to get help on removing old kernel and optimizing Ubuntu and Firefox:
http://www.elart.it/ubuntu/mb_ubuntu_optimizer/index_en.php

Hth

Sam_ (and-sam) said : #10

Try in a terminal:
df -h

kumar (dsk1984) said : #11

hey sam, if you go through my previous comments, i am well taking care of the differences between partition and file system(almost everywhere i am comparing comparable thing)....
no there is no old kernel images... thanks...

kumar (dsk1984) said : #12

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 8.8G 5.9G 2.5G 71% /
udev 497M 264K 497M 1% /dev
none 497M 272K 497M 1% /dev/shm
none 497M 192K 497M 1% /var/run
none 497M 0 497M 0% /var/lock
none 497M 0 497M 0% /lib/init/rw
/dev/sda2 21G 13G 8.8G 59% /media/Windows 7
/dev/sda1 45G 21G 24G 47% /media/Data

Sam_ (and-sam) said : #13

> but disk usage analyzer and gparted are giving conflicting results
>> comparing comparable thing

Refer to Federicos note and
https://help.ubuntu.com/community/RecoverLostDiskSpace

# /dev/sda5 8.8G 5.9G 2.5G 71% /

5% = 0,44
5,9+2,5+0,4=8,8

> does ubuntu 9.10 takes so much space(around 8 gb)?

Recommended minimum requirements
8 GB of disk space
https://help.ubuntu.com/community/Installation/SystemRequirements

Ajesh.Avaronnan (avajesh) said : #14

the disk usage analyser analyses only the mounted partitions. but in gparted , you can see the unmounted partitions also. that is why you are getting different values.

I'm having the same problem after upgrade from Kubuntu 12.04 to 12.10

I use a SSD (80Gb), so each Mb is important for me.

Before upgrade (using kubuntu-devel-release-upgrade) my root directory was 5Gb used... Now it have 10Gb used!

I already run apt-get autoremove, aptitude clean...

Check xdiskusage below:
http://img99.imageshack.us/img99/3271/freesapce.jpg

Can you help with this problem?

Provide an answer of your own, or ask kumar for more information if necessary.

To post a message you must log in.