Name
install
Synopsis
install [options
]stage1_file
[d]dest_dev stage2_file
[addr
] [p] [config_file
] [real_config_file
]
Perform a full GRUB install. See also the setup command, which acts as a frontend to install and is easier to use. The Stage 2 or Stage 1.5 file (both referred to as stage2_file here because they are loaded the same way) must be in its final install location (e.g., in the /boot/grub directory). install loads and validates stage1_file, installs a blocklist in the Stage 1 file for loading stage2_file as Stage 2 or Stage 1.5, and writes the completed Stage 1 file to the first block of the device dest_dev.
Options
- --force-lba
If the BIOS has LBA support but might return the incorrect LBA bitmap (which sometimes happens), --force-lba forces install to ignore the incorrect bitmap.
- --stage2=os_stage2_file
This option is required to specify the operating system name of the Stage 2 file if the filesystem where it is located cannot be unmounted.
Parameters
- addr
Specify the address at which Stage 1 is to load Stage 2 or Stage 1.5. The possible values are 0x8000 for Stage 2 and 0x2000 for Stage 1.5. If omitted, GRUB determines the address automatically.
- config_file
Specify the location of the configuration file for Stage 2.
- d
Tell Stage 1 to look for the actual disk on which stage2_file was installed if it’s not on the boot drive.
- dest_dev
Specify the destination device. The final Stage 1 file is written to this device.
- p
If present, the partition where stage2_file is located is written into ...
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.