Add one persistent filesystem mount entry to /etc/fstab.
Which six-field order is standard?
fstab fields are fs_spec, fs_file, fs_vfstype, fs_mntops, fs_freq, and fs_passno: source, target, type, options, dump, and fsck order.
Detailed explanation
Incorrect. The source and target plus type and options are in the wrong order.
Incorrect. The source and target plus type and options are in the wrong order.
Correct. Device, mount point, filesystem type, options, dump, and fsck order are standard.
Correct. Device, mount point, filesystem type, options, dump, and fsck order are standard.
Incorrect. The identifier, target, options, and check fields are rearranged.
Incorrect. The identifier, target, options, and check fields are rearranged.
Incorrect. The mount point is field 2 and type is field 3.
Incorrect. The mount point is field 2 and type is field 3.
Try it yourself
An example you can run in a temporary verification environment.
grep -vE '^[[:space:]]*(#|$)' /etc/fstab | sed -n '1,4p'Expected result
環境に存在するfstabの有効行。空の場合もあるKey points
- Source → target → type → options
- Field 5 is dump
- Field 6 is fsck order
Notes
- Environment: Linux /etc/fstab / 読み取り操作
- 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.