hello everyone, this is my first time posting to the forum so I will try my best to provide all the necessary info.

I run a Kali Linux VM on Oracle VM Virtual Box and I recently had to resize the partition for my VM because it was at 99% capacity. I successfully increased the size by using the virtual box command in the command line on my host machine and proceeded with increasing the size on my virtual machine by booting with a GParted live image and increasing the size. Although, I had to delete the swap partition to resize since a partition must be contiguous. It worked fine and the partition size was increased but the issue I'm having is that my VM its taking a lot longer to boot. It used to boot in, oh idk, 5 -10 seconds max, now its taking 1+ minutes. Quite annoying.

These are my versions:
Oracle VM Virtual Box : Version 6.1.18 r142142 (Qt5.6.2)
Kali Linux : kali-linux-2020.1-vbox-amd64

I was able to do some research and saw someone had a similar problem after resizing a partition on Ubuntu and it had to do with the fstab file and UUID. I cant quite figure it out

here is my dmesg output after booting the VM:

[ 2.130932] sda: sda1 sda2
[ 2.131395] sd 2:0:0:0: [sda] Attached SCSI disk
[ 2.138093] sr 1:0:0:0: [sr0] scsi3-mmc drive: 32x/32x xa/form2 tray
[ 2.138095] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 2.146809] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 08:00:27:9e:2d:9e
[ 2.146812] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
[ 2.305919] usb 2-1: new full-speed USB device number 2 using ohci-pci
[ 2.342298] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 2.665646] usb 2-1: New USB device found, idVendor=80ee, idProduct=0021, bcdDevice= 1.00
[ 2.665647] usb 2-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 2.665648] usb 2-1: Product: USB Tablet
[ 2.665649] usb 2-1: Manufacturer: VirtualBox
[ 2.672279] hid: raw HID events driver (C) Jiri Kosina
[ 2.683810] usbcore: registered new interface driver usbhid
[ 2.683810] usbhid: USB HID core driver
[ 2.685919] input: VirtualBox USB Tablet as /devices/pci0000:00/0000:00:06.0/usb2/2-1/2-1:1.0/0003:80EE:0021.0001/input/input6
[ 2.686109] hid-generic 0003:80EE:0021.0001: input,hidraw0: USB HID v1.10 Mouse [VirtualBox USB Tablet] on usb-0000:00:06.0-1/input0
[ 34.486010] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 34.549015] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[ 34.666795] systemd[1]: Inserted module 'autofs4'
[ 34.686074] systemd[1]: systemd 247.3-1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[ 34.686103] systemd[1]: Detected virtualization oracle.
[ 34.686107] systemd[1]: Detected architecture x86-64.
[ 34.686961] systemd[1]: Set hostname to <kali>.
[ 34.724150] systemd-sysv-generator[444]: SysV service '/etc/init.d/mono-xsp4' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.729468] systemd-sysv-generator[444]: SysV service '/etc/init.d/rwhod' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.737375] systemd-sysv-generator[444]: SysV service '/etc/init.d/stunnel4' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.741413] systemd-sysv-generator[444]: SysV service '/etc/init.d/mysql' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.743813] systemd-sysv-generator[444]: SysV service '/etc/init.d/inetsim' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.744808] systemd-sysv-generator[444]: SysV service '/etc/init.d/ptunnel' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.747605] systemd-sysv-generator[444]: SysV service '/etc/init.d/dns2tcp' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.751913] systemd-sysv-generator[444]: SysV service '/etc/init.d/rlinetd' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.752274] systemd-sysv-generator[444]: SysV service '/etc/init.d/atftpd' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.752475] systemd-sysv-generator[444]: SysV service '/etc/init.d/xl2tpd' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.753824] systemd-sysv-generator[444]: SysV service '/etc/init.d/hddtemp' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 34.812427] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[ 34.879958] systemd[1]: Queued start job for default target Graphical Interface.

Here it looks like it gets stuck and waits from 2 seconds to 34
And again here:


[ 35.274960] input: PC Speaker as /devices/platform/pcspkr/input/input8
[ 35.468007] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[ 35.472116] intel_pmc_core intel_pmc_core.0: initialized
[ 49.875089] snd_intel8x0 0000:00:05.0: allow list rate for 1028:0177 is 48000
[ 125.230465] vboxsf: g_fHostFeatures=0x8000000f g_fSfFeatures=0x1 g_uSfLastFunction=29
[ 125.230493] vboxsf: Successfully loaded version 6.1.18_Debian
[ 125.230514] vboxsf: Successfully loaded version 6.1.18_Debian (LINUX_VERSION_CODE=0x50a13)
[ 125.290302] 22:40:35.507331 main VBoxService 6.1.18_Debian r142142 (verbosity: 0) linux.amd64 (Jan 21 2021 11:01:33) release log
22:40:35.507333 main Log opened 2021-04-08T22:40:35.507321000Z
[ 125.290349] 22:40:35.507418 main OS Product: Linux
[ 125.290379] 22:40:35.507452 main OS Release: 5.10.0-kali4-amd64
[ 125.290405] 22:40:35.507479 main OS Version: #1 SMP Debian 5.10.19-1kali1 (2021-03-03)
[ 125.290439] 22:40:35.507506 main Executable: /usr/sbin/VBoxService
22:40:35.507507 main Process ID: 726
22:40:35.507507 main Package type: LINUX_64BITS_GENERIC (OSE)
[ 125.292625] 22:40:35.509662 main 6.1.18_Debian r142142 started. Verbose level = 0
[ 125.294006] 22:40:35.511057 main vbglR3GuestCtrlDetectPeekGetCancelSupport: Supported (#1)
[ 125.405527] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[ 125.405901] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


Heres my blkid output:

/dev/sda1: UUID="1ee8460e-4367-4b35-a9b8-0dd20ca9cb94" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="00c9bcc3-01"
/dev/sda2: UUID="ad03b1a7-e00a-478b-a2ec-ab9b95110293" TYPE="swap" PARTUUID="00c9bcc3-02"

and fstab file:

# /etc/fstab
# static file system information
#
# This file is not used by the kernel, but rather by mount(8) and umount(8)
# (and some day fsck(8)). Comment lines have "#" in the first column.
#
# For more information see fstab(5) man page.
#
# device directory type options freq pass
UUID=2cda1e08-1f22-490b-9101-c93d511bc9c9 / ext4 defaults 1 1
UUID=805e7418-fc20-4dcf-830c-729781e58d1a /boot ext4 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0