{{tag>linux boot uefi ventoy}} ======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===== ====efibootmgr==== This is a command line utility that allows handling of the UEFI boot menu. ===Installation:=== *Debian or derivative: ''sudo apt install efibootmgr'' *Arch / Manjaro: ''sudo pacman -S efibootmgr'' ===Display Current Setting=== Simply ''efibootmgr'' or ''sudo efibootmgr'', use the -v flag for a more verbose output ===Change Boot Order=== 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''\\ 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===== =====Ventoy===== What is ventoy\\ [[https://www.ventoy.net/en/index.html|Ventoy]] is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files. *With ventoy, you don't need to format the disk over and over, you just need to copy the ISO/WIM/IMG/VHD(x)/EFI files to the USB drive and boot them directly. *You can copy many files at a time and ventoy will give you a boot menu to select them (screenshot). *x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI, ARM64 UEFI and MIPS64EL UEFI are supported in the same way. *Most type of OS supported (Windows/WinPE/Linux/ChromeOS/Unix/VMware/Xen...) //**This can be loaded on to a USB disk instead of a flash drive for a potential better overall experience.**// {{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:flatpak|Next->