Maintain an older system using GRUB Legacy rather than GRUB 2.
Identify a representative boot-menu configuration filename.
Which item is associated with GRUB Legacy?
GRUB Legacy commonly uses /boot/grub/menu.lst or grub.conf. GRUB 2 uses generated grub.cfg instead.
Detailed explanation
menu.lstCorrect. menu.lst is a representative GRUB Legacy menu configuration name.
Correct. menu.lst is a representative GRUB Legacy menu configuration name.
grub.cfgIncorrect. grub.cfg is the generated GRUB 2 configuration.
Incorrect. grub.cfg is the generated GRUB 2 configuration.
loader.confIncorrect. loader.conf belongs to other bootloader configurations.
Incorrect. loader.conf belongs to other bootloader configurations.
inittabIncorrect. inittab is a SysVinit configuration file.
Incorrect. inittab is a SysVinit configuration file.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'GRUB Legacy: menu.lst or grub.conf; GRUB 2: grub.cfg'Expected result
GRUB Legacy: menu.lst or grub.conf; GRUB 2: grub.cfgKey points
- menu.lst is Legacy
- grub.conf is also used by Legacy systems
- grub.cfg is GRUB 2
Notes
- Environment: GRUB Legacy概念
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.