Long time, and I hit across this one scenario, and yay – we have this blog post here!
Pretty old machine with a Linux installed, and working grub, and I wanted to install another Linux variant! I got my bootable USB drive ready, but the stupid machine was not detecting it during boot-time I guess, as it never had mind to boot from it.
Similar situation can come up when you forgot the BIOS password, making it difficult for you to change the boot order. So here you go!
Let me put in steps, so that easy for someone (or even myself) to copy later!
- Insert your USB drive, boot normally, go to Grub command line – This might be probably a click of ‘c’ from the Grub menu! You will be in somewhere like
- Type in
lsand find out the correct USB drive notation and partition. In my case, it was
(hd1, msdos1)You can simply find the correct one by typing in
ls (hdx,msdosy)/or similar
- Now we have the partition, lets try booting from it! This is the tricky step, and here you go!
set root=(hd1,msdos1) linux /casper/vmlinuz.efi boot=casper noprompt noeject root=/dev/sdb1 initrd /casper/initrd.lz boot
- TADA! Here you go! If you see a prompt like
You have done something seriously wrong 🙂 Take time to go all the way from top till down again, and if it still dont work out, kindly comment!