Expanding Your Root Partition with GPARTED
Installing Kali linux onto a MicroSD card can be quick and easy. The one main drawback is the default image size of Kali for the Raspberry Pi is only 7GB, which fills up quickly. This guide will walk you through taking your default install, and expanding it to the maximum size available with your hardware.
To expand it:
apt-get update && apt-get upgrade -y
apt-get install gparted -y
Select the line with the “/” Mount Point
Click Partition at the top
In the Bar graph at the top of the dialog box you will see Yellow/White/Grey which represents used space, free space, and unallocated space.
Between the yellow and grey you can Select the area and Drag the line over to the right to the maximum size
Click the Edit tab at the top
To commit the changes, click Apply All Operations
Your Drive will grow to the maximum size and you are done!
Thanks for reading
Hardware that I use:
Raspberry Pi 4 (4gb)
SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
Western Digital 500GB WD_Black SN750 NVMe
Plugable USB C to M.2 NVMe Tool-free Enclosure