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
gparted
Select the line with the “/” Mount Point
Click Partition at the top
Click Resize
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
Select Resize
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)
https://amzn.to/3q551IO
SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y
CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu
CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9
Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4
Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L