1

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.

0

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/

10
  • i have installed it but don't work expand file system
    – skatedan
    Apr 27 '16 at 17:23
  • 1
    So you need to follow this guide: elinux.org/RPi_Resize_Flash_Partitions
    – Huczu
    Apr 27 '16 at 17:24
  • i had modified a question, because i can't to do :(
    – skatedan
    Apr 27 '16 at 17:51
  • If you are doing it on Raspberry Pi follow this section: elinux.org/… otherwise use another sections.
    – Huczu
    Apr 27 '16 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
    Apr 27 '16 at 18:19
5

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"
2

This will do it ... sudo kalipi-config

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

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, privacy policy and cookie policy

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