When booting, it suddenly just goes to (initramfs). NOTE this will reset the VM ie you lose everything on it. I didn't research yet a way to just recover without losing data.
- type
blkid... and look for something that has ext4 (ie looks like a filesystem) fsck /dev/sda1 -y(modify this for your disk path ... this should check and fix the corrupt partitionreboot -f
...
When transferring from another computer, It says you are in emergency mode. .. journalctl -xb to view system logs... ... Press Enter to contimuie. This is probably because it is looking for a shared folder, which has changed.
You need to edit the boot instructions in the GRUB menu (the black screen with text that appears for a few seconds when you first start the VM).
- Restart the VM. 2. As soon as it starts, tap the e key on your keyboard repeatedly until you see a screen full of text.
- Use the arrow keys to find the line that starts with linux. It usually looks like this:
- linux /boot/vmlinuz-... root=UUID=... ro quiet splash
- Move your cursor to the end of that line.
- Delete the words ro quiet splash and replace them with:
- rw init=/bin/bash
- Note: rw tells Kali to let you edit files, and init=/bin/bash tells it to skip the login screen and go straight to a terminal.
- Press F10 (or Ctrl + X) to boot with these settings.
Then
- Open the drive list:
nano /etc/fstab - Look for the "Bad" line: You are looking for any line that mentions a secondary drive, a shared folder, or an old "swap" partition that might have had a different ID on your other Kali machine.
- Comment it out: Put a # at the very beginning of that line so Kali ignores it.
- Save and Exit: Press Ctrl + O, then Enter to save. Press Ctrl + X to exit.
- Force a Reboot:
- Since you bypassed the normal system, you have to "force" it to restart:
- exec /sbin/init (or just restart the VM from your VirtualBox/VMware window).
Comments: 0