theirry
Posts: 42
Joined: Sat Jul 20, 2013 6:08 pm

OS taking a lot of space?

Sun May 17, 2015 6:11 pm

When I started using the pi around 6 GB of space was already used, probably for the OS and the preinstalled software. I was just wondering if this was normal, since I have used a gigabyte of space now, half of that from doing sudo apt-get update. I was surprised that a small os like this, and its preinstalled applications would take up 6GB of space. also, it would be good if there was any way to free the space up.

Thanks once again (I think I probably been asking the majority of questions so far..)


Thierry

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: OS taking a lot of space?

Sun May 17, 2015 6:33 pm

If you have done some apt-get upgrades then you may still have the downloaded installation files stored. You no longer need those once the software is installed / upgraded. You can clear them with

Code: Select all

sudo apt-get clean
There may also be some software installed that you don't wish to use. One of those packages may be (depending on which install image you used) the Wolfram Mathematica package which takes up a lot of space. You can get rid of that with

Code: Select all

sudo apt-get purge 'wolfr*'

theirry
Posts: 42
Joined: Sat Jul 20, 2013 6:08 pm

Re: OS taking a lot of space?

Mon May 18, 2015 7:32 am

Thankyou!

User avatar
Davespice
Forum Moderator
Forum Moderator
Posts: 1665
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: OS taking a lot of space?

Mon May 18, 2015 10:28 am

Try this command:

Code: Select all

df -h
You should see something like this:

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.2G  2.6G  4.3G  38% /
/dev/root       7.2G  2.6G  4.3G  38% /
devtmpfs        214M     0  214M   0% /dev
tmpfs            44M  236K   44M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            88M     0   88M   0% /run/shm
/dev/mmcblk0p1   56M   19M   37M  34% /boot
Look at the Size and Avail column for the rootfs row (usually the first row). See I've got 4.3 GB available on mine.
If you have a NOOBS installation on your SD card some of the 8 GB of space is used up by the Raspbian recovery image.

theirry
Posts: 42
Joined: Sat Jul 20, 2013 6:08 pm

Re: OS taking a lot of space?

Mon May 18, 2015 5:37 pm

Ah ok thanks again!

Return to “Astro Pi”