Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Debian (wheezy) on my Raspberry Pi, and I apparently allocated something incorrectly when setting it up awhile back. I have a 16GB SD card, and I'm only using a couple GB for the root partition.

When I plug in the card to my Mac card reader, and this is what I see.

Screenshot of partition information

It looks like I have a large chunk of unused space. How do I go about reclaiming this without wiping out my existing data/settings? Looking for command-line instructions.

share|improve this question
up vote 2 down vote accepted

You can use the raspi-config command and select "expand_root fs".

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.