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
tech_notes:boot [2021-12-24 Fri wk51 04:53] – [GRUB] baumkptech_notes:boot [2024-09-22 Sun wk38 17:13] (current) – [Ventoy] baumkp
Line 1: Line 1:
 +{{tag>linux boot uefi ventoy}}
 ======boot tools====== ======boot tools======
 +
 +=====list drives=====
 +  * ''df -h''
 +  * ''sudo fdisk -l''
 +  * ''lsblk'' flags:
 +    * ''-f'' to get more verbose output
 +    * ''-o'' to get specific output columns, use ''-h'' option to see list of column options
 +  * ''blkid''
 +  * ''ls -l /dev/disk/by-id'', additional list options:
 +    * ''ls -l /dev/disk/by-uuid''
 +  * ''sudo lshw -class disk''
 +  * ''findmnt''
  
 =====UEFI===== =====UEFI=====
Line 15: Line 28:
 ===Change Boot Order=== ===Change Boot Order===
 Take the displayed BootOrder and and append and adjust to the following command to adjust: ''sudo efibootmgr -o''\\ Take the displayed BootOrder and and append and adjust to the following command to adjust: ''sudo efibootmgr -o''\\
-Current: ''BootOrder: 0003,000A,0002,000B,0001,0006,0007,0008,0009,0000'' +Current: ''BootOrder: 0003,000A,0002,000B,0001,0006,0007,0008,0009,0000''\\ 
-Adjusted: ''sudo efiboot-o 0002,000B,0003,000A,0001,0006,0007,0008,0009,0000''+Adjusted: ''sudo efibootmgr -o 0002,000B,0003,000A,0001,0006,0007,0008,0009,0000''\\ 
 + 
 +===Add UEFI Boot Entry === 
 +Install command ''grub-efi'': ''sudo apt install grub-efi''\\ 
 +Mount the the EFI System Partition:  ''sudo mount /dev/sdd1 /boot/efi''\\ 
 +Install Grub boot loader: ''sudo grub-install /dev/sdd --target=x86_64-efi --efi-directory=boot/efi/''\\ 
 + 
 +===Change boot selection time=== 
 +''sudo efibootmgr -t 10'' to set boot selection time to 10 seconds  
 + 
 +===Delete a boot entry=== 
 +''%%sudo efibootmgr --delete-bootnum --bootnum 0%%'' 
 + 
 +===Links=== 
 +  *[[https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples|Use Linux efibootmgr Command to Manage UEFI Boot Menu]] 
 +  *[[https://www.linuxjournal.com/content/take-control-your-pc-uefi-secure-boot|Take Control of Your PC with UEFI Secure Boot]] 
 +  *[[https://linuxconfig.org/how-to-manage-efi-boot-manager-entries-on-linux|How to manage EFI boot manager entries on Linux]]
 =====GRUB===== =====GRUB=====
  
Line 31: Line 60:
 {{tag>boot ventoy grub "boot menu" tech notes technical uefi efi efibootmgr "grub-efi"}} {{tag>boot ventoy grub "boot menu" tech notes technical uefi efi efibootmgr "grub-efi"}}
  
-<- tech_notes:iperf|Back ^ tech_notes:index|Start page ^ ->+<- tech_notes:iperf|Back ^ tech_notes:index|Start page ^ tech_notes:pikvm|Next->