Skip to content

Instantly share code, notes, and snippets.

View SK851831's full-sized avatar
🎯
Focusing

Santhosh Kumar SK851831

🎯
Focusing
  • Dell
  • India
View GitHub Profile
@maravedi
maravedi / ResizeKaliDisk.txt
Created April 21, 2017 13:30
Resize Kali Disk
I needed to increase my Kali VM's drive space from 7GB to 30GB because I ran out of space. I use VirtualBox, so here's how I increased the size of the virtual disk.
The virtual disk was in the vmdk format, so I had to clone that and change it to vdi so that I could expand it. Here's how I did that:
VBoxManage.exe clonehd "C:\Users\maravedi\VirtualBox VMs\Kali\Kali-disk1.vmdk" "C:\Users\maravedi\VirtualBox VMs\Kali-disk1.vdi"
VBoxManage.exe modifyhd "C:\Users\maravedi\VirtualBox VMs\Kali\Kali-disk1.vdi" --resize 30720
Next, I had to expand the root partition within the OS. I found two resposnes on AskUbuntu that, when combined, helped me solve this problem:
https://askubuntu.com/a/116367
https://askubuntu.com/a/109224