Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is your UEFI able to boot iso in partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
teika
Apprentice
Apprentice


Joined: 19 Feb 2011
Posts: 163
Location: YYYY-MM-DD, period. Have you ever used the Internet?

PostPosted: Sat Jul 20, 2024 5:07 am    Post subject: Is your UEFI able to boot iso in partition? Reply with quote

*EDIT* (2024-07-29): Posted the same question at Arch forum.

Suppose you have the iso image of a bootable medium in a partition, copied with dd:
  $ dd if=<iso image> of=/dev/disk/by-foo/bar bs=1M

I found at least in two PCs the UEFI boot option menu shows this iso as a choice, and in fact it is possible to boot it. (One does not even has an optical drive.) No bootloader is necessary.

Question: Can your PC boot one? Let us limit to the Gentoo Live media.

In fact I prepared two isos, the minimal (amd64) CD and the LiveGUI image, put in an external USB drive. (So you need *two* partitions in this case.) In one PC, they are shown as:
 USB Hard Drive (UEFI) - Generic External
 USB Hard Drive (UEFI) - Generic External
In the other device, the menu reads:
 DVD1-1 (<hdd id>)
 DVD2-1 (<hdd id>)
The order did not necessarily coincide with the partition order, so if you have two, there's no guess which is which.

If this is the common case, I'll tell the Handbook maintainers about this. At least, it is worth trying rather than dedicating an entire drive for installation.

In my PC without the optical drive, its dmidecode says boot from cd is supported.

# Did you know that many PCs still support boot from a floppy.? ;-)
# BTW Today even "minimal" cd is 500MiB big. Your old auntie will be surprised! ;uu

According to LLM AIs, such boot is unlikely to be possible. So perhaps this is not part of the UEFI specification, and this is little known. Maybe I'll ask this again at stackexchange/reddit.

Personally I always want to have a live medium at hand for a rescue purpose, and I have been struggling for years preparing one using grub. It's really cumbersome. To my both joy and disappointment, such effort was a waste, at least for me; dd and you're done.

EDIT:
@AndrewAmmerlaan: Thanks. Most people do not know much about such thing!
_________________
Hack of easy Shift / Ctrl / AltGr etc; save your pinkies, type without drudgery: topic 865313

BTRFS - Biden & TRump, Fools Suck.


Last edited by teika on Mon Jul 29, 2024 5:23 am; edited 2 times in total
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 415
Location: Nijmegen

PostPosted: Sun Jul 21, 2024 1:14 pm    Post subject: Reply with quote

Quote:
So perhaps this is not part of the UEFI specification


Even if it is part of the spec, the spec is not enforced and manufacturers mostly do their own thing.

When it comes to UEFI the only thing you can really be sure about is that it can boot \EFI\BOOT\BOOTX64.EFI on a FAT partition with the correct PARTTYPE, anything else is "your mileage may vary"
_________________
OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum