User Tools

Site Tools


linux:grub

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:grub [2023/01/11 20:29] – external edit 127.0.0.1linux:grub [2025/05/20 16:10] (current) ms
Line 1: Line 1:
 +====== grub shell ======
 +===== Grub Menue aufrufen =====
 +<code>
 +set prefix=(hd0,1)/boot/grub
 +set root=(hd0,2)
 +
 +insmod linux
 +insmod normal
 +normal
 +</code>
 +
 +===== Linux starten =====
 +<code>
 +set pager=1
 +
 +ls
 + -> (hd0,gpt1) (hd0,gpt2) ...
 +
 +ls (hd0,gpt1)/
 +
 +set root=(hd0,gpt1)
 +
 +linux /boot/vmlinuz root=/dev/sda1
 +initrd /boot/initrd.img
 +
 +boot
 +</code>
 +
 ====== os-prober edit ====== ====== os-prober edit ======
 <code> <code>
Line 18: Line 46:
 ... ...
 </code> </code>
 +
 +====== Minimal grub config (EFI) ======
 +<code>
 +set default="0"
 +set timeout="5"
 +
 +insmod gpt
 +insmod part_gpt
 +insmod fat
 +insmod chain
 +
 +menuentry "GNU/Linux" {
 +    set root=(hd0,gpt2)
 +    linux /boot/vmlinuz-6.6.15-amd64 root=/dev/sda2 ro
 +    initrd /boot/initrd.img-6.6.15-amd64
 +}
 +
 +menuentry "EFI Boot" {
 +    set root=(hd0,gpt1)
 +    chainloader /EFI/Boot/bootx64.efi
 +}
 +</code>
 + 
linux/grub.1673465367.txt.gz · Last modified: 2023/01/11 20:29 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki