LFCS · Question #779
An administrator has just added a CD-ROM drive (/dev/hdd) to a system and added it to the administrator's fstab. Typically the administrator can use which of the following commands to mount media in…
The correct answer is D. mount /mnt/cdrom. When a filesystem is correctly defined in /etc/fstab, it can be mounted by simply specifying its designated mount point.
Question
Options
- Amount /dev/cdrom /mnt/cdrom
- Bmount /dev/cdrom
- Cmount -t cdrom /dev/cdrom /mnt/cdrom
- Dmount /mnt/cdrom
- Eautomount /mnt/hdd /mnt/cdrom}
How the community answered
(33 responses)- B3% (1)
- C3% (1)
- D91% (30)
- E3% (1)
Why each option
When a filesystem is correctly defined in `/etc/fstab`, it can be mounted by simply specifying its designated mount point.
This command specifies both the device and mount point; while it would work, it bypasses the convenience of `fstab` and uses a generic `/dev/cdrom` which might not be the specific device `/dev/hdd`.
This command only specifies the device; without a mount point, `mount` would attempt to mount to a default location (often a temporary directory) or fail, not `/mnt/cdrom` as intended via `fstab`.
This command explicitly defines the filesystem type and both device and mount point, which is redundant if `fstab` is already configured for the mount.
If an entry for a device and its mount point (`/dev/hdd` to `/mnt/cdrom`) is properly configured in `/etc/fstab`, the `mount` command can be executed with just the mount point as an argument. The system will then consult `/etc/fstab` to find the associated device, filesystem type, and options to perform the mount.
`automount` refers to the `autofs` service for automatic mounts and is not the command used for manually mounting an `fstab` entry; `/mnt/hdd` is also an incorrect device path.
Concept tested: Mounting filesystems with fstab
Source: https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.