Edit a Linux boot entry to identify the final root filesystem by UUID.
Specify the kernel argument for the root device.
Which kernel argument is appropriate?
root= identifies the filesystem that becomes the real root. A UUID remains stable when device names change.
Detailed explanation
home=UUID=...Incorrect. home= is not the standard kernel argument for selecting the root filesystem.
Incorrect. home= is not the standard kernel argument for selecting the root filesystem.
root=UUID=...Correct. root=UUID=... identifies the real root filesystem.
Correct. root=UUID=... identifies the real root filesystem.
initrd=UUID=...Incorrect. initrd is a bootloader/initramfs concept, not the root-device argument.
Incorrect. initrd is a bootloader/initramfs concept, not the root-device argument.
target=UUID=...Incorrect. target= does not select the root filesystem.
Incorrect. target= does not select the root filesystem.
Try it yourself
An example you can run in a temporary verification environment.
tr ' ' '\n' < /proc/cmdline | grep '^root=' || echo 'root= is managed outside the visible command line'Expected result
通常はroot=で始まる引数。環境によっては表示されないKey points
- root= selects the root filesystem
- UUID avoids device-name changes
- initramfs can use the value
Notes
- Environment: Linux / カーネルコマンドライン
- 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.