nerdexam
CompTIA

LX0-103 · Question #33

You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?

The correct answer is D. mount /mnt/cdrom. When a device is already listed in /etc/fstab with its mount point, the mount command only needs the mount point or device to complete the operation.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

Question

You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you 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

(27 responses)
  • B
    4% (1)
  • D
    93% (25)
  • E
    4% (1)

Why each option

When a device is already listed in /etc/fstab with its mount point, the mount command only needs the mount point or device to complete the operation.

Amount /dev/cdrom /mnt/cdrom

Specifying both device and mount point explicitly works for ad-hoc mounts but is redundant and error-prone when fstab already contains the entry with /dev/hdd as the device.

Bmount/dev/cdrom

This is a syntax error - there is no space between 'mount' and '/dev/cdrom', making it an invalid command.

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

The filesystem type flag '-t cdrom' is not a valid filesystem type; the correct type for ISO 9660 CD-ROMs is 'iso9660', making this command fail.

Dmount /mnt/cdromCorrect

Because /mnt/cdrom is already defined in /etc/fstab with its corresponding device (/dev/hdd), the mount command can resolve all required parameters from that file using only the mount point. This is a key feature of fstab - it allows shorthand mounting by specifying either the device or the mount point alone, and the kernel fills in the rest.

Eautomount /mnt/hdd /mnt/cdrom

'automount' is not a standard Linux utility; the correct tools for automounting are 'autofs' or 'amd', and the syntax shown is not valid for any of them.

Concept tested: Mounting devices using /etc/fstab entries

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