nerdexam
CompTIA

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.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

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)
  • A
    4% (1)
  • B
    4% (1)
  • D
    91% (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.

Amount /dev/cdrom /mnt/cdrom

/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.

Bmount /dev/cdrom

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.

Cmount -t cdrom /dev/cdrom /mnt/cdrom

The '-t cdrom' option is not a valid filesystem type; cdrom is not a filesystem type recognized by mount.

Dmount /mnt/cdromCorrect

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.

Eautomount /mnt/hdd /mnt/cdrom}

'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

#mount command#fstab#CD-ROM#filesystem mounting

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice