Search This Blog

Friday, January 10, 2020

kali stuck on boot

if kali starts giving weird kernel panic or the logo doesnt go away
or the blinking cursor.

first try the grub  edit by pressing e button on boot.

remove the splash and let it boot in quiet mode.
try to get the shell via ctrl f 2/3 if doesnt work . 


try to go advanced mode  of the kali .and try rescue mode
refer stack overflow on how to fix the corrupted file system.

if not able to land on command line do the below


=========================
download kali live lite iso 

add it as an optical drive to virtual box
change boot order. 
boot to kali lite iso live cd .
go to terminal and 
mount the corrupted sda partition on the live cd 

find the partition via df or there is an icon on desktop just
mount the volume. 
now once you have the file system access of the corrupted vdi

sudo apt-get -o Dir=/media/partitioni1 update

partition above  is the random number you saw on df 
something like /media/asdfasd

if face any error,try to copy  files from local file system to the target file system. 

if there are missing files and kernel is panicking because of that try to paste 
those shared objects or files.

once pasted try to go root on the partition 

chroot /media/partition sdfsdfsd

dpkg --root=/mnt/partition1 -i mypackage.deb

if a package is corrupted try to install it manually , download the deb offline. 
#kalibootstuck # kalinotbooting