-1

I received an HP Elitebook Folio 9470m with Ubuntu Bionic Beaver installed on it. I installed the latest Ubuntu. After reinstalling the laptop and rebooting, the BIOS refused to boot: PXE-E61 Media Failure Check Cable - PXE-M0F Boot Device not Found Hard Disk Error 3F0. The harddrive is ok (tested with the BIOS itself), but the password of the BIOS is lost!

I observed that when a Live-usb_stick is present at power-up, that the computer is automatically booting from that stick! The idea is now to use a small usb-stick (4G) with a bootloader on it. The computer will call the bootloader (as it calls the live-usb-stick). The bootloader must then jump to the installed LM-partition on the hard drive. In this way the computer can be used again. Any ideas how to create such a bootloader?

  • What happens if you just copy /boot/grub/grub.cfg from your hard drive and overwrite the LiveUSB's version? – Daniel T Jan 29 '24 at 11:10
  • If you're using Ubuntu 23.10; please just say so. It can also be helpful if you're specific as to which latest Ubuntu you're using, ie. Ubuntu 23.10 Desktop? or Ubuntu 23.10 Server? – guiverc Jan 29 '24 at 12:21
  • Well, first of all. In the mean time, I tried an installation with LM 21.3 in order to verify that I encounter the same issue. It does. Now, I copied the installed grub.cfg from the hard drive to the LIVEUSB. I checked twice if the contents were the same. Strange enough I get the installation menu back. I will install Ubuntu 23.10 again and do the same procedure. – Bernard Decock Jan 29 '24 at 12:57
  • @Daniel T: I'm probably just nitpicking, but I don't think you can do that with a Live USB. Something similar should work on a Persistent USB, (mkusb). – C.S.Cameron Jan 29 '24 at 13:54
  • TIL about full install USBs. That should work better. I'm inclined to agree that my original /boot/grub/grub.cfg wouldn't work. I was only guessing, based on knowing that that file controls the boot menu on my installation, and the LiveUSB version looked similar. – Daniel T Jan 29 '24 at 14:15
  • @Daniel T: Your comment jarred my memory about a previous post I submitted that might be more what the OP wanted. (method 2 below). Thanks. – C.S.Cameron Jan 29 '24 at 14:44

2 Answers2

2

Method 2

If you want a USB that just boots to GRUB see: https://askubuntu.com/a/1269476/43926. the download, https://phillw.net/isos/linux-tools/uefi-n-bios/dd_grub-boot-template-for-uefi-n-bios.img.xz will produce a USB that only boots to GRUB, There is no OS. It is easy to use it to boot ISO's, hard drives, etc.

C.S.Cameron
  • 19,519
1

Boot a Partition on a Hard Drive from an USB stick

I do this on my office computer because I don't want to mess up it's Windows boot loader.

Step by Step

  1. Create a Full install USB similar to https://askubuntu.com/a/1403793/43926.

  2. Use Windows Disk Management to create a partition the size you want on the hard drive, (~50Gb).

  3. Boot a Live USB and use GParted to copy the Full Install's / partition to the new hard drive partition.

  4. Boot the Full Install USB and run sudo update-grub.

  5. The next time you boot the Full Install USB, you will be given the choice to boot Windows or the new Ubuntu partition.

I have not tried this with 22.10, 23.04 or 23.10 yet.

Since you are already running Ubuntu 23.10 on the hard drive, and not Windows, the procedure should be similar.

  1. Plug in a Full Install USB, update GRUB, and you should have the option to boot any OS that is on the hard drive.

I don't think that you can update-grub on a live USB.

C.S.Cameron
  • 19,519
  • 1
    I installed Ubuntu 23.10 on an USB. I didn't partition the USB. Just a clean install on the USB (hard drive was removed from the laptop). The laptop was booting from the USB! I followed the steps above and now the laptop is calling the bootloader on the USB and is then loading the proper partition on the hard drive. This solves my problem. Thank you very much. – Bernard Decock Jan 29 '24 at 15:20