Manually boot Linux from the GRUB 2 command line.
Set the kernel and arguments, load the matching initramfs, then boot.
Which basic command order is correct?
Use linux to specify the kernel and arguments, initrd to specify the initramfs, and boot last to transfer control.
Detailed explanation
initrd → boot → linuxIncorrect. The sequence starts with initrd and boots before the kernel is selected.
Incorrect. The sequence starts with initrd and boots before the kernel is selected.
boot → linux → initrdIncorrect. boot must follow the kernel and initramfs preparation.
Incorrect. boot must follow the kernel and initramfs preparation.
linux → boot → initrdIncorrect. initrd must be loaded before boot, not after it.
Incorrect. initrd must be loaded before boot, not after it.
linux → initrd → bootCorrect. The sequence is linux, initrd, then boot.
Correct. The sequence is linux, initrd, then boot.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'linux /vmlinuz root=... -> initrd /initrd.img -> boot'Expected result
linux /vmlinuz root=... -> initrd /initrd.img -> bootKey points
- linux selects the kernel
- initrd selects initramfs
- boot is last
Notes
- Environment: GRUB 2コマンドライン概念
- 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.