My PC has no HDD. I've installed Kali onto USB stick located in USB port 1 (
/dev/sda). Kali installation media was in USB port 2 (
/dev/sdb). Installation was successful.
When I put my USB stick with Kali installation in USB port 1 (
/dev/sda) it boots just fine. But when I put it in USB port 2 or USB port 3, it fails to boot.
Also when I try to put this USB stick in another PC which has HDD installed (
/dev/sda), it also fails to boot. But when I remove HDD drive from that particular PC and try to boot from my USB stick, it boots.
This is the error i'm getting:
[ 4.217127] sd 6:0:0:0: [sdb] No Caching mode page found [ 4.217223] sd 6:0:0:0: [sdb] Assuming drive cache: write through Gave up waiting for root file system device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/sda1 does not exist. Dropping to a shell! BusyBox v1.27.2 (Debian 1:1.27.2-1) built-in-shell (ash) Enter `help` for a list of built-in commands. (initramfs)
How do I fix this so my USB stick with Kali will boot from any USB port?
I don't think my question is duplicate. The problem I have is that when my
/dev/sda changes to
/dev/sdb I can no longer boot
/dev/sdb, but when it goes back to
/dev/sda it boots fine. I've tried the following steps so far:
1. I've checked if /etc/fstab contains any references to
/dev/sda. It doesn't. It uses UUID to mount root partition.