GRUB-INSTALL(8)
๐ GRUB-INSTALL(8) ๐
okay bestie, so this is grub-install, part of the System Administration Utilities family, and it's literally the moment your drive gets a whole bootloader. no cap. this is where the magic happens. ๐ชโจ
โจ NAME โจ
grub-install โ install GRUB to a device ๐
๐ธ SYNOPSIS ๐ธ
grub-install [OPTION...] [OPTION] [INSTALL_DEVICE]
๐ DESCRIPTION ๐
Install GRUB on your drive. that's it. that's the whole vibe. your drive is about to become bootable and honestly? iconic. ๐
the options, and yes there are SO many ๐
--appended-signature-size=SIZEโ drops in a note segment and reservesSIZEbytes inside it for an appended signature. future-you signing things, we love to see it. โ๏ธ--compress=no|xz|gz|lzoโ compress the GRUB files. it's optional, so like, no pressure. pick your fighter:no,xz,gz, orlzo. ๐๏ธ--disable-cliโ turns OFF command line interface access. the CLI is closed, doors locked, nobody's typing anything. ๐--disable-shim-lockโ disables theshim_lockverifier. that's the whole thing, bestie. ๐ค--dtb=FILEโ embed one very specific DTB. like,FILE, that one. ๐ณ-d,--directory=DIRโ use images and modules that live underDIR. default is[default=/usr/lib/grub/<platform>]. ๐๏ธ--fonts=FONTSโ installFONTS. default is[default=unicode]. cute fonts for a cute boot menu. ๐--install-modules=MODULESโ install ONLYMODULESplus whatever they depend on. default is[default=all], so if you don't say anything you're getting the whole entire wardrobe. ๐-k,--pubkey=FILEโ embedFILEas the public key used for signature checking. ๐--locale-directory=DIRโ use the translations hanging out underDIR. default is[default=/usr/share/locale]. ๐--locales=LOCALESโ install onlyLOCALES. default is[default=all]. ๐--modules=MODULESโ pre-load these specificMODULESright out the gate. ๐--sbat=FILEโ SBAT metadata, fromFILE. ๐--themes=THEMESโ installTHEMES. default is[default=starfield], which is lowkey gorgeous. โจ-v,--verboseโ print verbose messages. so you can see EVERYTHING that's happening. nosy but make it productive. ๐-x,--x509key=FILEโ embedFILEas an x509 certificate for signature checking. ๐--allow-floppyโ makes the drive also bootable as a floppy. this is the default forfdXdevices. โ ๏ธ heads up bestie: it may break on some BIOSes. โ ๏ธ--boot-directory=DIRโ install the GRUB images underDIR/grub2instead of theboot/grub2directory. ๐--bootloader-id=IDโ the ID of the bootloader. this one is ONLY available on EFI and Macs. ๐--core-compress=xz|none|autoโ pick the compression used for the core image. your choices arexz,none, orauto. ๐๏ธ--disk-module=MODULEโ which disk module to use,biosdiskornative. ONLY available on BIOS target. ๐ฝ--efi-directory=DIRโ useDIRas the EFI System Partition root. ๐--forceโ install even if problems are detected. bold. reckless. slay. ๐ค--force-file-idโ use the identifier file even when a UUID is available. ๐--label-bgcolor=COLORโ useCOLORfor the label background. ๐จ--label-color=COLORโ useCOLORfor the label. ๐๏ธ--label-font=FILEโ useFILEas the font for the label. โ๏ธ--macppc-directory=DIRโ useDIRfor the PPC MAC install. ๐ฅ๏ธ--no-bootsectorโ do NOT install the bootsector. ๐ซ--no-nvramโ don't update the`boot-device'/`Boot*'NVRAM variables. ONLY available on EFI and IEEE1275 targets. ๐ง--no-rs-codesโ do not apply any reed-solomon codes when embeddingcore.img. ONLY available on x86 BIOS targets. ๐งฎ--product-version=STRINGโ useSTRINGas the product version. ๐ท๏ธ--recheckโ delete the device map if it already exists. out with the old. ๐งน--removableโ the installation device is removable. ONLY available on EFI. ๐-s,--skip-fs-probeโ do not probe for filesystems inDEVICE. mind your business, filesystem. ๐--target=TARGETโ install GRUB for theTARGETplatform. default is[default=x86_64-efi]. available targets, and I'm listing every single one because we do not gatekeep:arm-coreboot,arm-efi,arm-uboot,arm64-efi,i386-coreboot,i386-efi,i386-ieee1275,i386-multiboot,i386-pc,i386-qemu,i386-xen,i386-xen_pvh,ia64-efi,loongarch64-efi,mips-arc,mips-qemu_mips,mipsel-arc,mipsel-loongson,mipsel-qemu_mips,powerpc-ieee1275,riscv32-efi,riscv64-efi,sparc64-ieee1275,x86_64-efi,x86_64-xen. ๐ฏ-?,--helpโ give this help list. hi, you're here. ๐ซถ--usageโ give a short usage message. the tl;dr version. โก-V,--versionโ print program version. ๐
๐ฆ one more note about arguments ๐ฆ
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. yeah. the rules follow the flag around, they don't just abandon the short version. ๐ซ
INSTALL_DEVICE must be a system device filename. grub-install copies the GRUB images into boot/grub2. on some platforms, it may also install GRUB into the boot sector. so like, depending on your platform, it's doing a little extra. that's just how it is. ๐
๐ญ REPORTING BUGS ๐ญ
Report bugs to <bug-grub@gnu.org>. be nice to them, they're doing their best. ๐
๐ SEE ALSO ๐
The full documentation for grub-install is maintained as a Texinfo manual. If the info and grub-install programs are properly installed at your site, the command
info grub-install
should give you access to the complete manual. the full lore, if you will. ๐โจ
and that's the whole page bestie!! this one's from GRUB 2.12, dated April 2026, and it's the GRUB-INSTALL(8) page itself โ go install something and be the main character of your own boot process ๐๐๐ฆ๐ธ๐
๐ซถ๐
๐ฆ where this page comes from
- fedora 43: grub2-tools 1:2.12-43.fc43 ยท GPL-3.0-or-later
- fedora 44: grub2-tools 1:2.12-56.fc44 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms