GNU GRUB: Difference between revisions

imported>Fadenb
fix grub textmode instructions
Ibizaman (talk | contribs)
m Add link to disko setup for a bios partition on GPT.
 
(6 intermediate revisions by 4 users not shown)
Line 3: Line 3:
== FAQ ==
== FAQ ==


=== How do I remove older generations from the bootloader? ===
→ See [[Bootloader#FAQ]] as those questions also applies to GRUB.


First, collect garbages in your system, then rebuild. The scripts will collect leftover files.
=== this GPT partition label contains no BIOS Boot Partition ===


The first command, in the example below, removes everything older than 14 days.
This error is caused by using grub for legacy boot with a disk formatted as GPT<ref>https://en.wikipedia.org/wiki/BIOS_boot_partition</ref>.


<syntaxhighlight lang="commands">
This can be fixed either by:
$ sudo nix-collect-garbage --delete-older-than 14d
 
$ sudo nixos-rebuild boot
* Using a MBR partition scheme
</syntaxhighlight>
* 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.}}


=== How do I use GRUB in text mode? ===
=== How do I use GRUB in text mode? ===
Line 24: 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 />
 
[[Category:Applications]][[Category:Booting]]