Jump to content

GNU GRUB: Difference between revisions

From NixOS Wiki
imported>Nix
m add Software/Applications subcategory
Ibizaman (talk | contribs)
m Add link to disko setup for a bios partition on GPT.
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:


* Using a MBR partition scheme
* Using a MBR partition scheme
* Adding a <tt>BIOS boot</tt> partition among your GPT partitions.
* Adding a <tt>BIOS boot</tt> partition among your GPT partitions. See https://github.com/nix-community/disko/blob/master/example/gpt-bios-compat.nix# for an example setup using [[disko]].


{{expansion|Add the steps required here. Explain as if inside the nixos installer environment.}}
{{expansion|Add the steps required here. Explain as if inside the nixos installer environment.}}
Line 26: Line 26:
</syntaxhighlight>
</syntaxhighlight>


Only disabling the GRUB splash screen via <syntaxhighlight lang="nix" inline>boot.loader.grub.splashScreen = null;</syntaxhighlight> results in a similar output but that is not the real text only mode.
Only disabling the GRUB splash screen via <syntaxhighlight lang="nix" inline>boot.loader.grub.splashImage = null;</syntaxhighlight> results in a similar output but that is not the real text only mode.


<hr />
<hr />


[[Category:Applications]]
[[Category:Applications]][[Category:Booting]]

Latest revision as of 23:47, 1 June 2025

☶︎
This article or section needs to be expanded. Further information may be found in the related discussion page. Please consult the pedia article metapage for guidelines on contributing.

FAQ

→ See Bootloader#FAQ as those questions also applies to GRUB.

this GPT partition label contains no BIOS Boot Partition

This error is caused by using grub for legacy boot with a disk formatted as GPT[1].

This can be fixed either by:

☶︎
This article or section needs to be expanded. Further information may be found in the related discussion page. Please consult the pedia article metapage for guidelines on contributing.

How do I use GRUB in text mode?

Sometimes you need to access GRUB in text mode (e.g. when using out of band management systems like HP ILO in "textcons" mode).

To use GRUB in text mode there are two settings that need to be configured depending on whether you use EFI or BIOS boot:

boot.loader.grub.gfxmodeEfi= "text";
boot.loader.grub.gfxmodeBios= "text";

Only disabling the GRUB splash screen via boot.loader.grub.splashImage = null; results in a similar output but that is not the real text only mode.