I have a VMware workstation 12 running the latest Kali Linux image, downloaded from offensive-security.com, by default recommended image size is 40GB, but now I have exceeded the memory and I needed to expand the size of the image's disc.
While attempting to do so I have encountered a problem running the pvcreate command resulting in the following error:
Device /dev/sda3 not found (or ignored by filtering).
I have looked online for solutions for this problem, on this forum and other forums but couldn't find the right answer to help me. I have followed the steps in the tutorial given on VMWare's website on how to expand the disc space on the virtual image. The link to the steps suggested:
and followed this tutorial i found on YouTube:
How do I resolve this problem and what is causing it?
I believe I am using ext4 as the filesystem on my kali linux machine, (would be glad if someone specify me the right way to check this, i believe this might cause the problem as the VMWare website mentions the steps were specified for ext3 filesystem).
output of lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 100G 0 disk ├─sda1 8:1 0 38G 0 part / ├─sda2 8:2 0 1K 0 part ├─sda3 8:3 0 1023K 0 part └─sda5 8:5 0 2G 0 part [SWAP] sr0 11:0 1 1024M 0 rom
output of df --print-type:
Filesystem Type 1K-blocks Used Available Use% Mounted on udev devtmpfs 1010296 0 1010296 0% /dev tmpfs tmpfs 204856 6736 198120 4% /run /dev/sda1 ext4 39089504 36375684 705144 99% / tmpfs tmpfs 1024276 376 1023900 1% /dev/shm tmpfs tmpfs 5120 0 5120 0% /run/lock tmpfs tmpfs 1024276 0 1024276 0% /sys/fs/cgroup tmpfs tmpfs 204852 16 204836 1% /run/user/132 tmpfs tmpfs 204852 16 204836 1% /run/user/0
output of fdisk -l:
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf9fbdc32 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 79693823 79691776 38G 83 Linux /dev/sda2 79695870 83884031 4188162 2G 5 Extended /dev/sda3 79693824 79695869 2046 1023K 8e Linux LVM /dev/sda5 79695872 83884031 4188160 2G 82 Linux swap / Solaris Partition table entries are not in disk order.