Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #26904 > unrolled thread
| Started by | T <T@invalid.invalid> |
|---|---|
| First post | 2019-05-02 01:01 -0700 |
| Last post | 2019-05-03 23:12 -0700 |
| Articles | 12 — 5 participants |
Back to article view | Back to comp.os.linux.misc
need to add Legacy boot T <T@invalid.invalid> - 2019-05-02 01:01 -0700
Re: need to add Legacy boot "Carlos E. R." <robin_listas@es.invalid> - 2019-05-02 11:14 +0200
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-02 10:42 -0700
Re: need to add Legacy boot Rich <rich@example.invalid> - 2019-05-02 21:57 +0000
Re: need to add Legacy boot Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-05-04 00:01 +0200
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-03 21:12 -0700
Re: need to add Legacy boot Bit Twister <BitTwister@mouse-potato.com> - 2019-05-02 08:05 -0500
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-02 10:47 -0700
Re: need to add Legacy boot Bit Twister <BitTwister@mouse-potato.com> - 2019-05-02 15:28 -0500
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-03 21:16 -0700
Re: need to add Legacy boot Bit Twister <BitTwister@mouse-potato.com> - 2019-05-04 00:00 -0500
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-03 23:12 -0700
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2019-05-02 01:01 -0700 |
| Subject | need to add Legacy boot |
| Message-ID | <qae847$tl6$1@dont-email.me> |
Hi All,
I have a Fedora 30 flash drive set up for dual booting
from Legacy or UEFI. It boots beautifully from UEFI.
(It also have a bios_grub partition).
It booted perfectly from both under Fedora 29.
Remaking grub.cfg, I get
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Adding boot menu entry for EFI firmware configuration
done
Uhhhhh.. I wanted legacy, not EFI.
Now when booting from legacy, it go into "System Setup".
If you press system Setup, I get a error message, which
only appears for five second and then goes back to system
setup is
error: ../../grub-core/script/function.c:109can't find command
`fwsetup`
"fwsetup" is used by the EFI boot and confirms that it is looking
for EFI
How do I get grub2-mkconfig to make me a legacy grub.cfg?
What am I missing?
Many thanks,
-T
My (not working) procedure:
UEFI.BIOS.Dual.Boot.txt:
References that stink:
https://forums.linuxmint.com/viewtopic.php?t=223015
https://bl.ocks.org/gdamjan/05b799162e4b3e97a30d37a89fed0fa8
https://forum.level1techs.com/t/configure-grub-to-boot-legacy-and-uefi/129382
Requirements:
Fedora 29
Before installing, gparted:
Wipe the target disk
create a partition table as GPT
create a first partition as
1 Meg
unformatted
set the partition flag to "bios_grub"
Install Fedora 29 from a UEFI machine:
"/home" was removed at installation and moved into "/"
--->>> PRESUMED !!! <<<---
The machine was install and booted from UEFI
The machine is mounted as /dev/sda
Install the legacy BIOS boot loader:
Boot into fedora on UEFI
only installs 3 files
# dnf reinstall grub2-pc
create the BIOS .cfg file
# grub2-mkconfig -o /boot/grub2/grub.cfg
Note: if this complains, you forgot to create the partition above
# grub2-install --removable --recheck --target=i386-pc
--boot-directory=/boot /dev/sda
[toc] | [next] | [standalone]
| From | "Carlos E. R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-05-02 11:14 +0200 |
| Message-ID | <givqntFq2k2U1@mid.individual.net> |
| In reply to | #26904 |
On 02/05/2019 10.01, T wrote:
>
> Requirements:
> Fedora 29
>
> Before installing, gparted:
> Wipe the target disk
>
> create a partition table as GPT
>
> create a first partition as
> 1 Meg
> unformatted
> set the partition flag to "bios_grub"
>
> Install Fedora 29 from a UEFI machine:
> "/home" was removed at installation and moved into "/"
Why not use a bios machine?
--
Cheers,
Carlos E.R.
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2019-05-02 10:42 -0700 |
| Message-ID | <qafa5d$9fa$1@dont-email.me> |
| In reply to | #26905 |
On 5/2/19 2:14 AM, Carlos E. R. wrote: > On 02/05/2019 10.01, T wrote: >> >> Requirements: >> Fedora 29 >> >> Before installing, gparted: >> Wipe the target disk >> >> create a partition table as GPT >> >> create a first partition as >> 1 Meg >> unformatted >> set the partition flag to "bios_grub" >> >> Install Fedora 29 from a UEFI machine: >> "/home" was removed at installation and moved into "/" > > Why not use a bios machine? > > I need dual UEFI and Legacy boot. This still goes into every and any kind of PC to help me repair them.
[toc] | [prev] | [next] | [standalone]
| From | Rich <rich@example.invalid> |
|---|---|
| Date | 2019-05-02 21:57 +0000 |
| Message-ID | <qafp4j$6d8$2@dont-email.me> |
| In reply to | #26909 |
T <T@invalid.invalid> wrote: > On 5/2/19 2:14 AM, Carlos E. R. wrote: >> On 02/05/2019 10.01, T wrote: >>> >>> Requirements: >>> Fedora 29 >>> >>> Before installing, gparted: >>> Wipe the target disk >>> >>> create a partition table as GPT >>> >>> create a first partition as >>> 1 Meg >>> unformatted >>> set the partition flag to "bios_grub" >>> >>> Install Fedora 29 from a UEFI machine: >>> "/home" was removed at installation and moved into "/" >> >> Why not use a bios machine? >> >> > > I need dual UEFI and Legacy boot. You *do* realize that whether a machine uses UEFI vs. Legacy to boot is determined by the configuration of that machines BIOS, not by the USB stick you insert, right? Your initial posting seemed to imply that you thought you could use something on the USB stick to select which boot method was being used. But the stick just responds to what the machine does, not the other way around.
[toc] | [prev] | [next] | [standalone]
| From | Pascal Hambourg <pascal@plouf.fr.eu.org> |
|---|---|
| Date | 2019-05-04 00:01 +0200 |
| Message-ID | <qaido6$2912$1@saria.nerim.net> |
| In reply to | #26915 |
Le 02/05/2019 à 23:57, Rich a écrit : > > You *do* realize that whether a machine uses UEFI vs. Legacy to boot is > determined by the configuration of that machines BIOS, not by the USB > stick you insert, right? By both, actually. > Your initial posting seemed to imply that you thought you could use > something on the USB stick to select which boot method was being used. I did not understand it that way. Only that the USB stick could be booted in either mode.
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2019-05-03 21:12 -0700 |
| Message-ID | <qaj3ff$92e$1@dont-email.me> |
| In reply to | #26918 |
On 5/3/19 3:01 PM, Pascal Hambourg wrote: > Le 02/05/2019 à 23:57, Rich a écrit : >> >> You *do* realize that whether a machine uses UEFI vs. Legacy to boot is >> determined by the configuration of that machines BIOS, not by the USB >> stick you insert, right? > > By both, actually. > >> Your initial posting seemed to imply that you thought you could use >> something on the USB stick to select which boot method was being used. > > I did not understand it that way. Only that the USB stick could be > booted in either mode. Exactly. I want it to boot in either Legacy or EFI, depending on wht the particular machine (there will be many) supports. Live USB's already do this.
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-05-02 08:05 -0500 |
| Message-ID | <slrnqclqpc.qb0.BitTwister@wb.home.test> |
| In reply to | #26904 |
On Thu, 2 May 2019 01:01:10 -0700, T wrote: > Hi All, > > I have a Fedora 30 flash drive set up for dual booting > from Legacy or UEFI. It boots beautifully from UEFI. > (It also have a bios_grub partition). > > It booted perfectly from both under Fedora 29. > > Remaking grub.cfg, I get > > # grub2-mkconfig -o /boot/grub2/grub.cfg > Generating grub configuration file ... > Adding boot menu entry for EFI firmware configuration > done > > Uhhhhh.. I wanted legacy, not EFI. I had the same kind of problem. Old grub2 had no problem noticing I had a grub2 Legacy OS UEFI install. New and improved grub2 was able to poke around in the bios and saw it would support EFI and wanted to enforce its usage. :( Solution was to get into bios on all three of my systems and change them from EFI or Legacy OS boot, to Legacy OS boot only.
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2019-05-02 10:47 -0700 |
| Message-ID | <qafafd$bpr$1@dont-email.me> |
| In reply to | #26908 |
On 5/2/19 6:05 AM, Bit Twister wrote: > On Thu, 2 May 2019 01:01:10 -0700, T wrote: >> Hi All, >> >> I have a Fedora 30 flash drive set up for dual booting >> from Legacy or UEFI. It boots beautifully from UEFI. >> (It also have a bios_grub partition). >> >> It booted perfectly from both under Fedora 29. >> >> Remaking grub.cfg, I get >> >> # grub2-mkconfig -o /boot/grub2/grub.cfg >> Generating grub configuration file ... >> Adding boot menu entry for EFI firmware configuration >> done >> >> Uhhhhh.. I wanted legacy, not EFI. > > I had the same kind of problem. Old grub2 had no problem noticing > I had a grub2 Legacy OS UEFI install. New and improved grub2 was able > to poke around in the bios and saw it would support EFI and wanted > to enforce its usage. :( > > Solution was to get into bios on all three of my systems and change > them from EFI or Legacy OS boot, to Legacy OS boot only. > Ah ha! /usr/sbin/grub2-mkconfig is bash script, so I can create my own with it tricked to think it is a legacy system I can also do a side by side of UEFI's grug.cfg and another system's legacy grub.cfg and see what the difference is so I can write my own converter. Probably need to do this every kernel upgrade too. Thank you!
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-05-02 15:28 -0500 |
| Message-ID | <slrnqcmknu.ork.BitTwister@wb.home.test> |
| In reply to | #26910 |
On Thu, 2 May 2019 10:47:24 -0700, T wrote: > On 5/2/19 6:05 AM, Bit Twister wrote: >> I had the same kind of problem. Old grub2 had no problem noticing >> I had a grub2 Legacy OS UEFI install. New and improved grub2 was able >> to poke around in the bios and saw it would support EFI and wanted >> to enforce its usage. :( >> >> Solution was to get into bios on all three of my systems and change >> them from EFI or Legacy OS boot, to Legacy OS boot only. >> > > > Ah ha! > > /usr/sbin/grub2-mkconfig is bash script, so I can create my own with > it tricked to think it is a legacy system If you only want Legacy OS boot, do check that the bios has a Legacy OS ONLY boot selection option. I would not recommend dinking around with /usr/sbin/grub2-mkconfig Next grub2 release could wipe out any changes made. > I can also do a side by side of UEFI's grug.cfg and another > system's legacy grub.cfg and see what the difference is > so I can write my own converter. > > Probably need to do this every kernel upgrade too. Yes you would. As for rolling your own grub.cfg, you place your own customization script(s) in /etc/grub.d/. File name dictates order of execution. For example, I want to use partition label for booting instead of UUID, meaningful menu entries, able to boot Mageia iso images. and Systemcd rescue isos. So I have $ [bittwister@wb grub.d]$ ls -1 *__* 10a_label_xx__grub 10a_linux_xx__grub 20a_Mageia_isos_xx__grub 20b_rescue_cd_xx__grub
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2019-05-03 21:16 -0700 |
| Message-ID | <qaj3ms$ad1$1@dont-email.me> |
| In reply to | #26913 |
On 5/2/19 1:28 PM, Bit Twister wrote: > On Thu, 2 May 2019 10:47:24 -0700, T wrote: >> On 5/2/19 6:05 AM, Bit Twister wrote: > >>> I had the same kind of problem. Old grub2 had no problem noticing >>> I had a grub2 Legacy OS UEFI install. New and improved grub2 was able >>> to poke around in the bios and saw it would support EFI and wanted >>> to enforce its usage. :( >>> >>> Solution was to get into bios on all three of my systems and change >>> them from EFI or Legacy OS boot, to Legacy OS boot only. >>> >> >> >> Ah ha! >> >> /usr/sbin/grub2-mkconfig is bash script, so I can create my own with >> it tricked to think it is a legacy system > > If you only want Legacy OS boot, do check that the bios has a Legacy OS > ONLY boot selection option. > > I would not recommend dinking around with /usr/sbin/grub2-mkconfig > Next grub2 release could wipe out any changes made. The machines I will be sticking this in will vary widely as to their support of EFI and legacy. > >> I can also do a side by side of UEFI's grug.cfg and another >> system's legacy grub.cfg and see what the difference is >> so I can write my own converter. >> >> Probably need to do this every kernel upgrade too. > > Yes you would. As for rolling your own grub.cfg, you place your own > customization script(s) in /etc/grub.d/. File name dictates order of > execution. > > For example, I want to use partition label for booting instead of UUID, > meaningful menu entries, able to boot Mageia iso images. and Systemcd > rescue isos. So I have > $ [bittwister@wb grub.d]$ ls -1 *__* > 10a_label_xx__grub > 10a_linux_xx__grub > 20a_Mageia_isos_xx__grub > 20b_rescue_cd_xx__grub > My test bed is qemu-kvm. I have a specific machine set up for Legacy and another for EFI. "40-custom" or some such. I have been looking at both a Legacy and a EFI grub.cfg and I will be danged if I can tell the difference. I think part of the problem is that in Legacy mode, I hae grub look for /boot/efi, which is on its own partition.
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-05-04 00:00 -0500 |
| Message-ID | <slrnqcq73k.dd6.BitTwister@wb.home.test> |
| In reply to | #26921 |
On Fri, 3 May 2019 21:16:27 -0700, T wrote:
> On 5/2/19 1:28 PM, Bit Twister wrote:
>> On Thu, 2 May 2019 10:47:24 -0700, T wrote:
>>> On 5/2/19 6:05 AM, Bit Twister wrote:
>>
>>>> I had the same kind of problem. Old grub2 had no problem noticing
>>>> I had a grub2 Legacy OS UEFI install. New and improved grub2 was able
>>>> to poke around in the bios and saw it would support EFI and wanted
>>>> to enforce its usage. :(
>>>>
>>>> Solution was to get into bios on all three of my systems and change
>>>> them from EFI or Legacy OS boot, to Legacy OS boot only.
>>>>
>>>
>>>
>>> Ah ha!
>>>
>>> /usr/sbin/grub2-mkconfig is bash script, so I can create my own with
>>> it tricked to think it is a legacy system
>>
>> If you only want Legacy OS boot, do check that the bios has a Legacy OS
>> ONLY boot selection option.
>>
>> I would not recommend dinking around with /usr/sbin/grub2-mkconfig
>> Next grub2 release could wipe out any changes made.
>
>
> The machines I will be sticking this in will vary widely as
> to their support of EFI and legacy.
>
>>
>>> I can also do a side by side of UEFI's grug.cfg and another
>>> system's legacy grub.cfg and see what the difference is
>>> so I can write my own converter.
>>>
>>> Probably need to do this every kernel upgrade too.
>>
>> Yes you would. As for rolling your own grub.cfg, you place your own
>> customization script(s) in /etc/grub.d/. File name dictates order of
>> execution.
>>
>> For example, I want to use partition label for booting instead of UUID,
>> meaningful menu entries, able to boot Mageia iso images. and Systemcd
>> rescue isos. So I have
>> $ [bittwister@wb grub.d]$ ls -1 *__*
>> 10a_label_xx__grub
>> 10a_linux_xx__grub
>> 20a_Mageia_isos_xx__grub
>> 20b_rescue_cd_xx__grub
>>
>
> My test bed is qemu-kvm. I have a specific machine set up for
> Legacy and another for EFI.
>
> "40-custom" or some such.
Again, file name makes a difference as to where your change script
will be executed.
As for different machines, I use the node name in the script to make any
node specific decisions as to what goes into grub.cfg.
> I have been looking at
> both a Legacy and a EFI grub.cfg and I will be danged if
> I can tell the difference.
I find using diff pretty handy to point out changes in files.
> I think part of the problem is that in Legacy mode, I
> hae grub look for /boot/efi, which is on its own partition.
A glance through my make file indicates I run
grub2-install /dev/sda
to set boot loader. I am not surem but I think if bios is set
Legacy OS it will use /dev/sda/.
If bios is set efi, it will use /boot/efi
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2019-05-03 23:12 -0700 |
| Message-ID | <qajah4$58n$1@dont-email.me> |
| In reply to | #26922 |
On 5/3/19 10:00 PM, Bit Twister wrote: > A glance through my make file indicates I run > grub2-install /dev/sda > to set boot loader. I am not surem but I think if bios is set > Legacy OS it will use/dev/sda/. > > If bios is set efi, it will use /boot/efi Yup
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.misc
csiph-web