How to expand disk on Kali Linux (VMware)
This guide will show you how to expand your disk space in your Kali Linux VMware machine.
Last updated
This guide will show you how to expand your disk space in your Kali Linux VMware machine.
Last updated
Go into "Edit Virtual Machine Settings" in your VMware workstation player.
Click on Hard Disk (SCSI) then click expand
Type in the disk size you would like to increase it to. E.g. I did 200GB (which is adding 120GB to the default 80GB).
You should receive this message
The VMware settings are done, now we need to dive into the Linux machine and repartition the disk and expand the file system.
Sign in to your machine and make sure you are logged in as the 'root' user
Then use the fdisk command shown below to check we did the hypervisor (VMware) settings correctly.
As you can see we have a maximum capacity of 200GB in Disk /dev/SDA however, /dev/sda1 has a size of 80GB.
Next we need to use a tool called gparted which we can use to graphically manage our disk.
It should be already installed, if not install it then type: gparted to launch it.
In gparted right click on/dev/sda5 linux swap and select swapoff
Then right click on /dev/sda2 extended and click Resize/move
Expand the partition all the way across to the end. Confirm this after clicking Resize/move
Then right click /dev/sfa5 Linux swap and then resize/move
Drag this all the way across
Click OK and ignore the warning
right click on /dev/sda2 extended and then select Resize/Move
Rezise this so we create some unallocated space
On the 'Align to:' drop down select Cylinder
Now right click on /dev/sda1 ext4 and select Resize/Move
Apply all the operations by clicking the tick
The last step from here is to right click /dev/sda5 linux-swap and turn swap back on by selecting 'swapon'
Reboot your machine
Use the command
to check if it has worked after reboot.