I want to expand my filesystem, so I tried to follow this tutorial to expand it, but it did not work.

enter image description here

I had to fix it. To expand the file system of my SD-card of 16 Gb, I had to install gparted and move the partition to the entire size of my SD.

4 Answers 4


Here is the solution: Installing Kali Pi using all available storage space?

If you try download the raspi-config, please use the newest version raspi-config_20160322_all.deb

@Edit: I found working script for Kali:

wget -O /boot/raspi-expand-rootfs.sh http://dl.linhost.info/file1/raspi-expand-rootfs.sh
chmod +x /boot/raspi-expand-rootfs.sh
sh /boot/raspi-expand-rootfs.sh

Source: https://linhost.info/2015/05/expand-the-root-partition-in-kali-linux-for-the-raspberry-pi/

  • i have installed it but don't work expand file system
    – skatedan
    Commented Apr 27, 2016 at 17:23
  • 1
    So you need to follow this guide: elinux.org/RPi_Resize_Flash_Partitions
    – Huczu
    Commented Apr 27, 2016 at 17:24
  • i had modified a question, because i can't to do :(
    – skatedan
    Commented Apr 27, 2016 at 17:51
  • If you are doing it on Raspberry Pi follow this section: elinux.org/… otherwise use another sections.
    – Huczu
    Commented Apr 27, 2016 at 18:02
  • ok, when i run 'W' to write the new partition table, return me error: Re-reading the partition table failed.:Device or resource Busy
    – skatedan
    Commented Apr 27, 2016 at 18:19

A quicker solution:

  • Run apt-get install gparted

  • GUI pops up

  • Select ext4 + right click + "resize/move"
  • Get all available space + "resize"
  • "Apply All Operations"

This will do it ... sudo kalipi-config

  • This did the trick for me.
    – RasmusGP
    Commented Jun 26, 2021 at 15:01

You can do this on GParted with another computer. Open GParted, go to your SD card, unmount it, right click, and press resize/something.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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