User Tools

Site Tools


linux:grub

This is an old revision of the document!


grub shell

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

os-prober edit

vi /etc/default/grub 
...
GRUB_DISABLE_OS_PROBER=false
vi /etc/grub.d/30_os-prober
...
      for LINUX in ${LINUXPROBED} ; do
        LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
        LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
        LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
        LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
        LINITRD="`echo ${LINUX} | cut -d ':' -f 5 | tr '^' ' '`"
        LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '` consoleblank=180"
...
linux/grub.1676571912.txt.gz · Last modified: 2023/02/16 19:25 by ms

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