Raspberry Pi Using Whole SD Card Memory

When you install a Raspbian Operation System on your Raspberry Pi (I’m currently using Minibian) you can notice that it created a file system with very little space, which can be annoying if you are using a bigger SD card.

I only noticed it when I started to apt-get all those packages that I needed, when suddenly got the message:

cannot copy extracted data for './usr/sbin/php5-fpm' to '/usr/sbin/php5-fpm.dpkg-new': failed to write (No space left on device)

Looking into the SD card’s memory I get:

It’s full!!

So here is the fix:

Login as root user and follow this commands and answers in sequence:

fdisk /dev/mmcblk0
d
2
n
p
2
enter
enter
w
shutdown -r now
resize2fs /dev/mmcblk0p2

Much better now!!

2 comments on “Raspberry Pi Using Whole SD Card Memory

  1. Szalalala April 8, 2014 8:04 am

    Useful information !

    Link to Minibian is broken.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.