Jump to content

Before, when installing the system for Kali, 40G disks were allocated, but as more and more files are stored in Kali, kali's disk possession is no longer enough. So how to expand the kali disk?

First, let’s take a look at the remaining space of this unit.

df ek5bwiyx04s4391.jpg

As you can see, disk ownership has accounted for 100%.

Allocate space to kali

Run the virtual machine settings, click Add below - Add Hard Drive fealrhrzazg4392.jpg

Here I am adding 10G capacity fscl30vwwxm4393.jpg

Execute the following command in the terminal

fdisk -l Here we see the 10G capacity hard disk we just added.v4tnedrlumg4394.jpg

Next we need to partition /dev/sda

Execute the command

fdisk /dev/sda bubvb0h5nqd4395.jpg

Format partition

mke2fs -t ext4 /dev/sda 13rx5gw4qbk4396.jpg

mount disk

At this time, I want to mount the /root directory of 10G capacity

Execute the command

mount /dev/sda /root, but this can only be used once, that is, our mount will be lost after the PC is restarted, and we can set the configuration file

Modify the configuration file

The format is as follows:

UUID=Mount directory File system format Permanent Whether to backup Whether to self-check

UUID is available through blkid 5vcf3ddvh0i4397.jpg

vim /etc/fstab gmokjehkuyg4398.jpg

In this way, we have completed the expansion of the disk rqr3v1skwhu4400.jpg

0 Comments

Recommended Comments

There are no comments to display.

Guest
Add a comment...