FLCat
Posts: 8
Joined: Sat Nov 23, 2013 8:36 pm

Filesystem not using whole SD card

Sat Nov 23, 2013 8:40 pm

So I was trying to install Wolfram Mathematica and got a message that I don't have enough space. I checked with df -h and it says rootfs is only 1.8G and 93% of it has been used. I have a 4Gb SD card. How can I use all of it?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Filesystem not using whole SD card

Sat Nov 23, 2013 9:02 pm

use the raspi-config script to expand it.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Filesystem not using whole SD card

Sat Nov 23, 2013 9:15 pm

use 'sudo df' to display it
use 'sudo fdisk -l /dev/mmcblk0' to see how it's partitioned and how big the partitions are.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

FLCat
Posts: 8
Joined: Sat Nov 23, 2013 8:36 pm

Re: Filesystem not using whole SD card

Sat Nov 23, 2013 9:46 pm

ShiftPlusOne wrote:use the raspi-config script to expand it.
Thanks! This worked.

Return to “Beginners”