This continues from my "Failed Debian 12 install..." thread earlier
today.
I can't get the USB Installation stick to boot into the Debian
installation process when I load it in UEFI mode. If I boot the USB
stick in UEFI mode it just takes me to the grub prompt.
I suspect that this is why, when I boot from the USB stick in BIOS compatibility mode the resulting installation doesn't work.
Any ideas what I need to do to get the USB stick to boot properly in
USB mode?
The hardware is a Fujitsu Esprimo Q957 system with a 2Gb NVME disk--
drive. Installation on a quite similar Fujitsu Esprimo Q556 system
goes without a hitch (though that only has SATA drives).
This continues from my "Failed Debian 12 install..." thread earlier
today.
I can't get the USB Installation stick to boot into the Debian
installation process when I load it in UEFI mode. If I boot the USB
stick in UEFI mode it just takes me to the grub prompt.
I suspect that this is why, when I boot from the USB stick in BIOS compatibility mode the resulting installation doesn't work.
Any ideas what I need to do to get the USB stick to boot properly in
USB mode?
The hardware is a Fujitsu Esprimo Q957 system with a 2Gb NVME disk--
drive. Installation on a quite similar Fujitsu Esprimo Q556 system
goes without a hitch (though that only has SATA drives).
I suspect that this is why, when I boot from the USB stick in BIOS compatibility mode the resulting installation doesn't work.
I suspect that this is why, when I boot from the USB stick in BIOS compatibility mode the resulting installation doesn't work.
Last time I did an install on a UEFI machine (most of my machines are
too old, and of the two that aren't, one is running Coreboot ๐),
I found out that if the installation media is booted in "legacy BIOS"
mode, then it can't do an install that boots via UEFI.
IOW I had 3 choices:
- Always boot using legacy BIOS mode.
- Always boot using UEFI.
- Boot the install using legacy BIOS, then manually change the install
to use grub-efi, then reboot into my EFI config to "activate" the
right `.efi` installed into the EFI partition.
I started with the first choice, and then a few months later went
through the trouble of the third which required more fiddling and
reboots than I care to admit.
Chris Green composed on 2024-11-04 12:36 (UTC):
This continues from my "Failed Debian 12 install..." thread earlier
today.
I can't get the USB Installation stick to boot into the Debian
installation process when I load it in UEFI mode. If I boot the USB
stick in UEFI mode it just takes me to the grub prompt.
I suspect that this is why, when I boot from the USB stick in BIOS compatibility mode the resulting installation doesn't work.
Any ideas what I need to do to get the USB stick to boot properly in
USB mode?
This has never happened to me, so I can do no more than speculate why.
How did you make that stick? If it contains Ventoy, try making a normal stick with
only the Bookworm .iso.
You might try pre-partitioning the NVME in GPT mode with ESP partition instead of
the current MBR mode.
It may be necessary to force UEFI boot mode by using the BBS hotkey during POST,
to get a list of devices from which to boot, and select a UEFI option matching
your USB device. It might be necessary to disable CSM for this to work.
Is a BIOS update available?
https://www.debian.org/releases/stable/amd64/ch03s06.en.html#boot-dev-select-x86
contains other options for booting an ornery UEFI BIOS. (I didn't read it through
to end before first send of this message.)
On Mon 04 Nov 2024 at 12:36:18 (+0000), Chris Green wrote:
This continues from my "Failed Debian 12 install..." thread earlier
today.
I can't get the USB Installation stick to boot into the Debian
installation process when I load it in UEFI mode. If I boot the USB
stick in UEFI mode it just takes me to the grub prompt.
It may help to know whether that's a grub> prompt
or a grub rescue> prompt. The latter takes a bit more
work to recover from.
Whichever, does typing ls produce a listing of some sort?
Basically, you have to look around to find the bits of Grub
that you need to load, find the kernel and initrd, and then
boot them.
I suspect that this is why, when I boot from the USB stick in BIOS compatibility mode the resulting installation doesn't work.
Any ideas what I need to do to get the USB stick to boot properly in
USB mode?
The hardware is a Fujitsu Esprimo Q957 system with a 2Gb NVME disk
drive. Installation on a quite similar Fujitsu Esprimo Q556 system
goes without a hitch (though that only has SATA drives).
Cheers,
David.
This continues from my "Failed Debian 12 install..." thread earlier
today.
I can't get the USB Installation stick to boot into the Debian
installation process when I load it in UEFI mode. If I boot the USB
stick in UEFI mode it just takes me to the grub prompt.
I suspect that this is why, when I boot from the USB stick in BIOS compatibility mode the resulting installation doesn't work.
Any ideas what I need to do to get the USB stick to boot properly in
USB mode?
The hardware is a Fujitsu Esprimo Q957 system with a 2Gb NVME disk
drive. Installation on a quite similar Fujitsu Esprimo Q556 system
goes without a hitch (though that only has SATA drives).
On Mon, Nov 04, 2024 at 09:09:31AM -0600, David Wright wrote:
On Mon 04 Nov 2024 at 12:36:18 (+0000), Chris Green wrote:
This continues from my "Failed Debian 12 install..." thread earlier today.
I can't get the USB Installation stick to boot into the Debian installation process when I load it in UEFI mode. If I boot the USB stick in UEFI mode it just takes me to the grub prompt.
It may help to know whether that's a grub> prompt
or a grub rescue> prompt. The latter takes a bit more
work to recover from.
It's just a "grub>".
Whichever, does typing ls produce a listing of some sort?
Oh yes:-
(proc) (memdisk) (lvm/q957--vg-swap_1) (lvm/q957--vg-root) (hd0) (hd0,apple2) (hd0,apple1) (hd0,msdos2) (hd1) (hd1,gpt1) (hd2)
(hd2,msdos5) (hd2,msdos1)
If I boot from the USB stick (isohybrid image) in Legacy mode then it
all **appears** to work, installation completes, but then the system
won't boot.
I don't see how I can opt to either "Always boot using legacy BIOS
mode" or "Always boot using UEFI".
How would I "Boot the install using legacy BIOS, then manually change
the install to use grub-efi", I can't see anywhere in the installation process that would allow me to do this.
On Mon 04 Nov 2024 at 15:27:44 (+0000), Chris Green wrote:
On Mon, Nov 04, 2024 at 09:09:31AM -0600, David Wright wrote:
On Mon 04 Nov 2024 at 12:36:18 (+0000), Chris Green wrote:
This continues from my "Failed Debian 12 install..." thread earlier today.
I can't get the USB Installation stick to boot into the Debian installation process when I load it in UEFI mode. If I boot the USB stick in UEFI mode it just takes me to the grub prompt.
It may help to know whether that's a grub> prompt
or a grub rescue> prompt. The latter takes a bit more
work to recover from.
It's just a "grub>".
Whichever, does typing ls produce a listing of some sort?
Oh yes:-
(proc) (memdisk) (lvm/q957--vg-swap_1) (lvm/q957--vg-root) (hd0) (hd0,apple2) (hd0,apple1) (hd0,msdos2) (hd1) (hd1,gpt1) (hd2)
(hd2,msdos5) (hd2,msdos1)
So hd0 is the USB stick. I'm not familiar with the view you have
there, so try things like:
ls (hd0,apple1)/
ls (hd0,apple2)/
ls (hd0,msdos2)/
I'm guessing appleX gives you a UEFI view, and msdos2 an MBR view.
If you see directories, try listing them. (Command recall should work
to save typing.)
(In the other thread, c didn't work because you were already
at the command prompt that c gives you.)
If I boot from the USB stick (isohybrid image) in Legacy mode then it
all **appears** to work, installation completes, but then the system
won't boot.
What kind of boot loader did you install? `grub-efi`, `grub-pc`,
something else?
Does your Debian install's boot fail in exactly the same way if you ask
your firmware to boot using legacy BIOS?
I don't see how I can opt to either "Always boot using legacy BIOS
mode" or "Always boot using UEFI".
In my firmware, I can/could choose which boot mode to activate.
So on the Debian side I installed `grub-pc` and on the firmware side
I activated the legacy mode. That made it boot successfully using
legacy BIOS mode.
How would I "Boot the install using legacy BIOS, then manually change
the install to use grub-efi", I can't see anywhere in the installation process that would allow me to do this.
That's why I said "manually".
Stefan
(proc) (memdisk) (lvm/q957--vg-swap_1) (lvm/q957--vg-root) (hd0) (hd0,apple2) (hd0,apple1) (hd0,msdos2) (hd1) (hd1,gpt1) (hd2)
(hd2,msdos5) (hd2,msdos1)
Felix Miata wrote:
You might try pre-partitioning the NVME in GPT mode with ESP partition instead
of the current MBR mode.
(proc) (memdisk) (lvm/q957--vg-swap_1) (lvm/q957--vg-root) (hd0) (hd0,apple2) (hd0,apple1) (hd0,msdos2) (hd1) (hd1,gpt1) (hd2)
(hd2,msdos5) (hd2,msdos1)
So hd0 is the USB stick.
I'm guessing appleX gives you a UEFI view, and msdos2 an MBR view.
The reason I used apple2 is because viewing
gdisk debian-12.7.0-amd64-netinst.iso
as a GPT partition table gives a listing with only partition 2.
I have found how to get it to install, I removed the other (SATA SSD)
disk drive. It now boots successfully, phew!
I've no idea why that second drive breaks things. I installed it when
I was still running xubuntu 24.04 and that OS could see the drive OK.
I actually copied the whole of my old (xubuntu) installation across
onto that drive.
I will try putting it back later to see if it breaks the Debian 12 installtion but for the moment I'm just relieved I've got it working
at last!
On Mon 04 Nov 2024 at 17:17:44 (+0000), Chris Green wrote:
I have found how to get it to install, I removed the other (SATA SSD)
disk drive. It now boots successfully, phew!
Good.
I've no idea why that second drive breaks things. I installed it when
I was still running xubuntu 24.04 and that OS could see the drive OK.
I actually copied the whole of my old (xubuntu) installation across
onto that drive.
So you copied the entire system, with an ESP, onto sda, and then
tried to install Debian onto nvme0n1, but always unsuccessfully
with UEFI, and apparently successfully with MBR?
What were the partitions in the old installation, and how did you
make the copy on the second disk: by copying the entire nvme0n1 disk,
or copying partitions nvme0n1p1, nvme0n1p2, etc, or just recursive
copies of the files in each partition into new filesystems created
on sda.
That information might well yield the reason that the installation
stick wouldn't boot correctly. After reading Thomas's post about
which partition is which on the stick, I think that:
grub> set root=(hd0)
grub> linux install.amd/vmlinuz
grub> initrd install.amd/initrd.gz
would likely have got the Debian installer running in UEFI mode.
I will try putting it back later to see if it breaks the Debian 12 installtion but for the moment I'm just relieved I've got it working
at last!
It shouldn't break it, because you should have a freshly written
and consistent set of efivars, ESP partition, and grub.cfg on
nvme0n1. There's one possible wrinkle that I can think of, but it
depends on how that copying onto the second drive was carried out.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 156:31:36 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,469 |