LX0-103 · Question #179
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 t
The correct answer is D. mount /mnt/cdrom. When a device and its mount point are defined in /etc/fstab, the mount command requires only one argument - either the device or the mount point - to mount it.
Question
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 that drive to /mnt/cdrom?
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
(23 responses)- A4% (1)
- B4% (1)
- D91% (21)
Why each option
When a device and its mount point are defined in /etc/fstab, the mount command requires only one argument - either the device or the mount point - to mount it.
/dev/cdrom is a different device path than the /dev/hdd that was added and configured in fstab; this would reference an incorrect or non-existent device.
Specifying only a device without a mount point requires a corresponding fstab entry keyed to the device, but using /dev/cdrom is still the wrong device path here.
The '-t cdrom' option is not a valid filesystem type; cdrom is not a filesystem type recognized by mount.
Because /dev/hdd is already mapped to /mnt/cdrom in /etc/fstab, the mount command can resolve all remaining parameters from that file. Supplying only the mount point 'mount /mnt/cdrom' is sufficient and is the conventional shorthand administrators use when fstab entries are present.
'automount' is not a standard Linux command for manually mounting a device and the syntax shown is incorrect.
Concept tested: Mounting devices using /etc/fstab shorthand
Source: https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.