Find the source device, filesystem type, and mount options for /srv/docs.
Do not change mount state.
Which command is appropriate?
findmnt TARGET searches the mount table and shows source, filesystem type, options, and related fields in a structured view.
Detailed explanation
mount -o remount /srv/docsIncorrect. remount changes the existing mount configuration.
findmnt /srv/docsCorrect. findmnt /srv/docs displays the mount metadata.
umount /srv/docsIncorrect. umount detaches the filesystem.
mkfs /srv/docsIncorrect. mkfs creates a filesystem rather than inspecting a mount.
Try it yourself
An example you can run in a temporary verification environment.
findmnt / | sed -n '1,4p'Expected result
rootに対応するTARGET、SOURCE、FSTYPE、OPTIONSKey points
- findmnt is read-only
- Source, type, and options are shown
- It does not remount
Notes
- Environment: util-linux findmnt / 読み取り操作
- Prefer help or version output and a disposable device when testing storage commands.
- Formatting, repair, and mount changes can affect data or availability.
Foundation review
Place the operation
findmnt inspects state; remount, umount, and mkfs change state or contents.
Check the side effect
Use explicit output columns when the result will be consumed by a script.